powered by
Returns video views by day or month.
video_time_period( videoId = NULL, period = "day", endDate = as.character(format(Sys.Date(), "%Y-%m-01")), ... )
data.frame
Required. String. Id of YouTube video.
Required. Time period to breakdown data by. Supported values are day and month
day
month
Required. String. Data returned up until the last day specified, so for monthly period the end date must end with a day of 01
01
Addt. arguments passed to analytics_request
analytics_request
if (FALSE) { video_time_period(videoId = "dQw4w9WgXcQ", period = "month") }
Run the code above in your browser using DataLab