YouTube+API.SH

YouTube API

YouTube videos, channels, comments, transcripts, Shorts, live chat and charts as JSON, with no Google Cloud project or daily quota to manage.

The API.SH YouTube API returns what YouTube's public pages show, as JSON. A video comes with title, channel, views, likes, publish date, keywords, chapters, captions and the Most replayed heatmap; separate routes return transcripts, every subtitle track, stream formats, the Up next list, a preview frame near any timestamp, sponsor segments with promo codes, and live chat replays with Super Chats. Channels give subscribers, About-panel links, country and join date, and their videos, Shorts, live streams, playlists, podcasts and community posts, sorted latest, popular or oldest. Search takes type, duration, upload date and feature filters. There are also comments with replies, hashtags, playlists, Shorts sounds, trending Shorts and YouTube's music charts by country.

  • 32 endpoints
  • from $1 / 1,000 calls
  • 1,000 free credits / month
  • failed calls free
YouTube channel
GET https://api.api.sh/youtube/v1/channel
{"id": "UCX6OQ3DkcsbYNE6H8uQQuVA","handle": "MrBeast","title": "MrBeast","description": "SUBSCRIBE FOR A COOKIE!\nNew MrBeast or MrBeast Gaming video every single Saturday at noon eastern time!\nAccomplishments:\n- Raised $20,000,00…","url": "http://www.youtube.com/@MrBeast","keywords": "mrbeast6000 beast mrbeast Mr.Beast mr","avatar": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s900-c-k-c0x00ffffff-no-rj","subscribers": "525M","handle_display": "@MrBeast","verified": true,"subscriber_count": 525000000,"subscribers_text": "525M subscribers","video_count": 1000,"video_count_text": "1K videos","avatars": [{"url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s72-c-k-c0x00ffffff-no-rj","width": 72,"height": 72},{"url": "https://yt3.googleusercontent.com/nxYrc_1_2f77DoBadyxMTmv7ZpRZapHR5jbuYe7PlPd5cIRJxtNNEYyOC0ZsxaDyJJzXrnJiuDE=s120-c-k-c0x00ffffff-no-rj","width": 120,"height": 120},"… 1 more"],"banner": "https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biqF1CpxT8OPl7izhNQsDPD3JHhd5y5Mg9GrP=w2560-fcrop64=1,00005a57ffffa5a8-…","banners": [{"url": "https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biqF1CpxT8OPl7izhNQsDPD3JHhd5y5Mg9GrP=w1060-fcrop64=1,00005a57ffffa5a8-…","width": 1060,"height": 175},{"url": "https://yt3.googleusercontent.com/mHMO_eEMp0dPvh0ADwXhPXNYb_GnjSVsLI8biqF1CpxT8OPl7izhNQsDPD3JHhd5y5Mg9GrP=w1138-fcrop64=1,00005a57ffffa5a8-…","width": 1138,"height": 188},"… 4 more"],"header_description": "SUBSCRIBE FOR A COOKIE! ","links": ["https://www.instagram.com/mrbeast/"],"attribution": "Instagram","rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCX6OQ3DkcsbYNE6H8uQQuVA","owner_urls": ["http://www.youtube.com/@MrBeast"],"is_family_safe": true,"available_countries": ["AF","AI","… 247 more"],"tags": ["mrbeast6000","beast","… 3 more"],"canonical_url": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA","noindex": false,"unlisted": false,"tabs": [{"title": "Home","url": "https://www.youtube.com/@MrBeast/featured","selected": false},{"title": "Videos","url": "https://www.youtube.com/@MrBeast/videos","selected": true},"… 3 more"],"featured_videos": [{"id": "_c2e1NcI3Sc","title": "Beat Haaland, Win $100,000","published": "3 days ago","views": "62M views","url": "https://youtu.be/_c2e1NcI3Sc","content_type": "video","thumbnail": "https://i.ytimg.com/vi/_c2e1NcI3Sc/hq720_custom_2.jpg?sqp=CNyMq9cG-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLA-AKDV-DnecO…","thumbnails": [{"url": "https://i.ytimg.com/vi/_c2e1NcI3Sc/hq720_custom_2.jpg?sqp=CNyMq9cG-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLAgoq0mH2SkWe…","width": 360,"height": 202},{"url": "https://i.ytimg.com/vi/_c2e1NcI3Sc/hq720_custom_2.jpg?sqp=CNyMq9cG-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLA-AKDV-DnecO…","width": 720,"height": 404}],"duration": "22:28","duration_seconds": 1348,"view_count": 62000000,"badges": ["22:28"],"metadata_parts": ["62M views","3 days ago"],"published_text": "3 days ago","channel_name": null,"channel_id": null,"channel_url": null,"channel_avatar": null},{"id": "RE3_PGwDwhw","title": "Lose 150 Lbs Together, Win $250,000","published": "2 weeks ago","views": "178M views","url": "https://youtu.be/RE3_PGwDwhw","content_type": "video","thumbnail": "https://i.ytimg.com/vi/RE3_PGwDwhw/hq720_custom_2.jpg?sqp=CNyMq9cG-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLCKh8R53QzhZq…","thumbnails": [{"url": "https://i.ytimg.com/vi/RE3_PGwDwhw/hq720_custom_2.jpg?sqp=CNyMq9cG-oaymwEgCOgCEMoBSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLATvD8vA6hjpa…","width": 360,"height": 202},{"url": "https://i.ytimg.com/vi/RE3_PGwDwhw/hq720_custom_2.jpg?sqp=CNyMq9cG-oaymwEgCNAFEJQDSFXyq4qpAxIIARUAAIhCGAFwAcABBrgC9xg=&rs=AOn4CLCKh8R53QzhZq…","width": 720,"height": 404}],"duration": "43:17","duration_seconds": 2597,"view_count": 178000000,"badges": ["43:17"],"metadata_parts": ["178M views","2 weeks ago"],"published_text": "2 weeks ago","channel_name": null,"channel_id": null,"channel_url": null,"channel_avatar": null},"… 18 more"],"view_count": 145677120382,"views_text": "145,677,120,382 views","videos_text": "1,011 videos","country": "United States","joined": "Feb 19, 2012","joined_date": "2012-02-19","cached": false,"credits_used": 1}
1 credit · $1 per 1,000 calls

What you can build with the YouTube API

Transcripts for AI and research

/youtube/v1/transcript returns timed segments and full text for a video_id. /youtube/v1/video/subtitles lists every track by language and returns manual or auto-generated (kind=asr) text, for summaries, RAG indexes or quote search across a channel's uploads.

Channel analytics and competitor tracking

Resolve an @handle to its UC id with /youtube/v1/channel/resolve, read subscriber, view and video totals from /youtube/v1/channel/about, and log the views and publish date of each upload from /youtube/v1/channel/videos or /youtube/v1/channel/shorts with sort=latest.

Comment analysis

Collect comments with /youtube/v1/comments (sort=top or newest, next_cursor back as cursor) and open each thread with /youtube/v1/comment/replies using the comment's replies_cursor. Fields include likes, pinned and hearted-by-creator flags. Community posts have their own comments route.

Sponsorship research

/youtube/v1/video/sponsors returns the paid-promotion flag, sponsor mentions, promo codes and links in a video, and /youtube/v1/channel/search finds every video on a channel that mentions a brand, so you can map who a creator has worked with.

Music charts and Shorts sounds

/youtube/v1/charts gives weekly top songs, artists and music videos and daily trending music videos per country, with rank, previous rank, weeks on chart and views. /youtube/v1/audio and /youtube/v1/music/shorts show how many Shorts use a sound and list them.

YouTube SEO and keyword research

Run /youtube/v1/search with sort=views, upload_date=month and gl/hl for one market, collect autocomplete phrases from /youtube/v1/search/typeahead, and check what ranks under a hashtag with /youtube/v1/hashtag.

YouTube data you get

Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.

YouTube Shorts sound/youtube/v1/audio
audio_idZbZSe6N_BXstitleHappy (Official Video)full_titlePharrell Williams - Happy (Offic…artist@Pharrellartist_channel_idUCNUbNl2U6Hg8J0Zem6hzC2gartist_urlhttps://www.youtube.com/channel/…artist_avatarhttps://yt3.ggpht.com/LtoZFEyh1h…artist_officialtruecoverhttps://i.ytimg.com/vi/ZbZSe6N_B…duration4:01duration_seconds241shorts_count_text118K Shortsshorts_count118000source_video_idZbZSe6N_BXssource_video_urlhttps://www.youtube.com/watch?v=…urlhttps://www.youtube.com/source/Z…count15next_cursor4qmFsgLlARIRRkVzZnZfYXVkaW9fcGl2…
shorts[]id · url · title · views · thumbnail · view_count · thumbnails · accessibility_label
YouTube channel/youtube/v1/channel
idUCX6OQ3DkcsbYNE6H8uQQuVAhandleMrBeasttitleMrBeastdescriptionSUBSCRIBE FOR A COOKIE! New MrBe…urlhttp://www.youtube.com/@MrBeastkeywordsmrbeast6000 beast mrbeast Mr.Bea…avatarhttps://yt3.googleusercontent.co…subscribers525Mhandle_display@MrBeastverifiedtruesubscriber_count525000000subscribers_text525M subscribersvideo_count1000video_count_text1K videosbannerhttps://yt3.googleusercontent.co…header_descriptionSUBSCRIBE FOR A COOKIE! attributionInstagramrss_urlhttps://www.youtube.com/feeds/vi…
avatars[]url · width · height
banners[]url · width · height
tabs[]title · url · selected
featured_videos[]id · title · published · views · url · content_type · thumbnail · thumbnails · duration · duration_seconds · view_count · badges
YouTube channel about/youtube/v1/channel/about
channel_idUCBJycsmduvYEL83R_U4JriQurlhttp://www.youtube.com/@mkbhdhandlemkbhddescriptionMKBHD: Quality Tech Videos | You…countryUnited Statessubscribers_text21.4M subscriberssubscriber_count21400000views_text5,860,796,445 viewsview_count5860796445videos_text1,864 videosvideo_count1864joinedMar 21, 2008joined_date2008-03-21business_email_hiddentrue
links[]title · url · display · favicon

YouTube API endpoints and prices

Every YouTube endpoint costs 1 credit per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing

Search and discovery7
YouTube search within a channel
/youtube/v1/channel/search
params channel, q +3 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube Charts
/youtube/v1/charts
params none required +2 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube search
/youtube/v1/search
params q +8 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube search suggestions
/youtube/v1/search/typeahead
params qdocstry
$1 · $2 PAYG
1 credit
Trending YouTube Shorts
/youtube/v1/shorts/trending
params none required +1 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube trending
/youtube/v1/trending
params none required +3 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube related videos
/youtube/v1/video/related
params id +1 optionaldocstry
$1 · $2 PAYG
1 credit
Profiles and accounts9
YouTube channel
/youtube/v1/channel
params channeldocstry
$1 · $2 PAYG
1 credit
YouTube channel about
/youtube/v1/channel/about
params channeldocstry
$1 · $2 PAYG
1 credit
YouTube channel live streams
/youtube/v1/channel/lives
params channel +2 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube channel playlists
/youtube/v1/channel/playlists
params channel +1 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube channel podcasts
/youtube/v1/channel/podcasts
params channel +1 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube channel community posts
/youtube/v1/channel/posts
params channel +1 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube channel handle <-> id
/youtube/v1/channel/resolve
params none required +2 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube channel Shorts
/youtube/v1/channel/shorts
params channel +2 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube channel videos
/youtube/v1/channel/videos
params channel +2 optionaldocstry
$1 · $2 PAYG
1 credit
Posts and media12
YouTube video comments
/youtube/v1/comments
params video_id +2 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube videos for a hashtag
/youtube/v1/hashtag
params hashtag +1 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube playlist
/youtube/v1/playlist
params url +1 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube community post
/youtube/v1/post
params urldocstry
$1 · $2 PAYG
1 credit
YouTube community post comments
/youtube/v1/post/comments
params url +2 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube video transcript
/youtube/v1/transcript
params video_id +1 optionaldocstry
$1 · $2 PAYG
1 credit
One YouTube video
/youtube/v1/video
params iddocstry
$1 · $2 PAYG
1 credit
YouTube live chat replay
/youtube/v1/video/chat
params id +3 optionaldocstry
$1 · $2 PAYG
1 credit
YouTube video formats and download links
/youtube/v1/video/formats
params iddocstry
$1 · $2 PAYG
1 credit
YouTube video frame at a time
/youtube/v1/video/screenshot
params video_id +1 optionaldocstry
$1 · $2 PAYG
1 credit
Sponsors in a YouTube video (segments, promo codes, links)
/youtube/v1/video/sponsors
params urldocstry
$1 · $2 PAYG
1 credit
YouTube video subtitles
/youtube/v1/video/subtitles
params video_id +2 optionaldocstry
$1 · $2 PAYG
1 credit
Comments and reviews1
Replies to a YouTube comment
/youtube/v1/comment/replies
params cursordocstry
$1 · $2 PAYG
1 credit
More data3
YouTube Shorts sound
/youtube/v1/audio
params audio_iddocstry
$1 · $2 PAYG
1 credit
YouTube Shorts using a sound
/youtube/v1/music/shorts
params music_id +1 optionaldocstry
$1 · $2 PAYG
1 credit
One YouTube short
/youtube/v1/shorts
params iddocstry
$1 · $2 PAYG
1 credit

Call the YouTube API

YouTube channel: GET https://api.api.sh/youtube/v1/channel

curl "https://api.api.sh/youtube/v1/channel?channel=Google" \
  -H "x-api-key: $APISH_KEY"
  1. Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
  2. Create an API keyOne key works for all 918 platforms.
  3. Send the requestJSON back in one call. Add output=csv or output=ndjson for files.

Measured against other YouTube APIs

Same request to each provider on 28 October 2026, priced at each one's cheapest paid plan. Full results and raw responses

YouTube video dQw4w9WgXcQ
$1.00per 1,000 videos3.2 smedian time105data fields

Cheaper than Apify, ScrapeCreators, ScrapingBee, SerpApi for this request.

Why API.SH for YouTube data

  • Public data only: no YouTube login, cookies or account needed
  • One key and one response shape for YouTube and 917 other platforms
  • Built and maintained by API.SH, not third-party publishers
  • Pay per call; errors on our side cost nothing
  • No rate limits: run as many calls in parallel as you need
  • Live status for every endpoint

API.SH vs the official YouTube API

Google's YouTube Data API v3 needs a Google Cloud project and API key, spends a daily unit quota on every request, and does not give transcript text for other people's videos, since caption downloads need the owner's authorization. API.SH needs no Google project and adds transcripts, sponsor segments, chat replays and charts.

yt-dlp and youtube-transcript-api are free, but you run them and patch them yourself whenever YouTube changes, and Apify's YouTube actors charge per result for each actor. API.SH serves video, channel, comment, transcript and chart data from one key with retries handled.

YouTube API questions

What YouTube data can I get?+

Videos: full details (/youtube/v1/video), Up next, formats and download links, transcripts, subtitles, a preview frame at a timestamp, sponsor segments and live chat replays. Channels: overview, About panel, handle to id, videos, Shorts, live streams, playlists, podcasts, community posts and search inside a channel. Also playlists, community posts and their comments, video comments and replies, search with filters and suggestions, hashtags, single Shorts, trending Shorts, Shorts sounds, trending lists and YouTube Charts.

How much does the YouTube API cost?+

Every YouTube endpoint costs 1 credit per call. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.

Is there a free YouTube API?+

Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /youtube/v1/audio at 1 credit each.

Is there an official YouTube API?+

Yes, the YouTube Data API v3. You create a Google Cloud project, enable the API and get a key; every call spends quota units, and a search costs many more units than a video lookup, so large jobs need a quota increase from Google. It has no transcript text for videos you do not own. API.SH needs none of that setup.

How do I create a YouTube API key?+

With Google, you create a key in the Google Cloud console under APIs & Services after enabling the YouTube Data API v3. With API.SH you skip that: sign up at api.sh and copy the key from your dashboard; it works on every YouTube route without quota requests.

Do I need a YouTube or Google account?+

No. Only public YouTube pages are read. Private, members-only and age-restricted videos are not returned in full; /youtube/v1/video/formats answers those with playability and reason instead of formats.

How do I get the transcript of a YouTube video?+

Call /youtube/v1/transcript?video_id=... for timed segments and the full text. To pick a language, or choose between uploaded and auto-generated captions, use /youtube/v1/video/subtitles with lang and kind=manual or asr; it also returns json3, srv3, vtt and ttml links for each track.

How do I get all comments on a YouTube video?+

/youtube/v1/comments with video_id and sort=top or newest returns comments and total_comments; pass next_cursor back as cursor until it is null. Replies come from /youtube/v1/comment/replies with the replies_cursor each comment carries.

Is there a YouTube Music API?+

There is no separate music.youtube.com route here, but /youtube/v1/charts returns YouTube's music charts (top songs, artists, music videos, Shorts songs and daily trending videos) by country, and /youtube/v1/audio and /youtube/v1/music/shorts cover the sounds used in Shorts.

How do I get started?+

Sign up at api.sh, copy your API key and call /youtube/v1/search?q=lofi+study&sort=views&upload_date=month. Every parameter is documented at https://api.sh/docs. JS and Python SDKs, Google Sheets, Zapier, Make and n8n run the same requests, and AI agents can use the MCP server at https://api.sh/mcp to fetch transcripts directly.

Does the YouTube API have a rate limit?+

No. API.SH puts no rate limit on your key: send as many YouTube calls in parallel as you need and pay only for the calls that run. If YouTube itself slows down, the call returns 503 with a retry-after header and is not charged.

More social APIs all social media APIs →

Start with 1,000 free credits
Every month, on every account. One key works for all 918 platforms.
Get a free API key