Skip to content

YouTube Video API

Full details of one video: title, description, channel (id, name, handle, subscribers), publish date, duration, view/like/comment counts, category, keywords, live/short flags, thumbnail and related videos.

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

Parameters

NameRequiredExampleDescription
video_idstring in queryOptionaldQw4w9WgXcQ11-character video id, or any youtube.com / youtu.be video URL

Response fields

video_idstringe.g."dQw4w9WgXcQ"
urlstringe.g."https://www.youtube.com/watch?v=dQw4w9WgXcQ"
titlestringe.g."Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"
descriptionstringe.g."The official video for “Never Gonna Give You Up” by Rick Astley. \n\nNever: The Autobiography 📚 OUT NOW! \nFollow this link to get your copy and listen to Rick’s ‘Never’ playlist ❤️ #RickAstleyNever\nhttps://linktr.ee/rickastleynever\n\n“Never Gonna Give You Up” was a global smash on its release in July 1987, topping the charts in 25 countries including Rick’s native UK and the US Billboard Hot 100. It also won the Brit Award for Best single in 1988. Stock Aitken and Waterman wrote and produced the track which was the lead-off single and lead track from Rick’s debut LP “Whenever You Need Somebody”. The album was itself a UK number one and would go on to sell over 15 million copies worldwide.\n\nThe legendary video was directed by Simon West – who later went on to make Hollywood blockbusters such as Con Air, Lara Croft – Tomb Raider and The Expendables 2. The video passed the 1bn YouTube views milestone on 28 July 2021.\n\nSubscribe to the official Rick Astley YouTube channel: https://RickAstley.lnk.to/YTSubID\n\nFollow Rick Astley:\nFacebook: https://RickAstley.lnk.to/FBFollowID \nTwitter: https://RickAstley.lnk.to/TwitterID \nInstagram: https://RickAstley.lnk.to/InstagramID \nWebsite: https://RickAstley.lnk.to/storeID \nTikTok: https://RickAstley.lnk.to/TikTokID\n\nListen to Rick Astley:\nSpotify: https://RickAstley.lnk.to/SpotifyID \nApple Music: https://RickAstley.lnk.to/AppleMusicID \nAmazon Music: https://RickAstley.lnk.to/AmazonMusicID \nDeezer: https://RickAstley.lnk.to/DeezerID \n\nLyrics:\nWe’re no strangers to love\nYou know the rules and so do I\nA full commitment’s what I’m thinking of\nYou wouldn’t get this from any other guy\n\nI just wanna tell you how I’m feeling\nGotta make you understand\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\nWe’ve known each other for so long\nYour heart’s been aching but you’re too shy to say it\nInside we both know what’s been going on\nWe know the game and we’re gonna play it\n\nAnd if you ask me how I’m feeling\nDon’t tell me you’re too blind to see\n\nNever gonna give you up\nNever gonna let you down\nNever gonna run around and desert you\nNever gonna make you cry\nNever gonna say goodbye\nNever gonna tell a lie and hurt you\n\n#RickAstley #NeverGonnaGiveYouUp #WheneverYouNeedSomebody #OfficialMusicVideo"
channel_idstringe.g."UCuAXFkgsw1L7xaCfnd5JJOw"
channel_namestringe.g."Rick Astley"
channel_handlestringe.g."@RickAstleyYT"
channel_subscribers_textstringe.g."4.56M subscribers"
channel_subscribersintegere.g.4560000
publishedstringe.g."2009-10-24T23:57:33-07:00"
upload_datestringe.g."2009-10-24T23:57:33-07:00"
duration_secondsintegere.g.213
viewsintegere.g.1838926498
likesintegere.g.19512260
commentsintegere.g.2400000
categorystringe.g."Music"
keywordsstring[]
is_live_contentbooleane.g.false
is_live_nowbooleane.g.false
is_shortbooleane.g.false
is_family_safebooleane.g.true
is_unlistedbooleane.g.false
available_countries_countintegere.g.249
thumbnailstringe.g."https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp"
relatedobject[]12 fields
typestringe.g."video"
video_idstringe.g."_k73o4jJmMs"
urlstringe.g."https://www.youtube.com/watch?v=_k73o4jJmMs"
titlestringe.g."13 year old me and Rick Astley "
channel_namestringe.g."Rickastleyismysuperman "
channel_idstringe.g."UCrN6r-U65V68lxK0tuKHdZA"
publishedstringe.g."1mo ago"
views_textstringe.g."160"
viewsintegere.g.160
durationstringe.g."0:54"
duration_secondsintegere.g.54
thumbnailstringe.g."https://i.ytimg.com/vi/_k73o4jJmMs/hqdefault.jpg?sqp=-oaymwFBCNACELwBSFryq4qpAzMIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB8AEB-AG-B4AC0AWKAgwIABABGCMgXyhyMA8=&rs=AOn4CLD6jsXdtxHEK1RXKMKbgnFRFakvYQ"

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/video' \
  -H "Authorization: Bearer $MAVI_KEY"

YouTube Video API questions

What you get, what it costs and how to call it.

What does the YouTube Video API return?

Full details of one video: title, description, channel (id, name, handle, subscribers), publish date, duration, view/like/comment counts, category, keywords, live/short flags, thumbnail and related videos. The response has video_id, url, title, description, channel_id, channel_name, channel_handle, channel_subscribers_text and 17 more.

Which parameters does the YouTube Video API take?

Every parameter of GET /video is optional. You can pass video_id.

How much does one YouTube Video 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 Video API?

Send an HTTPS GET request to https://api.maviapi.com/v1/sites/youtube/video 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 Video 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.