YouTube Playlist API
A playlist's details (title, description, owner channel, video count, total views) and one page (up to ~100) of its videos in order, each with id, url, title, channel, views, published time, duration and thumbnail, plus `next_page_token`.
https://api.maviapi.com/v1/sites/youtube/playlist5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
playlist_idstring in query | Optional | PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA | playlist id (PL..., UU..., OLAK...) or a playlist URL |
page_tokenstring in query | Optional | None | `next_page_token` from a previous call to get the next page of videos (playlist_id then ignored) |
Response fields
playlist_ide.g."PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA"urle.g."https://www.youtube.com/playlist?list=PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA"titlee.g."Retro Tech"descriptione.g."In Retro Tech, Marques Brownlee uncovers the origin and nostalgia of iconic tech.."channel_namee.g."Marques Brownlee"channel_ide.g."UCBJycsmduvYEL83R_U4JriQ"video_counte.g.6viewse.g.1129278thumbnaile.g."https://i9.ytimg.com/s_p/PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA/landscape_maxresdefault.jpg?sqp=CPiM_tcGir7X7AMICI_G--4FEAE=&rs=AOn4CLAQ7Xw4TlToBUq4pW1M7IbHoWVMEw&v=1574888207&days_since_epoch=20776"videos
typee.g."video"video_ide.g."kMtN9KJHn5Y"urle.g."https://www.youtube.com/watch?v=kMtN9KJHn5Y"titlee.g."RETRO TECH: CAMCORDER"channel_namee.g."Marques Brownlee"channel_ide.g."UCBJycsmduvYEL83R_U4JriQ"publishede.g."6 years ago"views_texte.g."9.3M views"viewse.g.9300000duratione.g."22:55"duration_secondse.g.1375thumbnaile.g."https://i.ytimg.com/vi/kMtN9KJHn5Y/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAgVlRoHppgWo5CdYsH2JFKebs27Q"next_page_tokene.g."4qmFsgJbEiRWTFBMQnNQODlDUHJNZU1WMW9QNDJabjJEcldwbkZvU2F1ZkEaDGtnRURDTGNMNEFzQpoCJFZMUExCc1A4OUNQck1lTVYxb1A0MlpuMkRyV3BuRm9TYXVmQQ%3D%3D"Example request
Set MAVI_KEY to your API key. A successful call costs 5 credits per call, and a failed call costs nothing.
curl 'https://api.maviapi.com/v1/sites/youtube/playlist' \
-H "Authorization: Bearer $MAVI_KEY"YouTube Playlist API questions
What you get, what it costs and how to call it.
What does the YouTube Playlist API return?
A playlist's details (title, description, owner channel, video count, total views) and one page (up to ~100) of its videos in order, each with id, url, title, channel, views, published time, duration and thumbnail, plus `next_page_token`. The response has playlist_id, url, title, description, channel_name, channel_id, video_count, views and 3 more.
Which parameters does the YouTube Playlist API take?
Every parameter of GET /playlist is optional. You can pass playlist_id and page_token.
How much does one YouTube Playlist API call cost?
One successful call costs 5 credits. A failed call costs nothing. On the Hobby plan ($49 a month for 250,000 credits), 1,000 calls cost about $0.98. The Free plan gives you 1,000 credits a month, with no credit card required. See plans and credit prices for everything after that.
How do I call the YouTube Playlist API?
Send an HTTPS GET request to https://api.maviapi.com/v1/sites/youtube/playlist with your API key in the Authorization header, as in the example request on this page. Create a key on your API keys page, or try the endpoint first in the console with the free test key.
Is the YouTube Playlist API official?
No. It is an independent, hosted API from maviapi for the public data on youtube.com, and it is not made, endorsed or supported by YouTube. Its parameters and response fields are documented on this page.