playlists.query: Query the analytics API for playlist metrics.

View source: R/playlists.R

playlists.queryR Documentation

Query the analytics API for playlist metrics.

Description

The playlist ID will be added as a dimension to the returned data.frame.

Usage

playlists.query(
  playlist_id,
  start_date = NULL,
  end_date = NULL,
  metrics = NULL,
  dimensions = NULL,
  sort = NULL,
  filters = NULL,
  ids = c("channel==MINE")
)

Arguments

playlist_id

YouTube Playlist ID string

start_date

Beginning date of the query date range.

end_date

End date of the query date range.

metrics

Comma seperated string of requested metrics.

dimensions

Comma seperated string of requested dimensions.

sort

Comma seperated string of dimensions to sort by. Prepend dimension name with '-' to indicate a descending sort.

filters

semi-colon seperated string of filter conditions to apply to the result set.

ids

ID string used to determine which channel or content owner to query for data

Value

data.frame containing the API response rows.

See Also

Other playlists: playlist.demographics(), vplaylist.query()


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