YouTube data
Every video in a YouTube playlist in order: position, title, duration, view count, publish date and thumbnail, plus the playlist title and owner. Paste playlist URLs or ids. Only delivered videos are charged.
One video from the playlist delivered to the dataset. Playlists that fail or are empty are never charged.
ACTOR=steadydata~youtube-playlist-videos URL="https://api.apify.com/v2/acts/$ACTOR/run-sync-get-dataset-items" curl -X POST "$URL?token=$APIFY_TOKEN" \ -H "Content-Type: application/json" \ -d '{"playlists": ["https://www.youtube.com/playlist?list=PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP"], "maxVideosPerPlaylist": 100, "language": "en"}' # rows come straight back as JSON, one object per delivered row
| Field | Name | What it does |
|---|---|---|
playlistsrequired | Playlists | Playlist ids or any YouTube URL containing one, for example PLBsP89CPrMeNm71T5gYC6jebm9vPbLBiP or https://www.youtube.com/playlist?list=PL... |
maxVideosPerPlaylist | Max videos per playlist | Stop after this many videos per playlist. This is your cost ceiling: one delivered video is one charged event. |
language | Language | Interface language for the texts YouTube returns, e.g. en, nl, de. |
country | Country | ISO country code used for the request, e.g. US, NL, DE. |
| Field | Type |
|---|---|
playlistId | string, null |
playlistUrl | string, null |
playlistTitle | string, null |
playlistOwner | string, null |
playlistVideoCount | integer, null |
position | integer, null |
videoId | string, null |
url | string, null |
title | string, null |
duration | string, null |
durationSeconds | integer, null |
channelName | string, null |
channelId | string, null |
thumbnailUrl | string, null |
status | string, null |
input | string, null |
errorCode | string, null |
error | string, null |