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).
Çıktınız burada görünecek
Girdileri tamamlayın, ardından Çalıştır'a tıklayın.
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.
Geliştirmeye başlayın
Birleşik kimlik doğrulama ve kullanım takibi sunan Platform API uç noktası.
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"
}'SandBase API anahtarınızı sunucu ortamınıza ayarlayın. İstekler Bearer kimlik doğrulaması kullanır.
export SANDBASE_API_KEY="YOUR_API_KEY"Anahtarınızı sunucuda tutun. Tarayıcı kodunda açığa çıkarmayın.
cursorstringContinuation token from a previous response for pagination.
handlestringYouTube channel handle.
channelIdstringYouTube channel ID.
Bu API için kaydedilmiş örnek yanıt; görüntülerken canlı istek yapılmaz.
Yayınlanmış bir kaydedilmiş yanıt yok. Yanıtını incelemek için API'yi Playground'da çalıştırın.
Daha fazlasını keşfedin
| API | Fiyat | Yanıt |
|---|---|---|
YouTube | Kullanım başına $0.0012'den itibaren | JSON |
YouTube | Kullanım başına $0.00045'den itibaren | JSON |
YouTube | Kullanım başına $0.0012'den itibaren | JSON |
YouTube | Kullanım başına $0.0012'den itibaren | JSON |
YouTube | $0.014286 çağrı başına | JSON |
YouTube | $0.014286 çağrı başına | JSON |
Kılavuzlar:Best YouTube API in 2026: Pricing Compared
Sorular
SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/youtube/channel-playlists adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.
çağrı başına $0.0012'dan başlayan, SandBase bakiyenizden tahsil edilir. Yalnızca yaptığınız çağrılar için ücretlendirilirsiniz; abonelik yoktur.
Gerekli parametre yoktur. İsteğe bağlı: cursor (string), handle (string) ve channelId (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.
Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.
Hayır. YouTube Channel Playlists, SandBase üzerinden çalışır; bu nedenle tek bir SandBase API anahtarı bu uç noktayı ve katalogdaki diğer tüm API'leri ve modelleri kapsar. YouTube API erişimi için ayrıca başvuru yapmanız gerekmez.