YouTube Playlist API
Listez toutes les vidéos d’une playlist YouTube (titre, durée et chaîne par vidéo, plus propriétaire de la playlist et totaux).
1,20 $US/1k req, paiement à la requête, sans abonnement.
Lo-fi Beats to Focus To
Driftline Records
Playlist · 3 videos
Rainy Window - lofi hip hop mix
Driftline Records
{"id": "aK7pQm3nVxY","title": "Rainy Window - lofi hip hop mix","url": "https://www.youtube.com/watch?v=aK7pQm3nVxY","thumbnail": "https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg","lengthText": "58:12","lengthSeconds": 3492,"channel": "Driftline Records"}
Tarifs
Tarifs de l’API YouTube Playlist
Essayer
Obtenez YouTube Playlist en une requête
Cet exemple affiche 16 champs sur 18. Voir tous les champs
{
"found": true,
"data": {
"title": "Lo-fi Beats to Focus To",
"owner": "Driftline Records",
"totalVideos": 3,
"authorId": "UC9Qz1s5o8vX3P0nZk4Rr6bA",
"authorUrl": "https://www.youtube.com/@driftlinerecords",
"authorHandle": "driftlinerecords",
"videos": [
{
"id": "aK7pQm3nVxY",
"title": "Rainy Window - lofi hip hop mix",
"url": "https://www.youtube.com/watch?v=aK7pQm3nVxY",
"thumbnail": "https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg",
"lengthText": "58:12",
"lengthSeconds": 3492,
"channel": "Driftline Records"
},
{
"id": "bL8qRn4oWyZ",
"title": "Late Night Study Session - chill beats",
"url": "https://www.youtube.com/watch?v=bL8qRn4oWyZ",
"thumbnail": "https://i.ytimg.com/vi/bL8qRn4oWyZ/hqdefault.jpg",
"lengthText": "1:12:40",
"lengthSeconds": 4360,
"channel": "Driftline Records"
},
{
"id": "cM9rSo5pXzA",
"title": "Coffee Shop Ambience with Soft Piano",
"url": "https://www.youtube.com/watch?v=cM9rSo5pXzA",
"thumbnail": "https://i.ytimg.com/vi/cM9rSo5pXzA/hqdefault.jpg",
"lengthText": "45:03",
"lengthSeconds": 2703,
"channel": "Driftline Records"
}
]
}
}Référence complète des paramètres et de la réponse : chaque champ, type et exemple de cet endpoint.
Référence
Une requête, une seule forme de réponse.
Chaque champ que vous envoyez et chaque champ que vous recevez, avec un vrai exemple.
Dernière vérification : 2026-11-21 · disponibilité et latence mesurées sur 30d
Corps de la requête
JSON, envoyé à cet endpoint.
- playlistIdstring
PLxK2osoDoY4gAiRxvIYUY5Fz4uMtVYnCk
ID de la playlist : le paramètre « list » d’une URL de playlist (p. ex. « PLu0W_9lII9ahIappRPN0MCAgtOu3lQjQi »).
- cursorstring
The nextCursor from the previous page, to get the next page of videos. Send the same playlistId with it.
Réponse
JSON, une valeur d’exemple par champ.
- authorHandlestring
driftlinerecords
The playlist owner's @handle, without the leading @.
- authorIdstring
UC9Qz1s5o8vX3P0nZk4Rr6bA
YouTube channel ID of the playlist owner.
- authorUrlstring
https://www.youtube.com/@driftlinerecords
Canonical URL of the playlist owner's channel, tracking query parameters stripped.
- nextCursorstring
Opaque cursor for the next page of videos, or null when there are no more. Pass it back as cursor to continue.
- ownerstring
Driftline Records
Name of the channel that owns the playlist. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.
- titlestring
Lo-fi Beats to Focus To
Playlist title. Filled on the first page only; null on a page fetched with cursor. Populated whenever the provider has data for the entity.
- totalVideosinteger
3
Number of videos in the playlist. Filled on the first page only; null on a page fetched with cursor.
Populated whenever the provider has data for the entity.
- channelstring
Driftline Records
Populated whenever the provider has data for the entity.
- idstring
aK7pQm3nVxY
Populated whenever the provider has data for the entity.
- lengthSecondsinteger
3492
- lengthTextstring
58:12
Populated whenever the provider has data for the entity.
- thumbnailstring
https://i.ytimg.com/vi/aK7pQm3nVxY/hqdefault.jpg
Populated whenever the provider has data for the entity.
- titlestring
Rainy Window - lofi hip hop mix
- urlstring
https://www.youtube.com/watch?v=aK7pQm3nVxY
Populated whenever the provider has data for the entity.
- foundboolean
true
- reason"not_found"
Present only when `found` is false, and says why there is no result. `not_found`: the source states the target does not exist, or returned nothing for it. A `found: false` answer is a successful call, not an error, and `costUsd` is what it actually cost.
FAQ
À propos de l’API YouTube Playlist
L’API YouTube Playlist d’AnyAPI renvoie des données YouTube en JSON normalisé à partir d’un appel POST à /v1/run/youtube.playlist. Listez toutes les vidéos d’une playlist YouTube (titre, durée et chaîne par vidéo, plus propriétaire de la playlist et totaux). AnyAPI renvoie un schéma normalisé unique quelle que soit la source qui répond. Elle coûte à partir de 1,20 $US pour 1 000 requêtes, en dollars US, sans abonnement et sans minimum mensuel. Ces 30 derniers jours, 94,4% des appels YouTube Playlist passés par AnyAPI ont réussi, avec un temps de réponse médian de 1,2 secondes, sur 249 appels mesurés.