YouTube Channel Scraper: Videos, Shorts & Stats
Pricing
from $1.20 / 1,000 channel metadata scrapeds
YouTube Channel Scraper: Videos, Shorts & Stats
Scrape any YouTube channel: subscribers, exact total views, video count, joined date, country, links, plus its videos, Shorts and live streams with views and durations. Sort by latest, popular or oldest. No API key, no browser.
Pricing
from $1.20 / 1,000 channel metadata scrapeds
Rating
0.0
(0)
Developer
Automation Lab
Maintained by CommunityActor stats
1
Bookmarked
116
Total users
15
Monthly active users
2 days ago
Last modified
Categories
Features
Share
YouTube Channel Scraper
Extract channel metadata plus videos, Shorts and live streams from any YouTube channel — subscriber counts, exact total views, joined date, country, links, video titles, view counts, durations, thumbnails, and more. Sort videos by latest, most popular or oldest. Uses YouTube's internal InnerTube API directly (no browser, no Selenium, no Playwright). Fast, reliable, and low-cost.
What Does It Do?
YouTube Channel Scraper returns three types of records:
- Channel metadata — name, handle, description, subscriber count, total videos, total views, avatar, banner, verification status, keywords, and external links.
- Video listings — public videos, Shorts and live streams (each tab with its own limit) with their title, URL, view count, duration, thumbnail, and relative publish time (e.g., "3 days ago", "2 years ago"), newest, most popular or oldest first.
- Input errors — one structured, uncharged error record whenever a channel input cannot be resolved or fetched, so bulk runs can reconcile every failed input without parsing logs.
It handles all common channel input formats: @handles, plain handles, /channel/UCxxxxxxx IDs, /c/ custom URLs, and youtube.com URLs with or without https://, www., tab suffixes such as /videos, or share parameters.
Who Is It For?
- Content creators researching competitors and trending channels in their niche
- Marketing teams building influencer databases or tracking channel growth
- Data analysts building YouTube datasets for modeling and reporting
- Developers integrating YouTube channel data into dashboards, CRMs, or apps
- Researchers studying social media, digital culture, or media trends
- SEO professionals tracking video publishing cadence and view velocity
Why Use This Scraper?
- No browser required — pure HTTP via InnerTube API means fast runs and minimal memory
- 256 MB memory — runs efficiently without expensive compute instances
- Handles pagination — fetches up to 5,000 videos, 5,000 Shorts and 5,000 streams per channel with automatic continuation
- Videos, Shorts and Live — separate limits per tab, sorted latest, most popular or oldest
- Exact channel totals — lifetime views and video count from the channel's About panel, plus joined date and country
- Flexible input — accepts @handles, channel IDs, or full YouTube URLs
- Structured output — channel, video, and per-input error records ready for export
- Cost-efficient pricing — pay per channel scraped and per video listed, not per page loaded
Data Fields
Channel Item (type: "channel")
| Field | Type | Description |
|---|---|---|
type | string | Always "channel" |
channelId | string | YouTube channel ID (UCxxxxxxx) |
channelName | string | Display name of the channel |
channelHandle | string | @handle (e.g. @MrBeast) |
channelUrl | string | Canonical channel URL |
description | string | Full channel description |
subscriberCount | number | Subscriber count as a number (null if hidden) |
totalVideos | number | Exact number of public videos (from the About panel) |
totalViews | number | Exact all-time views across all videos (from the About panel) |
joinedDate | string | Date the channel was created, YYYY-MM-DD |
location | string | Same as country (YouTube publishes only a country) |
country | string | Country shown on the channel, e.g. United States |
avatarUrl | string | URL to the channel avatar image |
bannerUrl | string | URL to the channel banner image |
isVerified | boolean | Whether the channel has a verified badge |
isFamilySafe | boolean | Whether the channel is marked family-safe |
keywords | array | Channel keywords/tags |
links | array | External links with {text, url} for each |
Video Item (type: "video")
| Field | Type | Description |
|---|---|---|
type | string | Always "video" |
videoId | string | YouTube video ID |
title | string | Video title |
url | string | Full YouTube video URL (/shorts/ URL for Shorts) |
thumbnailUrl | string | URL to the video thumbnail |
viewCount | number | Total views as a number (null if hidden) |
duration | string | Duration in HH:MM:SS or MM:SS format (empty for Shorts) |
publishedText | string | Relative publish time (e.g. "2 months ago"; empty for Shorts) |
contentType | string | video, short or stream: the channel tab the item came from |
channelName | string | Name of the channel this video belongs to |
channelId | string | ID of the channel this video belongs to |
Error Item (type: "error")
Error items are diagnostic results and do not trigger a channel-scraped or video-scraped charge.
| Field | Type | Description |
|---|---|---|
type | string | Always "error" |
originalInput | string | Original value from the channels array |
stage | string | Stable processing stage: input, resolve_channel, fetch_channel, or fetch_videos |
errorCode | string | Stable machine-readable error code for automation and retries |
message | string | Safe human-readable explanation without raw response data |
Pricing
This actor uses pay-per-event pricing — you only pay for results:
| Event | Price | Description |
|---|---|---|
| Run start | $0.0005 | One-time charge, taken with the first saved result |
| Channel scraped | $0.0015 | Per channel metadata item extracted |
| Video scraped | $0.00037 | Per video, Short or stream extracted |
Prices shown are for the Free and Starter plans; on Scale and higher plans, channels cost $0.00135–$0.0012 and videos $0.000333–$0.000296. The run start is the same on every plan. A run in which no input is a real channel (for example, only typos) is not charged, and error items are never charged. The run stops cleanly at your Maximum charge per run and its status message says how many results it got.
Example costs:
- 1 channel + 50 videos: $0.0005 + $0.0015 + $0.0185 = $0.0205
- 5 channels + 100 videos each: $0.0005 + $0.0075 + $0.185 = $0.193
- 1 channel + 500 videos: $0.0005 + $0.0015 + $0.185 = $0.187
Compute costs (memory/time) are minimal since this is HTTP-only with no browser.
How to Use
- Open the actor on Apify Store
- Enter channel URLs in the "Channels to Scrape" field — one per line. Accepts
@handles, full URLs, or channel IDs. - Set max videos, Shorts and streams — how many of each to collect per channel (videos default 50; Shorts and streams default 0), and the order: latest, most popular or oldest
- Choose what to include — toggle channel info and/or video listings on/off
- Click Start and wait for results (usually seconds for small channels, minutes for large ones)
- Download results as JSON, CSV, or Excel from the dataset tab
Input Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
channels | array | required | Channel URLs, @handles, or channel IDs to scrape |
maxVideosPerChannel | integer | 50 | Max regular videos per channel (0 = skip videos) |
maxShortsPerChannel | integer | 0 | Max Shorts per channel (0 = skip Shorts) |
maxStreamsPerChannel | integer | 0 | Max live streams and past broadcasts per channel (0 = skip) |
sortBy | string | latest | latest, popular (most viewed first) or oldest |
includeChannelInfo | boolean | true | Include channel metadata item in output |
includeVideos | boolean | true | Include individual video items in output |
Accepted Channel Input Formats
All of the following are valid entries in the channels array:
@MrBeastMrBeastyoutube.com/@MrBeasthttps://www.youtube.com/@MrBeast/videoshttps://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVAUCX6OQ3DkcsbYNE6H8uQQuVAhttps://www.youtube.com/c/LinusTechTips
Video, Shorts and playlist URLs are not channels; they come back as CHANNEL_NOT_FOUND error items.
Output Example
Channel item
{"type": "channel","channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA","channelName": "MrBeast","channelHandle": "@MrBeast","channelUrl": "https://www.youtube.com/channel/UCX6OQ3DkcsbYNE6H8uQQuVA","description": "SUBSCRIBE FOR A COOKIE\n\nOr don't. I'm a description, not a cop.","subscriberCount": 528000000,"totalVideos": 1016,"totalViews": 147915943690,"joinedDate": "2012-02-19","location": "United States","country": "United States","avatarUrl": "https://yt3.googleusercontent.com/...","bannerUrl": "https://yt3.googleusercontent.com/...","isVerified": true,"isFamilySafe": true,"keywords": ["mrbeast", "challenge", "philanthropy"],"links": [{ "text": "Instagram", "url": "https://www.instagram.com/mrbeast/" },{ "text": "Twitter", "url": "https://twitter.com/MrBeast" }]}
Video item
{"type": "video","videoId": "dQw4w9WgXcQ","title": "I Spent 50 Hours Buried Alive","url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ","thumbnailUrl": "https://i.ytimg.com/vi/dQw4w9WgXcQ/maxresdefault.jpg","viewCount": 45000000,"duration": "14:32","publishedText": "3 months ago","channelName": "MrBeast","channelId": "UCX6OQ3DkcsbYNE6H8uQQuVA","contentType": "video"}
Error item
{"type": "error","originalInput": "@example-missing-channel","stage": "resolve_channel","errorCode": "CHANNEL_NOT_FOUND","message": "No public YouTube channel was found for this input."}
Tips and Best Practices
Scraping many channels efficiently
- Use an array of channels in a single run — the actor processes them sequentially without extra cost.
- Set
includeChannelInfo: falseif you only need video listings for channels you already have metadata for. - Set
maxVideosPerChannel: 0if you only want channel metadata without any videos.
Shorts, live streams and most popular videos
Set maxShortsPerChannel or maxStreamsPerChannel above 0 to add the channel's Shorts or Live tab. Set sortBy: "popular" to get a channel's most viewed uploads first, or "oldest" to start from its first uploads. Shorts rows have no duration or publish time, because the Shorts grid on YouTube shows neither.
Getting more than 50 videos
The default is 50 videos per channel for quick runs. To get all videos from a large channel, set maxVideosPerChannel to a high value like 5000. The actor handles pagination automatically.
Channels with hidden subscriber counts
Some channels (especially smaller creators) hide their subscriber count. In that case, subscriberCount will be null rather than a number.
Private, removed, or invalid channels
If a channel input is invalid, private, removed, or unavailable, the actor continues processing the remaining inputs and adds a structured type: "error" item to the dataset. Error items are not charged as scraped channels or videos.
Diagnostic reporting
Failed operations send sanitized diagnostic input, exceptions, and Actor/build/run IDs to our private, self-hosted GlitchTip service in Germany for repair. Secret fields and URL query strings are removed; reports are retained for 30 days. Expected missing-channel results are not reported as exceptions.
The Actor does not use AI or send data to AI providers. Channel targets are sent to YouTube; public channel/video metadata and input error records are stored in your Apify dataset. Apify hosts execution, logs, and run storage under your account's retention settings; you can delete those datasets and runs from your account. No cross-run cache is maintained. Avoid entering secrets or private data in channel targets; target strings appear in logs and error records. Contact us through the Actor's Issues tab for diagnostic deletion or support.
Integrations
Google Sheets / Spreadsheets
Use the Apify → Google Sheets integration to automatically push scraped channel or video data into a spreadsheet. Go to Integrations tab → Google Sheets → connect your account.
Webhooks and Zapier
Trigger downstream workflows when the actor finishes using webhooks. Compatible with Zapier, Make (Integromat), and n8n for no-code automations like sending results to Slack or updating a CRM.
Scheduled Runs
Use Apify's built-in scheduler to run this actor daily or weekly to track channel growth over time. Combine with a Google Sheet integration to build a live dashboard.
API Usage
Node.js
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });const run = await client.actor('automation-lab/youtube-channel-scraper').call({channels: ['@MrBeast', '@mkbhd'],maxVideosPerChannel: 25,includeChannelInfo: true,includeVideos: true,});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
from apify_client import ApifyClientclient = ApifyClient(token="YOUR_API_TOKEN")run = client.actor("automation-lab/youtube-channel-scraper").call(run_input={"channels": ["@MrBeast", "@mkbhd"],"maxVideosPerChannel": 25,"includeChannelInfo": True,"includeVideos": True,})for item in client.dataset(run["defaultDatasetId"]).iterate_items():print(item)
cURL
curl -X POST \"https://api.apify.com/v2/acts/automation-lab~youtube-channel-scraper/runs?token=YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"channels": ["@MrBeast"],"maxVideosPerChannel": 10}'
Use with Claude AI (MCP)
This actor is available as a tool in Claude AI through the Model Context Protocol (MCP). Add it to Claude Desktop, Cursor, Windsurf, or any MCP-compatible client.
Setup for Claude Code
$claude mcp add --transport http apify "https://mcp.apify.com?tools=automation-lab/youtube-channel-scraper"
Setup for Claude Desktop, Cursor, or VS Code
Add this to your MCP config file:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=automation-lab/youtube-channel-scraper"}}}
Example prompts
- "Get the last 50 videos from @LinusTechTips along with their view counts and durations."
- "Scrape the channel metadata for these 10 YouTube channels and compare their subscriber counts."
- "Fetch all videos from @mkbhd and list the ones with over 5 million views."
Learn more in the Apify MCP documentation.
Legality
This independent tool is not affiliated with or endorsed by YouTube, Google, or Apify. YouTube is named only to identify the supported data source.
This actor accesses publicly available YouTube channel pages and video listings using the same InnerTube API that YouTube's own web client uses. All data extracted is publicly visible to any visitor on YouTube.
Important notes:
- Only public channels and public videos are accessible
- Private videos, private channels, and age-restricted content cannot be accessed
- Do not use this tool for harassment, doxxing, or bulk-tracking individual creators without legitimate purpose
- Respect YouTube's Terms of Service and use data responsibly
- This tool does not download video files, only metadata
FAQ
Q: Does this work with brand accounts or YouTube Music channels? A: Yes — any public YouTube channel with a UC... channel ID works, including brand accounts and music channels.
Q: Why is subscriberCount null for some channels?
A: YouTube allows creators to hide their exact subscriber count. When a channel has fewer than 1,000 subscribers or has opted to hide the count, the API returns no number. The actor returns null in that case.
Q: Can I get a channel's Shorts or past live streams?
A: Yes. Set maxShortsPerChannel and/or maxStreamsPerChannel. Each row has contentType (video, short or stream) so you can tell them apart.
Q: Can I get video comments or descriptions? A: This actor focuses on channel and video listing data. For video transcripts and metadata including descriptions, use YouTube Transcript Scraper.
Q: Why are some videos missing from large channels?
A: YouTube sometimes limits how many videos appear in the videos tab for very large channels (1,000+ videos). This is a YouTube platform limitation, not an actor bug. Setting a high maxVideosPerChannel value will fetch all available videos.
Q: Why is publishedText relative ("2 months ago") instead of an exact date?
A: YouTube's InnerTube API returns relative time for the videos listing tab. To get exact publish dates, you would need to call the individual video page, which would significantly increase cost. The relative text is sufficient for most use cases.
Q: How do I get data for multiple channels at once?
A: Simply enter multiple channels in the channels array. Each channel is processed in the same run — there's no need to run the actor separately for each one.
Q: Why did I receive an error item for a channel?
A: The actor adds an uncharged type: "error" record when a channel cannot be resolved or fetched, then continues with the remaining inputs. Check originalInput, stage, and errorCode to identify and retry the failed value. Common causes include a typo, a deleted or suspended channel, or a private channel.
Related Scrapers
- YouTube Transcript Scraper — Extract full video transcripts and captions
- YouTube Scraper — Search YouTube and scrape video details
- YouTube Comments Scraper — Collect comments from YouTube videos
- Google News Scraper — Collect news articles from Google News
- Google Trends Scraper — Track keyword trends over time
Server API
This Actor is also a Server Actor: send one HTTP request and get one channel with its latest (or most popular) videos back in a second or two, without starting a run. Copy the server URL from the Actor's Server tab and send your Apify API token. Normal runs keep the full input and dataset.
GET /channel
| Query parameter | Required | Default | Description |
|---|---|---|---|
channel | yes | Channel URL, @handle or channel ID (UC…) | |
maxVideos | no | 10 | Items to return, 0–30 (0 = channel only) |
contentType | no | videos | videos, shorts or streams |
sortBy | no | latest | latest, popular or oldest |
Response: { "ok": true, "count": 11, "results": [ <channel item>, <video items>… ] }, with the same fields as the dataset items above.
Charge: one Channel scraped event for the channel item and one Video scraped event per video item returned. There is no start fee per request. Failed requests are free.
Limits: one channel and at most 30 items per request, 45 seconds per request.
| Status | error.code | Retry | Meaning |
|---|---|---|---|
| 400 | INVALID_CHANNEL, INVALID_LIMIT, INVALID_CONTENT_TYPE, INVALID_SORT, INVALID_INPUT | no | The query is not valid |
| 404 | CHANNEL_NOT_FOUND | no | No public YouTube channel matches the input |
| 402 | SPENDING_LIMIT_REACHED | no | Your spending limit does not allow this request |
| 413 | RESPONSE_TOO_LARGE | no | The answer is too large; use a normal run |
| 502 | UPSTREAM_ERROR | yes | YouTube answered with an error |
| 503 | UPSTREAM_RATE_LIMITED, OVERLOADED | yes | YouTube is rate limiting, or the server is busy |
| 504 | UPSTREAM_TIMEOUT, TIMEOUT | yes | YouTube or the request took too long |
curl "https://<server-url-from-the-Server-tab>/channel?channel=@mkbhd&maxVideos=5&sortBy=popular" \-H "Authorization: Bearer YOUR_API_TOKEN"