video_time_period: Video Time Period Views

View source: R/time_period.R

video_time_periodR 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) 

YTAnalytics documentation built on Sept. 11, 2024, 6:34 p.m.