YouTube channel
A channel's header and metadata plus its Videos tab, newest first, one ~30-video page per call.
/v1/youtube/channel@handle and channel URLs resolve through InnerTube navigation/resolve_url (~1 KB); a UC… id goes straight to browse (~440 KB). channel carries the title, handle, subscribers_text and video_count_text verbatim ("27.9M subscribers", "5.8K videos"), the full description, keywords, RSS URL, avatar, banner and the header's first link (more_links_text says how many more YouTube folds away). videos rows carry views and the relative age verbatim as YouTube prints them on the grid ("47K views", "16 hours ago"); a channel with no Videos tab answers its metadata with no videos. With page_token the answer is the next page of videos only (an empty page is not charged). An unknown handle or id is a 404.
Request
https://api.scrapercompany.com/v1/youtube/channelAuthenticate with your API key in the x-api-key header (see Authentication).
Body
JSON object. Unknown fields are rejected with 422.
- channelstring | nullmin length 3, max length 300
@handle, aUC…channel id (channels[].channel_idorvideo.channel.idfrom the other YouTube routes) or a channel URL (/@name,/channel/UC…,/c/…,/user/…). Required unlesspage_tokenis given. - page_tokenstring | nullmax length 4000
next_page_tokenfrom a previous answer: the next page of videos only (channelis then null). - hlstringdefault
enpattern ^[A-Za-z]{2,3}(?:-[A-Za-z0-9]{2,4})?$Interface language YouTube localizes texts in (
hl): relative dates, view-count wording, caption track names. Counts parse to integers only for English-style numbers. - glstringdefault
USpattern ^[A-Za-z]{2}$Content country (
gl), two letters.
Example request
curl -X POST "https://api.scrapercompany.com/v1/youtube/channel" \
-H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Response
200 — A channel's metadata and latest videos. Metered responses carry x-credits-charged and x-credits-remaining headers (see credit headers).
{
"search_parameters": {
"engine": "youtube_channel",
"channel": "@TED",
"hl": "en",
"gl": "US"
},
"channel": {
"channel_id": "UCAuUUnT6oDeKwE6v1NGQxug",
"title": "TED",
"handle": "@TED",
"link": "https://www.youtube.com/@TED",
"subscribers_text": "27.9M subscribers",
"video_count_text": "5.8K videos",
"description": "The TED Talks channel features the best talks and performances from the TED Conference, where the world's leading thinkers and doers give the talk of their lives in 18 minutes (or less) — plus originals, podcasts and exclusive content.",
"keywords": "TED talks ideas worth spreading technology entertainment design",
"rss_url": "https://www.youtube.com/feeds/videos.xml?channel_id=UCAuUUnT6oDeKwE6v1NGQxug",
"is_family_safe": true,
"avatar": "https://yt3.googleusercontent.com/ytc/AIdro_koIFcCOrvh0KThLNOiazAIDu6hcs8bjkGNwe1f6A_OYm8=s160-c-k-c0x00ffffff-no-rj",
"banner": "https://yt3.googleusercontent.com/mgi4tXOEErQ-2-TUQISotNllP2DOI2IvpXEImFufQLKixWv2T-mKHv__uH3Nc5_gISGhF3IH=w2560-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",
"links": [
{
"title": "ted.com/membership",
"url": "https://www.ted.com/membership"
}
],
"more_links_text": "and 2 more links"
},
"videos": [
{
"position": 1,
"video_id": "RCNO3k4QL5M",
"title": "How to Use Tech to Outsmart Dictators | Leopoldo López | TED",
"link": "https://www.youtube.com/watch?v=RCNO3k4QL5M",
"channel": {
"name": "TED",
"id": "UCAuUUnT6oDeKwE6v1NGQxug",
"handle": "@TED",
"link": "https://www.youtube.com/@TED",
"thumbnail": "https://yt3.googleusercontent.com/ytc/AIdro_koIFcCOrvh0KThLNOiazAIDu6hcs8bjkGNwe1f6A_OYm8=s160-c-k-c0x00ffffff-no-rj"
},
"views_text": "61K views",
"published_time": "1 day ago",
"length": "14:50",
"length_seconds": 890,
"badges": [],
"is_live": false,
"thumbnail": "https://i.ytimg.com/vi/RCNO3k4QL5M/hq720_custom_3.jpg?sqp=CKDll9YG-oaymwErCNAFEJQDSFryq4qpAx0IARUAAIhCGAHYAQHiAQoIGBACGAY4AUABuALzGA==&rs=AOn4CLAxLLMDB4J2WrXf-_N4jpz3dltqvw"
}
],
"next_page_token": "4qmFsgLdCBIYVUNBdVVVblQ2b0RlS3dFNnYxTkdReHVn…",
"meta": {
"source": "youtube",
"wire_bytes": 441470,
"elapsed_s": 0.42
}
}Errors
Errors return a JSON body with a detail field. Failed requests are not charged. See Errors for the full list and retry advice.
| Status | Meaning | Retry? |
|---|---|---|
401Unauthorized | Missing or invalid API key. {"detail":"missing or invalid API key"} | No, fix the request |
402Payment Required | Not enough credits for this request. Only returned once credit enforcement is switched on; during the beta metering runs in shadow mode and never blocks. {"detail":"insufficient credits: this request costs 5, 0 available. Credits renew 2026-11-01."} | No, fix the request |
404Not Found | The property, stay, job or record was not found. {"detail":"job not found"} | No, fix the request |
422Unprocessable Content | Request validation failed. {"detail":[{"loc":["body","name"],"msg":"Field required","type":"missing"}]} | No, fix the request |
429Too Many Requests | Too many requests: the key's requests-per-minute limit was exceeded, or (once credit enforcement is on) the plan's concurrent-request limit. No rate-limit or Retry-After headers are sent; back off and retry. {"detail":"rate limit 60/min exceeded"} | Yes, with backoff |
502Bad Gateway | The upstream source failed, blocked the request or returned an unusable answer. Safe to retry later; failed requests are not charged. {"detail":"RuntimeError"} | Yes, with backoff |
503Service Unavailable | Temporarily unavailable: a dependency of this endpoint is down, or the upstream source changed its contract. Retry later. {"detail":"database unavailable: OperationalError"} | Yes, with backoff |
Try it
The quickest way: open this endpoint in Try it. It runs on your account with the example request filled in, shows the cost before you run, and shows the answer as a readable table next to the JSON and the code. Signed out? You sign in first and come straight back.
- Export your key:
export SCRAPERCOMPANY_API_KEY=sk_...(no key yet? request access). - Copy the cURL example above and run it in a terminal.
- Or open the interactive playground on api.scrapercompany.com, paste your key and pick this endpoint.
Questions about this page?
Send the page link and your question, and the team will answer.