YouTube channel scraper
The Zenrows YouTube channel scraper turns a YouTube channel URL into structured JSON: the permanent channel ID, channel name, channel URL, About description, avatar image and social links. You send the handle or channel URL, Fetch in Adaptive Stealth Mode opens the page, and Extract returns the fields. Run it from an API call, the CLI or an AI agent.
- Site
youtube.com- Returns
- Channel IDs, names, descriptions and avatars
- Updated
{
"channel": {
"avatar_url": "https://yt3.googleusercontent.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s900-c-k-c0x00ffffff-no-rj",
"channel_id": "UCBJycsmduvYEL83R_U4JriQ",
"channel_url": "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ",
"description": "MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality!…",
"name": "Marques Brownlee"
},
"social_links": []
}{
"url": "https://www.youtube.com/@mkbhd",
"mode": "auto",
"extract": "auto"
}Request and output of a live call to a YouTube channel page on Oct 20, 2026, trimmed for length. A field is returned when the page shows it.
What data can you scrape from a YouTube channel?
A channel page returns the channel record.
Pair it with the watch pages of the channel's videos and you also get per-video views, likes, tags and upload dates, all keyed to the same channel.
| Field | What it holds | Example |
|---|---|---|
channel. |
The permanent UC… ID, which never changes when the handle does |
UCBJycsmduvYEL83R_U4JriQ |
channel. |
The channel's display name | Marques Brownlee |
channel. |
The canonical channel URL built on the ID | https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ |
channel. |
The About text the creator wrote | MKBHD: Quality Tech Videos… |
channel. |
The channel's profile picture, full size | https://yt3.googleusercontent.com/…=s900-… |
social_ |
The links the creator lists on the channel header, when present | [] |
channel. (watch page) |
The channel behind any video, from the video's own page | Rick Astley |
channel. (watch page) |
The channel's handle URL, from a video page | http://www.youtube.com/@RickAstleyYT |
engagement. (watch page) |
Views on one of the channel's videos | 1828456716 |
engagement. (watch page) |
Likes on one of the channel's videos | 19489981 |
video. (watch page) |
When that video went live | 2009-10-24T23:57:33-07:00 |
video. (watch page) |
The tags the creator set on that video | ["rick astley", "nggyu", …] |
How to scrape a YouTube channel with Zenrows
- Create a free Zenrows account and copy your API key from the dashboard.
- Pick the channel URL.
https://www.youtube.com/@handleandhttps://www.youtube.com/channel/UC…open the same channel. Older/c/nameand/user/namelinks redirect to it. - Send it with the default configuration: Adaptive Stealth Mode opens the page and Extract returns the channel fields. No country is needed.
- Store
channel.channel_idas the key for that creator, since the handle can change. - Add the channel's videos. Request the watch pages of its uploads, in Batch, for views, likes and dates per video.
# pip install requests
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": "https://www.youtube.com/@mkbhd",
"mode": "auto", # Adaptive Stealth Mode
"extract": "auto", # structured JSON
}
response = requests.get("https://api.zenrows.com/v1/", params=params, timeout=180)
response.raise_for_status()
channel = response.json()["parsed"]["channel"]
print(channel["channel_id"], channel["name"])
print(channel["description"])// Node 18+ (built-in fetch)
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url: "https://www.youtube.com/@mkbhd",
mode: "auto",
extract: "auto",
});
const response = await fetch(`https://api.zenrows.com/v1/?${params}`, {
signal: AbortSignal.timeout(180_000),
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
const { parsed } = await response.json();
console.log(parsed.channel.channel_id, parsed.channel.name, parsed.channel.avatar_url);curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.youtube.com%2F%40mkbhd&mode=auto&extract=auto"
# Only the fields you need
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.youtube.com%2F%40mkbhd&mode=auto&extract=auto&extract_fields=channel.channel_id%2Cchannel.name%2Cchannel.description"# pip install zenrows
from zenrows import ZenRowsClient
client = ZenRowsClient("YOUR_ZENROWS_API_KEY")
for handle in ["@mkbhd", "@RickAstleyYT"]:
response = client.get(
f"https://www.youtube.com/{handle}",
params={"mode": "auto", "extract": "auto"},
)
channel = response.json()["parsed"]["channel"]
print(handle, channel["channel_id"], channel["name"])Input
The scraper takes one channel URL per request, plus the options below.
A Batch job applies the same options to every URL, so a creator list of any size is one job.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | A channel page: /@handle, /channel/UC…, or a legacy /c/ or /user/ link |
mode |
string | auto |
Adaptive Stealth Mode: starts with the lightest setup and adds rendering and protected-site handling only when the page needs them |
extract |
string | auto |
Returns the channel fields as JSON in parsed, next to the raw html |
extract_ |
string | all fields | Comma-separated paths to keep, such as channel.channel_id,channel.name |
proxy_ |
string | any | Two-letter country code, for channels whose page differs by region |
wait_ |
string | none | A CSS selector to wait for before the page is read |
{
"type": "regular",
"status": "closed",
"zenrows_params": {
"mode": "auto",
"extract": "auto"
},
"tasks": [
{ "url": "https://www.youtube.com/@mkbhd", "external_id": "mkbhd" },
{ "url": "https://www.youtube.com/@RickAstleyYT", "external_id": "rickastley" },
{ "url": "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ", "external_id": "mkbhd-by-id" }
]
}
Output
Every response is JSON with two keys: html, the page as YouTube served it, and parsed, the structured record. The channel page fills channel; a watch page from the same channel adds the per-video numbers. Both samples are trimmed outputs of live requests on Oct 20, 2026.
The avatar URL ends in a size suffix (=s900). Change the number to get a smaller image for a dashboard. For the full video record, including description, genre and thumbnails, see the YouTube scraper.
{
"channel": {
"avatar_url": "https://yt3.googleusercontent.com/qu4TmIaYUlS41-dJ9gZ7DUR3nilvmB5_11i6OKSdvNnBNiyOusZP1bMN6ICnuxtjFBb6ioKgRQ=s900-c-k-c0x00ffffff-no-rj",
"channel_id": "UCBJycsmduvYEL83R_U4JriQ",
"channel_url": "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ",
"description": "MKBHD: Quality Tech Videos | YouTuber | Geek | Consumer Electronics | Tech Head | Internet Personality!…",
"name": "Marques Brownlee"
},
"social_links": []
}{
"channel": {
"channel_url": "http://www.youtube.com/@RickAstleyYT",
"name": "Rick Astley"
},
"engagement": {
"like_count": 19489981,
"view_count": 1828456716
},
"video": {
"video_id": "dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"upload_date": "2009-10-24T23:57:33-07:00",
"duration_iso": "PT3M34S",
"tags": ["rick astley", "Never Gonna Give You Up", "nggyu"]
}
}Connect the MCP server (Claude Code)
claude mcp add zenrows -e ZENROWS_API_KEY=YOUR_ZENROWS_API_KEY -- npx -y @zenrows/mcp
MCP config (Cursor, Claude Desktop, Windsurf)
{
"mcpServers": {
"zenrows": {
"command": "npx",
"args": ["-y", "@zenrows/mcp"],
"env": { "ZENROWS_API_KEY": "YOUR_ZENROWS_API_KEY" }
}
}
}
Or run the CLI
npx -y @zenrows/cli init
zenrows extract "https://www.youtube.com/@mkbhd"
Then ask your agent
Use Zenrows to open these YouTube channels and give me a table with the
channel ID, display name and the first line of each About description:
https://www.youtube.com/@mkbhd
https://www.youtube.com/@RickAstleyYT
Scrape YouTube channels from your coding agent
Claude Code, Cursor, Codex and any MCP client can look up YouTube channels from a prompt.
The agent sends the same Fetch and Extract request shown above and reads the channel record from it. Connect the Zenrows MCP server once, or install the CLI and let the agent run it in the terminal.
Scrape YouTube channels at scale with Batch and Crawl
Batch runs a creator list as one job, in parallel, with your own ID on each result. Send the handles you have, read back the UC… IDs, and you have a clean creator table to join everything else on.
Crawl collects a channel's videos. Start it on the channel's /videos tab, keep only links that contain /watch?v=, and it returns the video pages it reaches. Those pages carry the views, likes and dates you need for a channel report.
Scheduled jobs run the same Batch job on a timetable, on Zenrows' side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can tell your app when a run finishes, and you can pause or resume the schedule at any time, with no cron server to keep alive.
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "regular",
"status": "closed",
"zenrows_params": { "mode": "auto", "extract": "auto" },
"tasks": [
{ "url": "https://www.youtube.com/@mkbhd", "external_id": "mkbhd" },
{ "url": "https://www.youtube.com/@RickAstleyYT", "external_id": "rickastley" }
]
}'
# Read the results when the job finishes
curl "https://async.api.zenrows.com/v1/jobs/JOB_ID/results?status=successful" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY"# channels.jsonl: one {"url": "...", "external_id": "...", "extract": "auto"} per line
zenrows batch create channels.jsonl --wait
zenrows batch results <job-id> --out youtube-channels.jsonlcurl -X POST "https://api.zenrows.com/v1/crawls" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://www.youtube.com/@mkbhd/videos",
"depth": 1,
"max_pages": 100,
"include_patterns": ["/watch?v="]
}'# Runs every day on Zenrows' side; each run keeps its own results
curl -X POST "https://async.api.zenrows.com/v1/jobs" \
-H "X-API-Key: YOUR_ZENROWS_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"type": "scheduled",
"status": "closed",
"schedule": {
"rate": {
"every": 1,
"unit": "day"
}
},
"zenrows_params": {
"mode": "auto",
"extract": "auto"
},
"tasks": [
{
"url": "https://www.youtube.com/@mkbhd",
"external_id": "youtube-channel"
}
]
}'
# Or at set times: "schedule": { "calendar": { "times_of_day": ["09:00"],
# "cadence": { "weekly": { "days": ["mon", "thu"] } } }, "timezone": "Europe/Madrid" }What teams do with YouTube channel data
| Use case | Data they pull | Who runs it |
|---|---|---|
| Creator discovery and vetting | Channel ID, name, About text, plus views and likes on recent videos | Influencer marketing agencies |
| Creator CRM enrichment | Channel ID and canonical URL to dedupe handles, avatar for the record | Partnerships and creator-economy platforms |
| Competitor channel tracking | The rival's channel record and the engagement of each new upload | Brand and content teams |
| Brand safety checks | About text and video tags before a sponsorship | Media buyers and agencies |
| Market maps of a niche | Channel records for every creator in a topic list | Analysts and investors |
Tips for scraping YouTube channels
- Resolve handles to IDs once. Send
@handleURLs, storechannel.channel_id, and request/channel/UC…from then on. The ID URL keeps working after a rename. - Use the tabs as entry points.
/@handle/videos,/@handle/shortsand/@handle/streamslist each kind of upload separately, which makes them good starting points for a crawl. - Turn the channel ID into the uploads playlist. Replace the leading
UCof a channel ID withUUand you get the ID of the channel's uploads playlist,https://www.youtube.com/playlist?list=UU…. - Dedupe your creator list on the ID. Agencies often hold the same creator under a handle, a
/c/link and a/channel/link. All three resolve to onechannel_id. - Resize the avatar from the URL. The
=s900suffix sets the image size in pixels. Ask for=s176for a thumbnail.
More YouTube and video & streaming scrapers
-
youtube.com
YouTube scraper
Video titles, channels, view counts, likes, durations and publish dates from YouTube.
-
youtube.com
YouTube transcript scraper
Full timestamped transcript text for any public YouTube video with captions.
-
youtube.com
YouTube comments scraper
Comment text, authors, like counts, reply counts and dates under any YouTube video.
-
youtube.com
YouTube search scraper
Ranked video results for any YouTube search query with titles, channels and views.
-
youtube.com
YouTube Shorts scraper
Shorts captions, view counts, likes and channel names from any YouTube channel or feed.
-
twitch.tv
Twitch scraper
Live streams and channels with stream titles, games, viewer counts and followers.
-
spotify.com
Spotify scraper
Tracks, albums, artists and playlists with durations, release dates and follower counts.
-
douyin.com
Douyin scraper
Short videos, creator profiles and comments with likes, shares and music from Douyin.
-
rumble.com
Rumble scraper
Videos and channels with titles, view counts, likes, durations and publish dates.
Frequently asked questions
-
Collecting publicly available channel data, such as a channel's name, ID, description and video statistics shown to every visitor, is common practice for creator research. A channel can belong to an individual, and personal data is protected by laws such as the GDPR and the CCPA, so collect only what you have a legitimate reason to use. Check YouTube's terms for your use case and ask your lawyer if you are unsure.
-
Yes. The YouTube Data API v3 has a
channelsendpoint that returns a channel's snippet and statistics, and it needs a Google Cloud project and an API key. Every call counts against a daily quota of 10,000 units by default, and resolving many handles or searching for channels uses that quota fast. A scraper reads the public channel page with no quota. -
Any public channel:
/@handle,/channel/UC…, and legacy/c/and/user/URLs, plus its tabs such as/videos,/shortsand/streams. For the videos themselves, use the YouTube scraper. -
Send the
@handleURL to the scraper and readchannel.channel_idfrom the response. The same record holds the canonicalchannel_urlbuilt on that ID. -
Send a GET request to
https://api.zenrows.com/v1/with your API key, the channel URL, Adaptive Stealth Mode and Extract turned on, as in the Python example above. Theparsedkey of the response holds the channel as a Python dictionary. Thezenrowspackage on PyPI wraps the same request. -
Send one URL per request, or a whole creator list as a Batch job that runs the URLs in parallel and keeps your own ID on each result. One Batch job accepts more than 10,000 URLs, sent inline or as a CSV file.
-
Yes. Connect the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Ask for the channels you want in plain language and the agent calls Fetch and Extract for you.
-
Yes. Create a scheduled Batch job with your YouTube URLs and the same settings as a single request, and Zenrows runs it on its side: every few hours, once a day, at set times on chosen days, or once at a future date. Each run keeps its own results, a webhook can notify your app when a run finishes, and the schedule can be paused or resumed at any time.
-
Zenrows works with n8n, Make, Zapier, Clay, Dify, LangChain, LlamaIndex, CrewAI and Mastra, plus the Python, Node.js and Go SDKs and any HTTP client. Creator teams often run it from Clay or n8n to enrich a list of handles. See the integrations page for the full list.
-
JSON by default, with the structured record in
parsedand the original page inhtml. You can also ask for the page as Markdown or plain text, which is what most LLM and RAG pipelines want.