YouTube Shorts scraper
The Zenrows YouTube Shorts scraper reads any /shorts/ link and returns JSON with the video ID, title, description, view count, like count, duration, upload date, tags, genre, vertical thumbnail and channel name. Fetch in Adaptive Stealth Mode opens the Short and Extract returns the fields. Call it from the API, the CLI or an AI agent.
- Site
youtube.com- Returns
- Shorts views, likes, descriptions, tags and channels
- Updated
{
"channel": {
"channel_url": "http://www.youtube.com/@brick_boro",
"name": "Brick Boro"
},
"comments": [],
"engagement": {
"like_count": 20579,
"view_count": 834332
},
"video": {
"video_id": "8Ze4cEEXBWc",
"title": "los shortshots de LEGO",
"description": "#legoespañol #lego #afol Conviértete en miembro de este canal para disfrutar de ventajas:…",
"upload_date": "2026-09-15T05:00:37-07:00",
"duration_iso": "PT0M10S",
"genre": "Entertainment",
"is_family_friendly": true,
"requires_subscription": null,
"tags": ["lego star wars", "lego", "star wars", "minifiguras lego", "darth maul"],
"thumbnail_url": "https://i.ytimg.com/vi/8Ze4cEEXBWc/oar2.jpg?sqp=…",
"canonical_url": "https://www.youtube.com/shorts/8Ze4cEEXBWc",
"short_url": "https://www.youtube.com/shorts/8Ze4cEEXBWc?feature=share",
"embed_url": "https://www.youtube.com/embed/8Ze4cEEXBWc"
}
}{
"url": "https://www.youtube.com/shorts/8Ze4cEEXBWc",
"mode": "auto",
"extract": "auto"
}Request and output of a live call to a YouTube Shorts page on Oct 22, 2026, trimmed for length. A field is returned when the page shows it.
What data can you scrape from YouTube Shorts?
A Shorts page returns three groups: video for the clip itself, engagement for its counters and channel for the creator who posted it.
These are the fields Shorts analysts read most, with the path of each one in the JSON.
| Field | What it holds | Example |
|---|---|---|
video. |
The 11-character ID after /shorts/ in the link |
8Ze4cEEXBWc |
video. |
The title the creator gave the Short | los shortshots de LEGO |
video. |
The text posted under the Short, hashtags included | #legoespañol #lego #afol… |
video. |
Publish time with the uploader's UTC offset | 2026-09-15T05:00:37-07:00 |
video. |
Clip length as an ISO 8601 duration | PT0M10S |
video. |
The category the Short is filed under | Entertainment |
video. |
Keyword tags set by the uploader, which the player never displays | ["lego star wars", "darth maul", …] |
video. |
YouTube's family-friendly flag | true |
video. |
The cover frame image | https://i.ytimg.com/vi/8Ze4cEEXBWc/oar2.jpg… |
video. |
The URL YouTube lists as the main address of the clip | https://www.youtube.com/shorts/8Ze4cEEXBWc |
video. |
The share link YouTube hands out | https://www.youtube.com/shorts/8Ze4cEEXBWc?feature=share |
video. |
The address for an embedded player | https://www.youtube.com/embed/8Ze4cEEXBWc |
engagement. |
Total views as an integer | 834332 |
engagement. |
Total likes as an integer | 20579 |
channel. |
The display name of the posting channel | Brick Boro |
channel. |
The channel's handle URL | http://www.youtube.com/@brick_boro |
How to scrape YouTube Shorts with Zenrows
- Create a free Zenrows account and copy the API key shown on your dashboard.
- Collect the Shorts links. Each one looks like
https://www.youtube.com/shorts/ID. Links copied from the mobile app often end in?feature=shareor?si=…, and you can drop those parameters. - Send each link with the default configuration. Adaptive Stealth Mode loads the Short and Extract returns the video, engagement and channel groups. View and like totals are global, so you can leave the country unset.
- Read
parsedfrom the response. For a lean record, list only the paths you store, such as the view count, like count and upload date. - Move the full list into Batch once a single link returns what you need, and rerun it daily to chart how fast each Short gains views.
# pip install requests
import requests
params = {
"apikey": "YOUR_ZENROWS_API_KEY",
"url": "https://www.youtube.com/shorts/8Ze4cEEXBWc",
"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()
data = response.json()["parsed"]
video = data.get("video") or {}
stats = data.get("engagement") or {}
views = stats.get("view_count") or 0
likes = stats.get("like_count") or 0
rate = round(likes / views * 1000, 1) if views else None
print(video.get("title"), views, likes, f"{rate} likes per 1,000 views")// Node 18+ (built-in fetch)
const params = new URLSearchParams({
apikey: "YOUR_ZENROWS_API_KEY",
url: "https://www.youtube.com/shorts/8Ze4cEEXBWc",
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();
const hashtags = (parsed.video?.description ?? "").match(/#[\p{L}\p{N}_]+/gu) ?? [];
console.log(parsed.channel?.name, parsed.engagement?.view_count, hashtags);curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2F8Ze4cEEXBWc&mode=auto&extract=auto"
# Only the counters, the date and the channel
curl "https://api.zenrows.com/v1/?apikey=YOUR_ZENROWS_API_KEY&url=https%3A%2F%2Fwww.youtube.com%2Fshorts%2F8Ze4cEEXBWc&mode=auto&extract=auto&extract_fields=engagement.view_count%2Cengagement.like_count%2Cvideo.upload_date%2Cchannel.name"# pip install zenrows
from zenrows import ZenRowsClient
client = ZenRowsClient("YOUR_ZENROWS_API_KEY")
shorts = [
"https://www.youtube.com/shorts/8Ze4cEEXBWc",
"https://www.youtube.com/shorts/tPEE9ZwTmy0",
]
for url in shorts:
parsed = client.get(url, params={"mode": "auto", "extract": "auto"}).json()["parsed"]
video = parsed.get("video") or {}
print(video.get("video_id"), video.get("duration_iso"), (parsed.get("engagement") or {}).get("view_count"))Input
The scraper takes one Shorts URL per request, plus the options below.
A Batch job applies the same options to every task, so tracking a creator's last hundred Shorts means a list of a hundred links with these settings.
| Parameter | Type | Default | Description |
|---|---|---|---|
url |
string | required | A Shorts page (https://www.youtube.com/shorts/ID). |
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 Short's fields as JSON in parsed, next to the raw html |
extract_ |
string | all fields | Comma-separated paths to keep, such as engagement.view_count,video.tags |
proxy_ |
string | any | Two-letter country code, for Shorts that YouTube shows only in some countries |
wait_ |
string | none | A CSS selector to wait for before the page is read |
session_ |
integer | none | Keep the same session across several requests, for up to 10 minutes |
{
"type": "regular",
"status": "closed",
"zenrows_params": {
"mode": "auto",
"extract": "auto"
},
"tasks": [
{ "url": "https://www.youtube.com/shorts/8Ze4cEEXBWc", "external_id": "8Ze4cEEXBWc" },
{ "url": "https://www.youtube.com/shorts/tPEE9ZwTmy0", "external_id": "tPEE9ZwTmy0" }
]
}
Output
Each response carries two keys: html, the Shorts page as YouTube served it, and parsed, the record with the video, engagement, channel and comments groups. Both samples below are trimmed from live requests made on Oct 22, 2026. The first is a ten-second vertical Short from a LEGO collector channel. The second is a one-second clip from 2011 that YouTube also serves under a Shorts link, and its canonical URL points back to the watch page.
Two fields tell the formats apart. In the vertical Short, canonical_url and short_url both keep the /shorts/ path and the thumbnail file is oar2.jpg. The older clip returns a watch URL, a youtu.be share link and an hqdefault.jpg thumbnail. Counts arrive as plain integers, ready for a database column. To get a spreadsheet, load parsed into pandas with pd.json_normalize(...) and save it as CSV or Excel. For an LLM pipeline, request Markdown instead of JSON.
{
"channel": {
"channel_url": "http://www.youtube.com/@brick_boro",
"name": "Brick Boro"
},
"engagement": {
"like_count": 20579,
"view_count": 834332
},
"video": {
"canonical_url": "https://www.youtube.com/shorts/8Ze4cEEXBWc",
"description": "#legoespañol #lego #afol Conviértete en miembro de este canal para disfrutar de ventajas:…",
"duration_iso": "PT0M10S",
"embed_url": "https://www.youtube.com/embed/8Ze4cEEXBWc",
"genre": "Entertainment",
"is_family_friendly": true,
"short_url": "https://www.youtube.com/shorts/8Ze4cEEXBWc?feature=share",
"tags": ["lego star wars", "minifiguras lego star wars", "coleccionista de lego", "lego darth maul"],
"thumbnail_url": "https://i.ytimg.com/vi/8Ze4cEEXBWc/oar2.jpg?sqp=…",
"title": "los shortshots de LEGO",
"upload_date": "2026-09-15T05:00:37-07:00",
"video_id": "8Ze4cEEXBWc"
}
}{
"channel": {
"channel_url": "http://www.youtube.com/@hiddentracktv2",
"name": "Mylo the Cat"
},
"engagement": {
"like_count": 1451192,
"view_count": 71751792
},
"video": {
"canonical_url": "https://www.youtube.com/watch?v=tPEE9ZwTmy0",
"description": "The original \"Shortest Video on Youtube\" video, starring Internet sensation, Mylo the Cat. Believe it or not, due to the popularity of this one second video,...",
"duration_iso": "PT0M1S",
"embed_url": "https://www.youtube.com/embed/tPEE9ZwTmy0",
"genre": "Pets & Animals",
"is_family_friendly": true,
"short_url": "https://youtu.be/tPEE9ZwTmy0",
"tags": ["Shortest", "Video", "on", "Youtube", "shortest video on youtube", "mylo the cat"],
"thumbnail_url": "https://i.ytimg.com/vi/tPEE9ZwTmy0/hqdefault.jpg?sqp=…",
"title": "Shortest Video on Youtube",
"upload_date": "2011-01-19T09:40:47-08:00",
"video_id": "tPEE9ZwTmy0"
}
}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/shorts/8Ze4cEEXBWc"
Then ask your agent
Use Zenrows to read these YouTube Shorts. For each one, give me the
channel, upload date, length in seconds, views, likes and the hashtags
in its description, then rank them by likes per 1,000 views:
https://www.youtube.com/shorts/8Ze4cEEXBWc
https://www.youtube.com/shorts/tPEE9ZwTmy0
Scrape YouTube Shorts from your coding agent
Claude Code, Cursor, Codex and any MCP client can pull Shorts data from a plain-language prompt.
Your agent sends the same Fetch and Extract request shown in the code above and reads the same JSON. Add the Zenrows MCP server to the agent once, or install the CLI and let the agent call it from the terminal.
Scrape YouTube Shorts at scale with Batch and Crawl
Batch sends a list of Shorts links as one job and runs them in parallel. Put the 11-character video ID in external_id so each result joins back to your sheet of creators or campaigns. Schedule the same job daily and store each run with its date, and the gap between two runs is each Short's view and like growth for that day.
Crawl collects links for you from web pages that link to Shorts, such as a brand's video page or a creator's link page. Start it there, keep only links containing /shorts/, and pass the Shorts URLs it returns to Batch for the full record of each clip.
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/shorts/8Ze4cEEXBWc", "external_id": "8Ze4cEEXBWc" },
{ "url": "https://www.youtube.com/shorts/tPEE9ZwTmy0", "external_id": "tPEE9ZwTmy0" }
]
}'
# 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"# shorts.jsonl: one {"url": "...", "external_id": "...", "extract": "auto"} per line
zenrows batch create shorts.jsonl --wait
zenrows batch results <job-id> --out youtube-shorts.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.example.com/videos",
"depth": 1,
"max_pages": 150,
"include_patterns": ["/shorts/"]
}'# 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/shorts/8Ze4cEEXBWc",
"external_id": "youtube-shorts"
}
]
}'
# Or at set times: "schedule": { "calendar": { "times_of_day": ["09:00"],
# "cadence": { "weekly": { "days": ["mon", "thu"] } } }, "timezone": "Europe/Madrid" }What teams do with YouTube Shorts data
| Use case | Data they pull | Who runs it |
|---|---|---|
| Short-form creator vetting | Views and likes on a creator's recent Shorts, upload dates, channel name | Influencer agencies and brand partnership teams |
| Paid Shorts campaign reporting | Daily view and like counts on each sponsored Short, posting time | Media buyers and creator marketing managers |
| Hashtag and trend research | Hashtags in the description, tags, genre and view counts across many Shorts | Social media strategists and trend analysts |
| Cross-platform short video benchmarks | Duration, views and likes per clip, compared with the same content on other apps | Content teams publishing to several platforms |
| Brand mention tracking | Titles, descriptions and tags that name a product, with the posting channel | Brand protection and PR teams |
| Video AI datasets | Titles, descriptions, tags and genre as clean JSON | AI and data teams |
Tips for scraping YouTube Shorts
- Strip the share parameters. Links from the app arrive as
/shorts/ID?feature=shareor with?si=…. Keephttps://www.youtube.com/shorts/IDso duplicates collapse to one row. - Use the video ID as your key. The 11 characters after
/shorts/match the ID invideo.video_id, the embed URL and any watch URL for the same clip, so one ID joins every dataset. - Read the hashtags from the description. Creators put their hashtags in the description, and
video.descriptionreturns them. Thevideo.tags[]list is a separate set of keywords that the Short itself never displays. - Convert the duration once.
PT0M10Sis ten seconds. Parse it when loading so you can group clips by length or separate Shorts from longer uploads in a mixed list. - Check
canonical_urlto classify a link. A vertical Short keeps the/shorts/path there, while an older clip opened through a Shorts link reports its watch URL. - Store every run with its date. A single request is a snapshot of the counters. Schedule a Batch run every day for recent uploads, keep
engagement.view_countper date, and the series shows how each Short is growing. - Normalise the upload time.
upload_datecarries the uploader's offset (-07:00,-08:00). Convert to UTC before comparing posting hours across channels.
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 channel scraper
Channel name, subscriber count, video count, description and recent uploads for any YouTube channel.
-
youtube.com
YouTube search scraper
Ranked video results for any YouTube search query with titles, channels and views.
-
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 public data from YouTube Shorts, such as titles, view counts, likes and the name of the posting channel, is common practice for marketing analytics and research. Creator and channel information can count as personal data, which laws such as the GDPR and the CCPA protect, so keep only what you have a legitimate reason to use. The clips themselves are protected by copyright. Read YouTube's terms for your use case and ask your lawyer if you are unsure.
-
YouTube has no API dedicated to Shorts. The YouTube Data API v3 treats a Short like any other video, so you can request one by its ID, but it needs a Google Cloud project and an API key and runs on a daily quota. Its responses carry no field that marks a video as a Short, so teams classify clips themselves from the duration and the URL. A scraper reads the public Shorts page and returns the fields shown there.
-
Any public Short at
https://www.youtube.com/shorts/ID. Each request returns that Short's video, engagement and channel groups. For a channel's details, such as its permanent ID, About text and avatar, use the YouTube channel scraper. For long-form videos, use the YouTube scraper. -
Yes, in the sense of the text the creator posted with it.
video.descriptionholds the description, hashtags included, andvideo.titleholds the title. The uploader's hidden keyword tags come back invideo.tags[]. -
Collect the channel's Shorts URLs first: the YouTube Data API's search endpoint lists a channel's videos by
channelId, and Shorts links follow theyoutube.com/shorts/VIDEO_IDpattern. Send that list to Batch, and each result carries the full record of one Short. -
Look at two fields.
video.duration_isogives the length, andvideo.canonical_urlkeeps the/shorts/path for a vertical Short, while an older clip opened through a Shorts link reports a watch URL. -
Send a GET request to
https://api.zenrows.com/v1/with your API key, the Shorts URL, and Adaptive Stealth Mode and Extract turned on, as in the Python example above. The response'sparsedkey holds the Short as a Python dictionary. Thezenrowspackage on PyPI wraps the same request. -
Send one link per request, or the whole list as a Batch job that runs the links in parallel and keeps your own ID on each result. One Batch job accepts more than 10,000 URLs, inline or as a CSV file.
-
Yes. Add the Zenrows MCP server to Claude, Cursor, Codex or any MCP client, or give your agent the Zenrows CLI. Paste the Shorts links, say which numbers you need, and the agent runs Fetch and Extract for each one.
-
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. A typical setup writes each day's Shorts view counts to Google Sheets or a warehouse from a workflow tool. See the integrations page for the full list.
-
JSON by default, with the record in
parsedand the original page inhtml. You can also ask for the page as Markdown or plain text, which suits LLM and RAG pipelines.