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.
https://api.maviapi.com/v1/sites/youtube/video5 credits per callParameters
| Name | Required | Example | Description |
|---|---|---|---|
video_idstring in query | Optional | dQw4w9WgXcQ | 11-character video id, or any youtube.com / youtu.be video URL |
Response fields
video_ide.g."dQw4w9WgXcQ"urle.g."https://www.youtube.com/watch?v=dQw4w9WgXcQ"titlee.g."Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)"descriptione.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_ide.g."UCuAXFkgsw1L7xaCfnd5JJOw"channel_namee.g."Rick Astley"channel_handlee.g."@RickAstleyYT"channel_subscribers_texte.g."4.56M subscribers"channel_subscriberse.g.4560000publishede.g."2009-10-24T23:57:33-07:00"upload_datee.g."2009-10-24T23:57:33-07:00"duration_secondse.g.213viewse.g.1838926498likese.g.19512260commentse.g.2400000categorye.g."Music"keywordsis_live_contente.g.falseis_live_nowe.g.falseis_shorte.g.falseis_family_safee.g.trueis_unlistede.g.falseavailable_countries_counte.g.249thumbnaile.g."https://i.ytimg.com/vi_webp/dQw4w9WgXcQ/maxresdefault.webp"related
typee.g."video"video_ide.g."_k73o4jJmMs"urle.g."https://www.youtube.com/watch?v=_k73o4jJmMs"titlee.g."13 year old me and Rick Astley "channel_namee.g."Rickastleyismysuperman "channel_ide.g."UCrN6r-U65V68lxK0tuKHdZA"publishede.g."1mo ago"views_texte.g."160"viewse.g.160duratione.g."0:54"duration_secondse.g.54thumbnaile.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 '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.