Sand AISand AI MAGI-2MAGI-2 artık SandBase'de: yerel sesli 1080p videoŞimdi deneyin

YouTube Playlist

API dokümanları
https://api.sandbase.ai/v1/api/youtube/playlist

List every video in a YouTube playlist (title, length, and channel per video plus playlist owner and totals).

Fiyat
Başlangıç fiyatı $0.0012USD / çağrı
Yöntem
POST
Yanıt
JSON
Parametreler
1 gerekli · 0 isteğe bağlı

Oynatma Alanı

Girdi
The playlist ID: the "list" parameter in a playlist URL (e.g. "PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi").
ÇıktıHazır

Çıktınız burada görünecek

Girdileri tamamlayın, ardından Çalıştır'a tıklayın.

API README

YouTube Playlist API

Returns the videos in a YouTube playlist, plus the playlist title, owner, and total video count. It needs one input: the playlistId from the list parameter of a playlist URL.

Use cases

  • Export a playlist's track list with titles, channels, and durations into a spreadsheet.
  • Add up lengthSeconds across a playlist to estimate its total running time.
  • Check which channels appear in a curated music playlist.
  • Collect video IDs from a playlist and pass them to a video details API.

Request

curl -X POST "https://api.sandbase.ai/v1/api/youtube/playlist" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"playlistId": "PLMC9KNkIncKtPzgY-5rmhvj7fax8fdxoj"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
playlistIdstringYesThe playlist ID: the "list" parameter in a playlist URL (e.g. "PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi").

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "data": {
    "authorHandle": "Redlist-JustHits",
    "authorId": "UCs72iRpTEuwV3y6pdWYLgiw",
    "authorUrl": "https://www.youtube.com/@Redlist-JustHits",
    "owner": "Redlist - Just Hits",
    "title": "Pop Music Playlist - Timeless Pop Songs (Updated Weekly 2026)",
    "totalVideos": 200,
    "videos": [
      {
        "channel": "Lady Gaga",
        "id": "kPa7bsKwL-c",
        "lengthSeconds": 253,
        "lengthText": "4:13",
        "thumbnail": "https://i.ytimg.com/vi/kPa7bsKwL-c/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxk…",
        "title": "Lady Gaga, Bruno Mars - Die With A Smile (Official Music Video)",
        "url": "https://www.youtube.com/watch?v=kPa7bsKwL-c"
      }
    ]
  },
  "found": true
}

Response fields

FieldMeaning
data.titleTitle of the playlist.
data.owner / data.authorHandleDisplay name and @handle of the channel that owns the playlist.
data.authorId / data.authorUrlID and URL of the owner's channel.
data.totalVideosNumber of videos in the playlist, as reported for the playlist as a whole.
data.videos[].idYouTube video ID. It matches the v value in data.videos[].url.
data.videos[].titleTitle of the video.
data.videos[].channelName of the channel that posted the video. It can differ from the playlist owner.
data.videos[].lengthSeconds / data.videos[].lengthTextVideo length as a number of seconds and as display text such as 4:13.
data.videos[].url / data.videos[].thumbnailLink to the video's watch page and to its thumbnail image.
foundtrue when the playlist was found.

Notes

  • Take playlistId from the list parameter in a playlist URL, for example PLMC9KNkIncKtPzgY-5rmhvj7fax8fdxoj.
  • The request has no pagination parameter. Compare data.totalVideos with the length of data.videos to see how many videos came back.
  • Pass a video ID from data.videos[].id to YouTube Video Details for more about one video.
  • Use YouTube Channel Playlists to find playlist IDs for a channel.

Pricing

Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.

Daha fazlasını keşfedin

İlgili APIs

Tüm APIs
APIFiyatYanıt
YouTubeKullanım başına $0.0012'den itibarenJSON
YouTubeKullanım başına $0.00045'den itibarenJSON
YouTubeKullanım başına $0.0012'den itibarenJSON
YouTubeKullanım başına $0.0012'den itibarenJSON
YouTubeKullanım başına $0.0012'den itibarenJSON
YouTube$0.014286 çağrı başınaJSON

Kılavuzlar:Best YouTube API in 2026: Pricing Compared

Sorular

SSS

YouTube Playlist API'sini nasıl kullanırım?

SandBase API anahtarınızı Authorization başlığında (Bearer) ve parametreleri JSON gövdesi olarak ile https://api.sandbase.ai/v1/api/youtube/playlist adresine bir POST isteği gönderin. Ayrıca bu sayfadaki Playground’da kod yazmadan da deneyebilirsiniz.

YouTube Playlist API'sinin fiyatı nedir?

ç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.

YouTube Playlist API'si hangi parametreleri kabul eder?

Gerekli: playlistId (string). Parametreler tablosu ve bu sayfadaki Playground, tüm alanları listeler.

YouTube Playlist API'si ne döndürür?

Aynı HTTP isteğinde döndürülen bir JSON yanıtı (senkron). Bu sayfadaki README'de örnek bir yanıt yer alır.

Bir YouTube geliştirici hesabına veya API anahtarına ihtiyacım var mı?

Hayır. YouTube Playlist, 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.