ryt_get_playlist_items {rytstat}R Documentation

Get playlist items data on 'YouTube'

Description

Get playlist items data on 'YouTube'

Usage

ryt_get_playlist_items(
  playlist_id,
  part = c("contentDetails", "id", "snippet", "status"),
  fields = NULL,
  cl = NULL
)

Arguments

playlist_id

Playlist ID, see ryt_get_playlists.

part

The part parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. see API documentation.

fields

The fields parameter filters the API response, which only contains the resource parts identified in the part parameter value, so that the response only includes a specific set of fields. see API documentation.

cl

A cluster object created by makeCluster, or an integer to indicate number of child-processes (integer values are ignored on Windows) for parallel evaluations (see Details on performance).

Details

Parts and fields part:

parts and fields details

Value

tibble with playlist items details

Examples

## Not run: 
# get playlist ids and title
pl <- ryt_get_playlists(part = c('id', 'snippet'), fields = 'items(id, snippet/title)')

# get itemms of first playlist
pli <- ryt_get_playlist_items(
    playlist_id = pl$id[1],
    part = c('contentDetails', 'snippet'),
    fields = 'items(id,snippet/channelId,snippet/title,contentDetails/videoId)'
 )

## End(Not run)

[Package rytstat version 0.3.0 Index]