YouTube Channel & Video Scraper: Search, Shorts, Stats avatar

YouTube Channel & Video Scraper: Search, Shorts, Stats

Pricing

from $0.80 / 1,000 videos

Go to Apify Store
YouTube Channel & Video Scraper: Search, Shorts, Stats

YouTube Channel & Video Scraper: Search, Shorts, Stats

Scrape YouTube channels, playlists and search results with full video metadata: title, description, exact publish date, duration, views, likes, comment count, tags, category, thumbnails, Shorts and live flags. Optional channel profile with subscribers, total views, links, join date and country.

Pricing

from $0.80 / 1,000 videos

Rating

0.0

(0)

Developer

ZH Tech

ZH Tech

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

6 days ago

Last modified

Features

Limited permissions

Share

Scrape YouTube channels, playlists and search results with full video metadata: title, full description, exact publish date and time, duration, exact views and likes, comment count, tags, hashtags, category, HD thumbnails, Shorts and live flags, and channel details. Add a channel profile record with subscribers, total channel views, video count, description, external links, join date, country, avatar and banner.

You only pay for videos and channel records that were actually delivered. Filtered, private, removed and failed videos are never charged; failures come back as free rows with a clear error code.

Built and maintained by ZH Tech.

What can this YouTube Channel Scraper do?

  • Every kind of input in one field: channels (@handle, /channel/UC..., /c/, /user/, or a tab such as /@name/shorts), playlists, video and Shorts links, bare video IDs and YouTube search URLs. Add plain search queries in a separate field. Duplicates are removed.
  • Full metadata for every video, not just the listing card: complete description, exact publish timestamp, exact likes and views, duration, comment count, tags, hashtags, category, family safe, unlisted, age restricted and members only flags, live stream start and end times.
  • Channel uploads in any order: newest first, most popular first or oldest first, for regular videos, Shorts and past live streams. No 100 video cap.
  • YouTube search with real filters: upload date (last hour, today, this week, this month, this year), type (videos, Shorts, movies), duration (under 3 minutes, 3 to 20 minutes, over 20 minutes, as in YouTube's current Filters dialog), features (4K, HD, live, subtitles, Creative Commons, 360, VR180, HDR, 3D, location, purchased) and sort order (relevance or popularity, the two orders YouTube still applies).
  • Channel profile record: subscribers, exact total views, video count, full description, external links (YouTube redirect links unwrapped), join date, country, keywords, avatar, banner, verified badge, RSS feed. Or run channel profiles only across a list of channels.
  • Free filters: published after and before (checked against the exact timestamp), title keywords and minimum views. Filtered videos are never charged.
  • Scheduled monitoring: "Only new videos" remembers what earlier runs returned, so a daily schedule on a list of channels or searches returns only fresh uploads.
  • High resolution thumbnails: the largest available image (usually 1920x1080) plus every size.
  • Built to avoid blocking: Apify Proxy with session rotation, retries, and automatic escalation from datacenter to residential IPs only for the requests YouTube blocks.
  • Never crashes on a bad video: each problem becomes a free row with an errorCode.

Use cases

  • Competitor and channel analysis: pull every upload of a channel with views, likes and comments to find what performs, how often they post, and which topics win.
  • Influencer discovery and outreach: search a niche, then collect channel profiles with subscriber counts, countries and website or social links.
  • YouTube SEO: study titles, tags, hashtags, descriptions and categories of the top results for your keywords.
  • Trend tracking: search with "Upload date: this week" and sort by views to see what is taking off.
  • Content databases and AI pipelines: build a catalog of videos with clean metadata, then add transcripts or comments with the companion actors.
  • Monitoring: schedule daily runs with "Only new videos" and push new uploads to Slack, Google Sheets, Airtable or your own API.

How to use it

  1. Click Try for free.
  2. Paste channel, playlist or video URLs into Channels, playlists or videos, and/or add Search queries.
  3. Set Max videos per channel, playlist or search, choose the channel order and any search filters.
  4. Click Start. Results appear in the Output tab within seconds. Download them as JSON, CSV, Excel, XML or HTML, or fetch them via the API.

Input examples

The 50 most popular videos of two channels, plus their channel profiles:

{
"urls": ["https://www.youtube.com/@veritasium", "@mkbhd"],
"channelSort": "popular",
"channelContentTypes": ["videos"],
"maxVideosPerSource": 50
}

This week's most viewed 3 to 20 minute videos for a search:

{
"searchQueries": ["home espresso tutorial"],
"searchSort": "views",
"searchUploadDate": "week",
"searchDuration": "3to20",
"maxVideosPerSource": 100
}

Channel profiles only, for a list of channels:

{
"urls": ["@3blue1brown", "@veritasium", "https://www.youtube.com/channel/UCBJycsmduvYEL83R_U4JriQ"],
"channelInfoOnly": true
}

Daily monitoring of new uploads (schedule this input):

{
"urls": ["@mkbhd", "@linustechtips"],
"maxVideosPerSource": 30,
"onlyNewVideos": true,
"stateKey": "tech-channels",
"includeChannelInfo": false
}

All input options

FieldTypeDefaultWhat it does
urlsarrayChannels, playlists, videos, Shorts or search URLs, or bare video IDs
searchQueriesarrayPlain search queries
maxVideosPerSourceinteger20Videos per channel, playlist or search (0 = all)
maxVideosinteger0Stop after this many videos in total (0 = no limit)
channelContentTypesarrayvideos, shorts, streamsWhich channel uploads to include
channelSortstringnewestnewest, popular or oldest
includeChannelInfobooleantrueAdd one channel profile row per channel input
channelInfoOnlybooleanfalseOnly channel profiles, no videos
searchSortstringrelevancerelevance or views (popularity). YouTube no longer sorts searches by upload date or rating: old inputs with date run as relevance, rating as views, with a log note
searchUploadDatestringanyany, hour, today, week, month, year
searchTypestringvideovideo, shorts, movie
searchDurationstringanyany, under3 (under 3 min), 3to20 (3 to 20 min), over20 (over 20 min). Old values still work: short (under 4 min), medium (4 to 20 min), long (over 20 min)
searchFeaturesarraylive, 4k, hd, subtitles, creativeCommons, 360, vr180, 3d, hdr, location, purchased
publishedAfter / publishedBeforestringDate (2026-01-31) or period ("30 days")
titleKeywordsarrayOnly videos whose title contains one of these
minViewsinteger0Skip videos with fewer views
includeDescriptionbooleantrueFull description text
includeCommentCountbooleantrueComment count (one extra small request per video)
includeErrorItemsbooleantrueFree rows for failed videos
onlyNewVideos / stateKeyboolean / stringfalse / defaultSkip videos returned by earlier runs
maxConcurrencyinteger10Videos in parallel
maxRetriesinteger5Retries per request with a fresh proxy session
proxyConfigurationobjectApify ProxyProxy settings
residentialFallbackbooleantrueRetry blocked requests on residential IPs

Output example

A video row:

{
"type": "video",
"status": "success",
"videoId": "aircAruvnKk",
"url": "https://www.youtube.com/watch?v=aircAruvnKk",
"title": "But what is a neural network? | Deep learning chapter 1",
"description": "What are the neurons, why are there layers, and what is the math underlying it? ...",
"publishedAt": "2017-10-05T08:11:25-07:00",
"publishDate": "2017-10-05",
"durationSeconds": 1120,
"duration": "18:40",
"viewCount": 25275663,
"likeCount": 570606,
"commentCount": 9500,
"commentCountText": "9.5K",
"commentsDisabled": false,
"tags": [],
"hashtags": [],
"category": "Education",
"thumbnailUrl": "https://i.ytimg.com/vi_webp/aircAruvnKk/maxresdefault.webp",
"thumbnails": [{"url": "https://i.ytimg.com/vi/aircAruvnKk/default.jpg", "width": 120, "height": 90}],
"isShort": false,
"isLive": false,
"isUpcoming": false,
"isLiveContent": false,
"liveStartedAt": null,
"liveEndedAt": null,
"isFamilySafe": true,
"isUnlisted": false,
"isAgeRestricted": false,
"isMembersOnly": false,
"isPaid": false,
"channelId": "UCYO_jab_esuFRV4b17AJtAw",
"channelName": "3Blue1Brown",
"channelHandle": "@3blue1brown",
"channelUrl": "https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw",
"position": 1,
"input": "https://www.youtube.com/@3blue1brown",
"source": "channel:@3blue1brown",
"scrapedAt": "2026-11-16T03:26:25+00:00"
}

A channel row (type: "channel"):

{
"type": "channel",
"status": "success",
"channelId": "UCYO_jab_esuFRV4b17AJtAw",
"channelName": "3Blue1Brown",
"channelHandle": "@3blue1brown",
"channelUrl": "https://www.youtube.com/channel/UCYO_jab_esuFRV4b17AJtAw",
"customUrl": "https://www.youtube.com/@3blue1brown",
"description": "My name is Grant Sanderson. Videos here cover a variety of topics in math...",
"subscriberCount": 8760000,
"subscriberCountText": "8.76M subscribers",
"videoCount": 247,
"videoCountText": "247 videos",
"viewCount": 794338616,
"joinedDate": "2015-03-03",
"joinedDateText": "Joined Mar 3, 2015",
"country": "United States",
"links": [{"title": "All things 3b1b", "url": "https://www.3blue1brown.com"}, {"title": "Patreon", "url": "https://www.patreon.com/3blue1brown"}],
"keywords": ["Mathematics"],
"avatarUrl": "https://yt3.googleusercontent.com/...",
"bannerUrl": "https://yt3.googleusercontent.com/...",
"isVerified": true,
"isFamilySafe": true,
"rssUrl": "https://www.youtube.com/feeds/videos.xml?channel_id=UCYO_jab_esuFRV4b17AJtAw",
"hasAboutData": true
}

The Output tab has ready made views: Videos, Channels, SEO and content (titles, tags, hashtags, descriptions), and Errors.

Error codes

CodeMeaning
VIDEO_UNAVAILABLEThe video does not exist or was removed
PRIVATE_VIDEOThe video is private
BLOCKEDYouTube kept refusing requests after all retries (rare)
FETCH_FAILEDUnexpected error for this video
LISTING_FAILED, CHANNEL_NOT_FOUNDA channel, playlist or search could not be listed
CHANNEL_INFO_FAILEDThe channel profile could not be read (its videos are still scraped)
INVALID_INPUTThe input is not a YouTube URL or ID

Each run also saves a RUN_SUMMARY record in its key-value store with counts, time taken and proxy statistics.

How much does it cost to scrape YouTube channels and videos?

This actor uses pay per event pricing:

  • Video: charged once per video row delivered (status: "success").
  • Channel: charged once per channel profile row.
  • Actor start: a tiny fixed fee per run.

Filtered videos and error rows are free. The exact prices are on the Pricing tab. Platform usage (compute and proxy) is included, so the price you see is the price you pay. Cap your spend with Max videos in total or the "Maximum cost per run" setting: the actor checks the remaining budget before each video and stops cleanly.

Tips to keep costs low:

  • Use publishedAfter with newest first channel lists: listing stops as soon as older videos appear.
  • Use onlyNewVideos for scheduled runs so you never pay twice for the same video.
  • Turn off includeChannelInfo when you already have the channel profiles.

Use with the API, integrations, LLMs and MCP

API

Run the actor and get the results in one request (replace YOUR_TOKEN):

curl -X POST "https://api.apify.com/v2/acts/zhtech~youtube-channel-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"urls": ["@3blue1brown"], "maxVideosPerSource": 10}'

Python:

from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("zhtech/youtube-channel-scraper").call(run_input={
"searchQueries": ["budget travel japan"],
"searchUploadDate": "month",
"searchSort": "views",
"maxVideosPerSource": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
if item["type"] == "video" and item["status"] == "success":
print(item["viewCount"], item["likeCount"], item["title"])

JavaScript:

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('zhtech/youtube-channel-scraper').call({
urls: ['@veritasium'],
channelSort: 'popular',
maxVideosPerSource: 25,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((i) => i.type === 'video').map((i) => i.title));

Integrations

Connect the actor to Make, Zapier, n8n, Google Sheets, Slack, Airtable, webhooks and more from the Integrations tab. A typical flow: schedule a daily run on your competitors' channels with onlyNewVideos, then append new videos to a Google Sheet and post a summary to Slack.

Using it with LLMs and AI agents (MCP)

The actor works as a tool for AI agents through the Apify MCP server (mcp.apify.com). Add zhtech/youtube-channel-scraper as a tool in Claude, Cursor, VS Code or any other MCP client, then ask things like "Which of @mkbhd's videos from this year got the most likes per view?" or "Find 20 cooking channels from the UK with over 100K subscribers". Set includeDescription: false when you only need stats, to keep the context small.

FAQ

Can I scrape every video of a channel? Yes. Set Max videos per channel, playlist or search to 0. Choose videos, Shorts and past live streams with Channel content.

Are the publish dates exact? Yes. publishedAt is the exact publish timestamp with time zone from YouTube's video metadata, and date filters use it, so there are no "2 weeks ago" approximations.

Are subscriber counts exact? YouTube only shows rounded subscriber counts (for example 8.76M) to everyone, so that is what subscriberCount contains. Total channel views and video views are exact.

Why is a like count missing? Creators can hide likes. In that case likeCount is null.

How many results can a search return? YouTube stops a search after roughly 500 to 600 results. Use several related queries or the upload date filter to go further.

Does it work for Shorts? Yes: Shorts links, a channel's Shorts tab, and Shorts search results. Rows have isShort: true and a /shorts/ URL.

Can I get video transcripts or comments too? Use the companion actors from ZH Tech: YouTube Transcript Scraper and YouTube Comments Scraper. They accept the same channel, playlist and search inputs.

Can I get channel email addresses? No. YouTube hides business emails behind a captcha and login. The actor returns the public links from the channel's About section instead.

Is it legal to scrape YouTube? The actor only collects publicly available data and never logs in. Make sure your use respects YouTube's terms and privacy laws such as GDPR. If you are unsure, consult a lawyer.

Limitations

  • Subscriber counts and large comment counts are rounded by YouTube (for example 8.76M, 9.5K).
  • Date, title and view filters apply to channels, playlists and searches. Videos you list explicitly are always returned.
  • YouTube may ignore some search filter combinations; the actor sends the same filter parameters as the YouTube search page.
  • YouTube search can no longer be sorted by upload date or rating (YouTube removed both in 2025). For the newest videos on a topic use searchUploadDate or publishedAfter.
  • Private and removed videos return a free error row. Age restricted and members only videos return the metadata YouTube shows without login, flagged with isAgeRestricted or isMembersOnly.
  • View, like and comment counts are a snapshot at the time of the run.

Support

Found a problem or need a feature? Open an issue on the Issues tab with the run ID and the input you used.