video_time_period {YTAnalytics}R Documentation

Video Time Period Views

Description

Returns video views by day or month.

Usage

video_time_period(
  videoId = NULL,
  period = "day",
  endDate = as.character(format(Sys.Date(), "%Y-%m-01")),
  ...
)

Arguments

videoId

Required. String. Id of YouTube video.

period

Required. Time period to breakdown data by. Supported values are day and month

endDate

Required. String. Data returned up until the last day specified, so for monthly period the end date must end with a day of 01

...

Addt. arguments passed to analytics_request

Value

data.frame

Examples

## Not run: 
video_time_period(videoId = "dQw4w9WgXcQ", period = "month")

## End(Not run) 

[Package YTAnalytics version 0.1.0 Index]