video.demographics | R Documentation |
Query the Analytics API and retrieve demographics information
video.demographics( video_id, start_date, end_date, filters = NULL, sort = "ageGroup,gender", ids = "channel==MINE" )
video_id |
YouTube video ID string |
start_date |
date string in 'YYYY-mm-dd' format |
end_date |
date string in 'YYYY-mm-dd' format |
filters |
string of semi-colon separated filters to apply to the query |
sort |
string of comma separated list of dimensions to sort by. Prepend the dimension name with '-' to sort descending |
ids |
string of semi-colon separated |
data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.