GroundsocialDocs

API · YouTube

GET /youtube/playlists/{id}

A YouTube playlist and its videos, 100 a page.

RequestGET /v1/youtube/playlists/{id}
Operation idyoutube.playlist.get
Cost1 credit, refunded if the call fails
AuthAPI key: Authorization: Bearer <key> or x-api-key.

A YouTube playlist and its videos, 100 a page.

Path parameters

NameTypeRequiredDescription
idstringyesA playlist id (PL…, UU…, OLAK5uy_…) or any URL with list=.

Query parameters

NameTypeRequiredDescription
details"0" | "1" | "true" | "false"noOne of 0, 1, true, false.
afterstringnoThe previous page’s nextPageToken. Tokens last 6 hours.

Responses

StatusMeaningSchema
200A page of the playlist.YouTubePlaylistItemList
400Invalid input. Nothing was charged.Error
401Missing or invalid API key.Error
402Not enough credits, a spend cap was reached, or payment is required.Error
403The target is private, or the account is suspended.Error
404The video, channel, playlist or post does not exist, was removed, or has nothing there.Error
429Too many requests. Wait for Retry-After seconds.Error
503YouTube is temporarily unavailable. Retryable; nothing was charged.Error

YouTubePlaylistItemList fields

FieldTypeDescription
kind"youtube#playlistItemListResponse"
playlistobject
itemsYouTubePlaylistItem[]
nextPageTokenstringPass as after for the next page. Absent on the last page. Lasts 6 hours.
pageInfoobject

Errors use one shape everywhere; see Errors for every code and what to do.