Skip to content

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

GEThttps://api.maviapi.com/v1/sites/youtube/playlist5 credits per call

Parameters

NameRequiredExampleDescription
playlist_idstring in queryOptionalPLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufAplaylist id (PL..., UU..., OLAK...) or a playlist URL
page_tokenstring in queryOptionalNone`next_page_token` from a previous call to get the next page of videos (playlist_id then ignored)

Response fields

playlist_idstringe.g."PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA"
urlstringe.g."https://www.youtube.com/playlist?list=PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA"
titlestringe.g."Retro Tech"
descriptionstringe.g."In Retro Tech, Marques Brownlee uncovers the origin and nostalgia of iconic tech.."
channel_namestringe.g."Marques Brownlee"
channel_idstringe.g."UCBJycsmduvYEL83R_U4JriQ"
video_countintegere.g.6
viewsintegere.g.1129278
thumbnailstringe.g."https://i9.ytimg.com/s_p/PLBsP89CPrMeMV1oP42Zn2DrWpnFoSaufA/landscape_maxresdefault.jpg?sqp=CPiM_tcGir7X7AMICI_G--4FEAE=&rs=AOn4CLAQ7Xw4TlToBUq4pW1M7IbHoWVMEw&v=1574888207&days_since_epoch=20776"
videosobject[]12 fields
typestringe.g."video"
video_idstringe.g."kMtN9KJHn5Y"
urlstringe.g."https://www.youtube.com/watch?v=kMtN9KJHn5Y"
titlestringe.g."RETRO TECH: CAMCORDER"
channel_namestringe.g."Marques Brownlee"
channel_idstringe.g."UCBJycsmduvYEL83R_U4JriQ"
publishedstringe.g."6 years ago"
views_textstringe.g."9.3M views"
viewsintegere.g.9300000
durationstringe.g."22:55"
duration_secondsintegere.g.1375
thumbnailstringe.g."https://i.ytimg.com/vi/kMtN9KJHn5Y/hqdefault.jpg?sqp=-oaymwEnCNACELwBSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLAgVlRoHppgWo5CdYsH2JFKebs27Q"
next_page_tokenstringe.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
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.