+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
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} 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 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
| YouTube search within a channel /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube Charts /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube search /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube search suggestions /youtube/ | $1 · $2 PAYG 1 credit |
| Trending YouTube Shorts /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube trending /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube related videos /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel about /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel live streams /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel playlists /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel podcasts /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel community posts /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel handle <-> id /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel Shorts /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube channel videos /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube video comments /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube videos for a hashtag /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube playlist /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube community post /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube community post comments /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube video transcript /youtube/ | $1 · $2 PAYG 1 credit |
| One YouTube video /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube live chat replay /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube video formats and download links /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube video frame at a time /youtube/ | $1 · $2 PAYG 1 credit |
| Sponsors in a YouTube video (segments, promo codes, links) /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube video subtitles /youtube/ | $1 · $2 PAYG 1 credit |
| Replies to a YouTube comment /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube Shorts sound /youtube/ | $1 · $2 PAYG 1 credit |
| YouTube Shorts using a sound /youtube/ | $1 · $2 PAYG 1 credit |
| One YouTube short /youtube/ | $1 · $2 PAYG 1 credit |
Call the YouTube API
YouTube channel: GET https://api.api.sh/youtube/
curl "https://api.api.sh/youtube/v1/channel?channel=Google" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/youtube/v1/channel",
params={"channel": "Google"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/youtube/v1/channel");
url.searchParams.set("channel", "Google");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/youtube/v1/channel", "channel", "Google")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "YouTube" and "YouTube channel".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 918 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor 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
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.