Package: tubern 0.6.0

Gaurav Sood

tubern: R Client for the YouTube Analytics and Reporting API

Provides access to YouTube Analytics API v2 for retrieving YouTube Analytics data including views, engagement metrics, demographics, and revenue data. Supports OAuth 2.0 authentication and channel group management. See <https://developers.google.com/youtube/analytics/> for API documentation.

Authors:Gaurav Sood [aut, cre]

tubern_0.6.0.tar.gz
tubern_0.6.0.zip(r-4.7-any)tubern_0.6.0.zip(r-4.6-any)tubern_0.6.0.zip(r-4.5-any)
tubern_0.6.0.tgz(r-4.6-any)tubern_0.6.0.tgz(r-4.5-any)
tubern_0.6.0.tar.gz(r-4.7-any)tubern_0.6.0.tar.gz(r-4.6-any)
tubern_0.6.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
tubern/json (API)

# Install 'tubern' in R:
install.packages('tubern', repos = c('https://gojiplus.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/gojiplus/tubern/issues

On CRAN:

Conda:

youtubeyoutube-analyticsyoutube-api

6.09 score 14 stars 22 scripts 298 downloads 30 exports 16 dependencies

Last updated from:cdb67fe558. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK137
source / vignettesOK167
linux-releaseOK129
macos-releaseOK166
macos-oldrelOK165
windows-develOK75
windows-releaseOK76
windows-oldrelOK86
wasm-releaseOK116

Exports:add_groupadd_group_itemadd_groupscheck_api_quotadelete_groupdelete_group_itemdiagnose_tubernget_audience_demographicsget_available_dimensionsget_available_metricsget_channel_overviewget_common_date_rangesget_daily_performanceget_geographic_performanceget_reportget_revenue_reportget_top_videoslist_group_itemslist_groupsresolve_date_rangeupdate_groupyt_as_data_frameyt_as_tibbleyt_diagnoseyt_export_csvyt_extract_summaryyt_oauthyt_quick_plotyt_to_dataframeyt_to_tibble

Dependencies:askpassbackportscheckmateclicurlgluehttr2jsonlitelifecyclemagrittropensslR6rlangsysvctrswithr

tubern: Comprehensive YouTube Analytics Examples
tubern: Enhanced YouTube Analytics for R | Quick Setup | New Features Overview | 1. Relative Date Ranges | 2. Helper Functions for Common Reports | Channel Overview | Top Performing Videos | Audience Demographics | Geographic Performance | Device and Platform Analysis | Daily Time Series Data | Revenue Reports (Requires Monetary Scope) | 3. Enhanced Parameter Validation | 4. Data Transformation and Analysis | Convert to Data Frames | Data Export | Quick Visualization | Data Summary | 5. Improved Error Handling and Diagnostics | Diagnostic Tools | Error Recovery | Complete Workflow Examples | Example 1: Channel Performance Dashboard | Example 2: Audience Analysis | Example 3: Content Performance Analysis | Best Practices | 1. Authentication | 2. Data Retrieval | 3. Error Handling | 4. Data Analysis | Troubleshooting | Common Issues | Run diagnostics | Re-authenticate | Check available options | Use helper functions for validation

Last update: 2026-08-20
Started: 2026-04-12

Using tubern
tubern: Access YouTube Analytics API via R | Install, Load the package | Using the package | Get Statistics of a Video

Last update: 2026-08-20
Started: 2025-03-24

Readme and manuals

Help Manual

Help pageTopics
Add Groupsadd_group
Add Group Itemadd_group_item
Check API quota status and provide guidancecheck_api_quota
Data Transformation Utilitiesdata_transformation
Date Helper Functions for tuberndate_helpers
Delete Groupdelete_group
Delete Group Itemdelete_group_item
Enhanced Error Handling for tubernerror_handling
Get audience demographics reportget_audience_demographics
Get available dimensions with descriptionsget_available_dimensions
Get available metrics with descriptionsget_available_metrics
Get channel overview reportget_channel_overview
Get common date rangesget_common_date_ranges
Get daily performance time seriesget_daily_performance
Get geographic performance reportget_geographic_performance
Get Reportsget_report
Get revenue report (requires monetary scope)get_revenue_report
Get top videos reportget_top_videos
List Group Itemslist_group_items
List Groupslist_groups
Common Report Helper Functionsreport_helpers
Resolve date range with support for relative datesresolve_date_range
'tubern' provides access to the YouTube Analytics and Reporting APItubern-package tubern
DELETEtubern_DELETE
Base POST AND GET functions. Not exported.tubern_GET
POSTtubern_POST
PUTtubern_PUT
Deprecated function namesadd_groups diagnose_tubern tubern-deprecated yt_to_dataframe yt_to_tibble
Update Groupsupdate_group
YouTube Analytics API Validation Helpersvalidation_helpers
Convert API response to data frameyt_as_data_frame
Convert API response to tibble (if tibble is available)yt_as_tibble
Check if authentication token is in optionsyt_check_token
Diagnose common tubern issuesyt_diagnose
Export data to CSVyt_export_csv
Extract summary statistics from API responseyt_extract_summary
Set up Authorizationyt_oauth
Create a quick visualization of the data (if ggplot2 is available)yt_quick_plot