video.demographics: Query the Analytics API and retrieve demographics information

View source: R/videos.R

video.demographicsR Documentation

Query the Analytics API and retrieve demographics information

Description

Query the Analytics API and retrieve demographics information

Usage

video.demographics(
  video_id,
  start_date,
  end_date,
  filters = NULL,
  sort = "ageGroup,gender",
  ids = "channel==MINE"
)

Arguments

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

Value

data.frame


jalvarado/ytAnalyticsR documentation built on Oct. 17, 2022, 3:04 p.m.