View source: R/report_helpers.R
| get_channel_overview | R Documentation |
Retrieves key channel performance metrics for a specified time period.
get_channel_overview(
date_range,
end_date = NULL,
ids = "channel==MINE",
include_engagement = TRUE,
include_subscribers = TRUE,
...
)
date_range |
Date range string like "last_30_days" or start date for custom range |
end_date |
End date (only needed if date_range is a specific start date) |
ids |
Channel identifier (default: "channel==MINE") |
include_engagement |
Logical. Include likes, dislikes, comments, shares (default: TRUE) |
include_subscribers |
Logical. Include subscriber metrics (default: TRUE) |
... |
Additional arguments passed to get_report() |
API response with channel overview data
## Not run:
# Channel performance for last 30 days
get_channel_overview("last_30_days")
# Channel performance for specific date range
get_channel_overview("2024-01-01", end_date = "2024-01-31")
# Basic metrics only
get_channel_overview("this_month", include_engagement = FALSE, include_subscribers = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.