Skip to content

Structured YouTube data: send youtube_channels. Cursor-paginated, 1 credit per successful call.

GET · POST1 credit / successful callCursor-paginated
GEThttps://api.scrapier.io/api/v2/youtube-channel-video-scraper/Open in Playground

Call GET /api/v2/youtube-channel-video-scraper/ with youtube_channels. The results are in data.items; send data.next_cursor back as cursor to get the next page. 3 optional parameters refine the call (see Parameters).

Terminal window
curl -G "https://api.scrapier.io/api/v2/youtube-channel-video-scraper/" \
-H "X-API-Key: YOUR_API_KEY" \
--data-urlencode "youtube_channels=@mrbeast" \
--max-time 210
NameTypeRequiredDefaultDescription
X-API-Key headerstringyes—Your API key from the dashboard.
youtube_channelsstringyese.g. @mrbeastYouTube @handle / channel URL / channel id. Required on the first call.
cursorstringno—Pagination cursor returned in the previous response's next_cursor. Pass it back unchanged to fetch the next page. When next_cursor is null, you have reached the last page.
scrape_typestringnovideosvideos | shorts | both (videos paged first, then shorts).
videosshortsboth
locked in cursor
end_datestringno—YYYY-MM-DD, inclusive start of kept range (videos only).
locked in cursor
Advanced
NameTypeDefaultDescription
use_proxybooleantrueRoute the request through Scrapier's residential proxy pool. Default: true. Leave as is unless support tells you otherwise.
raw_databooleanfalseWhen true, the response carries the full raw upstream payload(s) the scraper received (GraphQL / JSON API bodies, HTML, embedded JSON-LD -- exactly as the platform returned them) under raw_responses, in place of the formatted items. When false (default) you get the formatted output. Pagination (cursor / next_cursor) works the same in both modes.
{
"success": true,
"data": {
"youtube_channels": "@mrbeast",
"channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"content_type": "videos",
"page_size": 30,
"items": [
{
"author_name": "@mrbeast",
"video_title": "I Survived The Most Extreme Places On Earth",
"publish_time": "8 days ago",
"view_count": "91M views",
"video_duration": "23 minutes, 28 seconds",
"video_url": "https://www.youtube.com/watch?v=gTKS8SAwUzE",
"cover_image_url": "https://i.ytimg.com/vi/gTKS8SAwUzE/hq720_custom_2.jpg",
"video_id": "gTKS8SAwUzE",
"content_type": "video",
"channel_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"browse_id": "UCX6OQ3DkcsbYNE6H8uQQuVA",
"input_channel": "@mrbeast",
"scraped_at": "2026-09-14T09:23:02.131Z"
}
],
"next_cursor": "eyJxIjoiQG1yYmVhc3QiLCJ0IjoidmlkZW9zIiwicGgiOiJ2aWRlb3MiLCJiIjoiVUMuLi4ifQ"
}
}

Sample from the live catalog; arrays trimmed to 3 items. Results are in data.items.

FieldTypeExampleDescription
youtube_channelsstring@mrbeast—
channel_idstringUCX6OQ3DkcsbYNE6H8uQQuVA—
content_typestringvideos—
page_sizeinteger30—
itemsarray[1 item]The results.
next_cursorstringeyJxIjoiQG1yYmVhc3QiLCJ0IjoidmlkZW9zIiwicGgiO…Pass back as cursor for the next page. null on the last page.
items[].author_namestring@mrbeast—
items[].video_titlestringI Survived The Most Extreme Places On Earth—
items[].publish_timestring8 days ago—
items[].view_countstring91M views—
items[].video_durationstring23 minutes, 28 seconds—
items[].video_urlstringhttps://www.youtube.com/watch?v=gTKS8SAwUzE—
items[].cover_image_urlstringhttps://i.ytimg.com/vi/gTKS8SAwUzE/hq720_cust…—
items[].video_idstringgTKS8SAwUzE—
items[].content_typestringvideo—
items[].channel_idstringUCX6OQ3DkcsbYNE6H8uQQuVA—
items[].browse_idstringUCX6OQ3DkcsbYNE6H8uQQuVA—
items[].input_channelstring@mrbeast—
items[].scraped_atstring2026-09-14T09:23:02.131Z—

Pass data.next_cursor back as cursor until it is null. Required inputs are ignored once a cursor is sent. Each page is one billed call. More in Pagination.

const url = "https://api.scrapier.io/api/v2/youtube-channel-video-scraper/";
let params = { youtube_channels: "@mrbeast" };
const items = [];
for (let page = 0; page < 10; page++) { // each page is one billed call
const res = await fetch(`${url}?${new URLSearchParams(params)}`, {
headers: { "X-API-Key": "YOUR_API_KEY" },
signal: AbortSignal.timeout(210_000),
});
const body = await res.json();
if (!res.ok) throw new Error(body.error ?? body.detail ?? `HTTP ${res.status}`);
const data = body.data;
items.push(...(data.items ?? []));
if (!data.next_cursor) break; // null = last page
params = { cursor: data.next_cursor };
}

Failed calls are free. Branch on the HTTP status and read the message from error (or detail). Full details in Errors.

StatusMeaningRetry?Charged?
400Bad or missing input.No — fix the paramsNo
401 / 403Missing, invalid or revoked API key.No — fix the keyNo
402Out of credits (body has balance).No — top upNo
404Unknown endpoint slug.No — check the slugNo
429 / 503Busy or throttled.Yes — after Retry-AfterNo
5xxTarget site or upstream failure, or timeout.Yes — with backoffNo
  • Locked into the cursor: scrape_type, end_date. Set them on the first call; later pages reuse them.
  • YouTube Channel Info — Structured YouTube data: send urls. Single lookup, 1 credit per successful call.
  • YouTube Channel Live/Streams — Structured YouTube data: send channels. Cursor-paginated, 1 credit per successful call.
  • YouTube Comment Replies — Structured YouTube data: send continuation_tokens. Cursor-paginated, 1 credit per successful call.
  • YouTube Comments — Structured YouTube data: send urls. Cursor-paginated, 1 credit per successful call.