cursorstring
Continuation token from a previous response for pagination.
https://api.sandbase.ai/v1/api/youtube/channel-playlistsList a YouTube channel's playlists by handle or channel ID with cursor pagination (title, video count, thumbnail).
Ihre Ausgabe wird hier angezeigt
Vervollständigen Sie die Eingaben und klicken Sie dann auf Ausführen.
Returns the playlists of a YouTube channel, with each playlist's title, video count, thumbnail and links. It needs a channel handle such as @veritasium or a channelId.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/channel-playlists" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"handle": "@veritasium"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
channelId | string | No | YouTube channel ID. |
cursor | string | No | Continuation token from a previous response for pagination. |
handle | string | No | YouTube channel handle. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"nextCursor": null,
"playlists": [
{
"id": "PLkahZjV5wKe8w9GC_n2yyhx6Wj-NKzzeE",
"playlistUrl": "https://www.youtube.com/playlist?list=PLkahZjV5wKe8w9GC_n2yyhx6Wj-NKzzeE",
"thumbnail": "https://i.ytimg.com/vi/AaZ_RSt0KP8/hqdefault.jpg?sqp=-oaymwEXCOADEI4CSFryq4qpAwk…",
"title": "Computing",
"videoCount": 5,
"videoId": "AaZ_RSt0KP8",
"videoUrl": "https://www.youtube.com/watch?v=AaZ_RSt0KP8"
}
]
},
"found": true
}
| Field | Meaning |
|---|---|
data.playlists[].id | The playlist ID. It starts with PL and works as the list value in the playlist URL. |
data.playlists[].title | The playlist name, for example Computing. |
data.playlists[].videoCount | The number of videos in the playlist. |
data.playlists[].playlistUrl | A direct link to the playlist page on YouTube. |
data.playlists[].thumbnail | The thumbnail image URL for the playlist. |
data.playlists[].videoId / data.playlists[].videoUrl | The ID and watch link of the video that supplies the thumbnail. This is the video shown as the playlist cover. |
data.nextCursor | The token for the next page of playlists. It is null when there are no more pages. |
found | true when the channel was found. |
handle (with the leading @) or channelId. The example request uses handle.data.nextCursor value as cursor in the next request. Stop when it is null.id to YouTube Playlist.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/channel-playlists" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"handle": "@veritasium"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
cursorstringContinuation token from a previous response for pagination.
handlestringYouTube channel handle.
channelIdstringYouTube channel ID.
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
Es wurde keine gespeicherte Antwort veröffentlicht. Führen Sie die API in Playground aus, um die Antwort zu prüfen.
Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
YouTube Channel PlaylistsDiese API YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | Ab $0.00045 pro Aufruf | JSON |
YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | Ab $0.0012 pro Aufruf | JSON |
YouTube | $0.014286 pro Aufruf | JSON |
YouTube | $0.014286 pro Aufruf | JSON |
Anleitungen:Best YouTube API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/youtube/channel-playlists mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
Ab $0.0012 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Es sind keine Parameter erforderlich. Optional: cursor (string), handle (string) und channelId (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron). Die README auf dieser Seite enthält eine Beispielantwort.
Nein. YouTube Channel Playlists läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für YouTube API beantragen.