YouTube Scraper — Video Metadata, Channel Stats & Search avatar

YouTube Scraper — Video Metadata, Channel Stats & Search

Pricing

from $2.40 / 1,000 video or channel records

Go to Apify Store
YouTube Scraper — Video Metadata, Channel Stats & Search

YouTube Scraper — Video Metadata, Channel Stats & Search

Scrape YouTube video metadata, channel stats and search results: views, likes, comments, tags, upload dates, subscribers and latest uploads from links, @handles or keywords. No transcripts. USD 2 per 1,000 records.

Pricing

from $2.40 / 1,000 video or channel records

Rating

0.0

(0)

Developer

Muhammad Afzal

Muhammad Afzal

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

15 days ago

Last modified

Features

Limited permissions

Share

YouTube Scraper returns YouTube video metadata (views, likes, comments, duration, upload date, tags, category, channel), channel stats (subscribers, total videos, total views, join date, country, latest uploads) and YouTube search results, from video links, channel @handles or search words. It costs USD 3.00 per 1,000 video or channel records plus a USD 0.005 start fee, and videos that are unavailable, channels that do not exist and searches without results are not charged.

It is built for marketers, researchers, data teams and AI agents who need YouTube video and channel data as clean JSON, CSV or Excel without a YouTube Data API key or quota.

What data does this YouTube scraper return?

Every record is one YouTube video (recordType: "video") or one channel (recordType: "channel"). Fields that a source does not provide are null, never guessed.

FieldWhat it isVideo linksSearch resultsChannel @handles
videoId, videoUrl, titleVideo ID, watch link and titleyesyes–
descriptionFull description (search: the snippet YouTube shows)fullsnippet–
viewCountExact view countyesyes–
likeCount, commentCountLikes and commentsyes––
durationSeconds, durationTextVideo lengthyesyes–
uploadDateUpload date (YYYY-MM-DD)yes––
publishedTimeTextAge as YouTube shows it ("4mo ago")–yes–
tags, categoriesUploader tags and YouTube categoryyes––
hasCaptions, captionLanguages, autoCaptionLanguagesWhich caption languages exist (not the captions)yes––
musicTracksSongs listed in the video's music sectionyes––
isLive, isShort, badges, ageLimitLive stream, Short, labels such as 4K or CC, age limitpartlyyes–
thumbnailUrlLargest thumbnailyesyes–
trainingPermissionAI-training permission (optional, see below)yesyes–
channelId, channelHandle, channelName, channelUrlThe channel, or the video's channelyesyesyes
subscriberCount, subscriberCountTextSubscribers (4.56M becomes 4560000)–channel searchyes
channelVideoCount, channelViewCountTotal videos and total views––yes
joinedDate, country, channelDescription, avatarUrl, linksChannel profile–partlyyes
latestVideosNewest uploads: title, link, views, age––yes
searchQuery, searchRankThe query and the result's position–yes–

The dataset has two views in Apify Console: Videos and Channels.

How do I scrape YouTube video metadata, channel stats or search results?

Fill in at least one of the three lists; you can mix them in one run. A run with none of them stops before any work.

  1. Video links (videoUrls): watch, youtu.be, Shorts, embed or live links, or bare 11-character IDs. Each link returns the full video metadata. Up to 500 per run.
  2. Channel @handles (channelHandles): @MrBeast or https://www.youtube.com/@MrBeast. Each handle returns one channel record with stats and up to 100 latest uploads (latestVideos, default 10). Up to 100 per run.
  3. Search words (searchQueries): each query returns up to 20 results, filtered like YouTube's own menu: sortBy (relevance, upload date, view count, rating), uploadDate (last hour to this year), duration (under 4, 4–20, over 20 minutes), searchType (videos, channels, movies and shows) and searchCountry (US, GB, DE, IN…). Turn on deepSearch and raise maxResultsPerQuery to get up to about 700 results per query. Up to 20 queries per run.

Example input:

{
"videoUrls": ["https://www.youtube.com/watch?v=jNQXAC9IVRw"],
"channelHandles": ["@RickAstleyYT"],
"latestVideos": 5,
"searchQueries": ["espresso machine review"],
"maxResultsPerQuery": 20,
"sortBy": "view_count",
"uploadDate": "this_year"
}

Records are written in input order: video links first, then channels, then searches. A video or channel that appears more than once (in two queries, or as a link and a search result) is delivered and charged once.

What does the output look like?

[
{
"recordType": "video",
"source": "videoUrl",
"input": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"videoId": "jNQXAC9IVRw",
"videoUrl": "https://www.youtube.com/watch?v=jNQXAC9IVRw",
"title": "Me at the zoo",
"durationSeconds": 19,
"viewCount": 448008364,
"likeCount": 20131150,
"commentCount": 10000000,
"uploadDate": "2005-04-24",
"tags": ["me at the zoo", "jawed karim", "first youtube video"],
"categories": ["Film & Animation"],
"hasCaptions": true,
"captionLanguages": ["en", "de"],
"channelId": "UC4QobU6STFB0P71PMvOGN5A",
"channelHandle": "@jawed",
"channelName": "jawed",
"trainingPermission": null
},
{
"recordType": "channel",
"source": "channelHandle",
"input": "@RickAstleyYT",
"channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
"channelHandle": "@RickAstleyYT",
"channelName": "Rick Astley",
"subscriberCount": 4560000,
"subscriberCountText": "4.56M",
"channelVideoCount": 441,
"channelViewCount": 2597818401,
"joinedDate": "2015-02-01",
"country": "United Kingdom",
"latestVideos": [
{ "position": 1, "videoId": "PXC_PYeB6F8", "title": "Rick Astley - Angels On My Side (Live at The O2, London, April 2026)", "viewCount": 118000, "publishedTimeText": "4mo ago" }
]
}
]

The run summary (OUTPUT in the key-value store) lists every input with its outcome — delivered, unavailable, not-found, empty, invalid-input, duplicate, failed or skipped — and the reason.

How much does it cost to scrape YouTube?

You pay per record delivered, plus a small start fee. Platform usage is included in the price.

EventFREEBRONZESILVERGOLD
Video or channel recordUSD 0.003USD 0.002925USD 0.00285USD 0.0024
AI-training permission check (only with includeTrainingPermission)USD 0.0025USD 0.002438USD 0.002375USD 0.002
Actor start (per started GB of memory; one at the default 256 MB)USD 0.005USD 0.005USD 0.005USD 0.005

Discounts are 0%, 2.5%, 5% and 20% by Apify plan tier. Worked totals on the FREE tier:

  • One video link: USD 0.005 + USD 0.003 = USD 0.008.
  • 10 searches × 20 results = 200 records: USD 0.005 + 200 × USD 0.003 = USD 0.605.
  • 100 video links with training permission: USD 0.005 + 100 × (USD 0.003 + USD 0.0025) = USD 0.555.

Not charged: unavailable, private, age-restricted or members-only videos, unknown @handles, searches with no results, duplicates and invalid entries. Set a maximum charge on the run and the Actor stops cleanly when it is reached.

What is the AI-training permission field?

Turn on includeTrainingPermission to add, for every video record, whether the rights holder allows third parties to train AI models on the video and which parties they named (trainingPermission.allowed, trainingPermission.permittedParties). It is the rights holder's own declaration on YouTube, not legal clearance or a license, so check the rights yourself before using any video for training. Each check is one extra lookup, charged as its own event, at most 500 per run.

When should I use this YouTube scraper, and when not?

Use it when you need:

  • view, like and comment counts, upload dates and tags for a list of videos;
  • subscriber counts, total views, join dates and recent uploads for a list of channels;
  • the videos or channels YouTube shows for keywords, sorted and filtered like YouTube's search menu, as seen from one country.

Do not use it for:

  • Transcripts, captions or subtitles: use YouTube Transcript Extractor. This Actor only reports which caption languages a video has.
  • Downloading video or audio files: not supported.
  • Comments text, playlists, or full channel archives beyond the 100 latest uploads: not supported.
  • Private, members-only or age-restricted videos: YouTube does not show them publicly; they are reported as unavailable and not charged.

Use it from an AI assistant

This Actor works from Claude, ChatGPT, Cursor or any MCP client through Apify's MCP server. Add it as a single tool with https://mcp.apify.com/?tools=muhammadafzal/youtube-video-channel-scraper and ask, for example: "Get the subscriber count, total views and five latest uploads of @MrBeast and @veritasium, and the 20 most viewed espresso machine reviews from this year."

You can also call it from code with the Apify API or client:

from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("muhammadafzal/youtube-video-channel-scraper").call(
run_input={"channelHandles": ["@veritasium"], "latestVideos": 5}
)
for item in client.dataset(run.default_dataset_id).iterate_items():
print(item["channelName"], item["subscriberCount"])

Limits and reliability

  • Up to 500 video links, 100 channels and 20 searches per run.
  • A regular search returns at most 20 results. Deep search returns a few hundred to about 700 per query (447 to 576 unique videos for "coffee" in our tests) and takes about 30 to 60 seconds per query; deep searches run one at a time.
  • Likes, comments, exact upload dates and tags come only from video links. Search results carry views, length and the relative age YouTube shows.
  • Subscriber counts are rounded the way YouTube shows them (4.56M).
  • Channels are read by @handle. Channel IDs (UC…) and old /c/ or /user/ links are refused before any work; open the channel page and copy its @handle.
  • Lists of video links above 30 are collected in batches, so large runs stay fast and cheap.
  • A search that comes back empty is checked once more before it is reported as having no results.

FAQ

Do I need a YouTube Data API key or quota? No. You only need an Apify account; there is no YouTube API key, quota or OAuth setup.

How much does it cost to get data for 1,000 YouTube videos? USD 3.00 for 1,000 video records on the FREE tier, plus the USD 0.005 start fee, and less on higher Apify plans (down to USD 2.40 on GOLD). Videos that return no data are not charged.

Why do search results have no likes or upload date? YouTube's search page shows views, length and a relative age ("4mo ago") but not likes, comments or the exact date. Put the video links in videoUrls to get the full metadata.

Can it scrape YouTube transcripts or captions? No. It lists which caption languages a video has. For the transcript text, use YouTube Transcript Extractor.

What happens with deleted, private or age-restricted videos? They are listed in the run summary with the reason (for example "age-restricted video") and are not charged.

Can I get all videos of a channel? Each channel record lists up to the 100 latest uploads. To get full metadata for those videos, run their links through videoUrls.

How many results can I get per YouTube search? Up to 20 per query by default; with deepSearch on, up to about 700 per query, and up to 20 queries per run.

Is scraping YouTube legal? This Actor reads only public pages that anyone can open without signing in. You are responsible for how you use the data, including privacy law, YouTube's terms and the rights holders' AI-training choices.

Last verified: 2026-11-09