YouTube Scraper: Videos, Channels, Search, Comments (API) avatar

YouTube Scraper: Videos, Channels, Search, Comments (API)

Pricing

from $2.00 / 1,000 videos

Go to Apify Store
YouTube Scraper: Videos, Channels, Search, Comments (API)

YouTube Scraper: Videos, Channels, Search, Comments (API)

Clean YouTube video, channel, keyword search and comment data from the official YouTube Data API v3 using your own free key. No proxies, no blocks, your quota, our low per-result price.

Pricing

from $2.00 / 1,000 videos

Rating

0.0

(0)

Developer

Juan Francisco

Juan Francisco

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Features

Limited permissions

Share

YouTube Data API Scraper: videos, channels, search and comments

YouTube scraper built on the official YouTube Data API v3. Search videos by keyword, read whole channels, get video statistics and comments as clean JSON. You paste your own free Google API key, so there are no proxies, no blocks and no scraping fragility, and the API cost is yours (Google's free tier is 10,000 units per day). You only pay this Actor a low price per result.

Who is it for

  • Marketers and agencies tracking competitor channels and keyword niches.
  • Creators and analysts looking for outlier videos (views, likes, engagement rate).
  • Researchers and AI/RAG pipelines that need structured YouTube data.
  • Anyone who got blocked or overcharged by browser-based YouTube scrapers.

How it compares with the market leader

This Actorstreamers/youtube-scraper (18,254 users/month, 4.1 stars)
SourceOfficial YouTube Data API v3 with your keyHTML scraping through Apify proxies
Video price (per 1,000)$2.00$4.00 on the free plan (public Store listing, checked Nov 2026)
Comment price (per 1,000)$1.00$2.00 (separate comments Actor)
Search + channels + commentsOne ActorSplit across Actors
Engagement rate, Short flag, clean nullsYesVaries
Breaks when YouTube changes its pageNo, versioned APIPossible

Your own API usage is free up to Google's daily quota. Google's quota works in two buckets (official docs: quota cost and getting started):

  • Search bucket: each search.list call costs 1 unit and also counts against its own default limit of 100 calls per day ("own quota bucket"). One call returns up to 50 results, so one keyword with 50 results = 1 call.
  • General bucket: videos.list, channels.list, playlistItems.list and commentThreads.list cost 1 unit per call (50 videos per call for details and uploads, up to 100 comments per call); the default is 10,000 units per day.

Google states the default quota "is subject to change", and your project may have a different one (check Google Cloud Console). A channel with its latest 50 videos is about 3 calls. This Actor's counter follows this model; it has not yet been verified end to end against the real API with these figures (see the project verdict).

Input

FieldDescription
apiKeyYour YouTube Data API v3 key (secret field, never stored in files).
searchQueriesKeywords to search (needs key).
channelUrlsChannel URLs, @handles or UC... IDs (needs key). Returns channel stats and latest uploads.
videoUrlsVideo URLs or IDs (watch, youtu.be, shorts).
maxResultsPerQuery, maxVideosPerChannel, maxItemsLimits (and spending caps).
includeComments, maxCommentsPerVideo, commentsOrderOptional comments.
order, publishedAfter, publishedBefore, videoDuration, regionCode, relevanceLanguageSearch filters.
maxSearchCallsCap on search.list calls per run (default 100, Google's default daily limit for that bucket).
maxQuotaUnitsSafety cap on API units per run (default 3,000); every call counts 1 unit.

How to get a free API key (2 minutes)

  1. Open Google Cloud Console, create a project.
  2. Enable YouTube Data API v3.
  3. Create credentials, API key. Paste it in the apiKey field.

Basic mode without a key

If apiKey is empty, only videoUrls work, reading the public watch page of each video (title, views, likes, duration, channel, tags). Best effort and unreliable on the Apify cloud: YouTube often serves datacenter IPs a page without data, in which case the run stops after 3 failures and you are only charged for the videos actually returned. There are no comment counts. For reliable results use a key.

Example

Input:

{ "apiKey": "YOUR_KEY", "searchQueries": ["apify tutorial"], "maxResultsPerQuery": 5, "order": "viewCount" }

Output item (video):

{
"type": "video",
"videoId": "dQw4w9WgXcQ",
"url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
"channelId": "UCuAXFkgsw1L7xaCfnd5JJOw",
"channelTitle": "Rick Astley",
"publishedAt": "2009-10-25T06:57:33Z",
"durationSeconds": 213,
"duration": "3:33",
"isShort": false,
"viewCount": 1840194641,
"likeCount": 19515996,
"commentCount": 2400000,
"engagementRatePct": 1.2,
"tags": ["rick astley", "never gonna give you up"],
"searchQuery": "apify tutorial",
"source": "youtube-data-api-v3",
"checkedAt": "2026-11-23T15:33:33.829Z"
}

Channel items carry subscriberCount (null if the owner hides it), videoCount, viewCount, country, handle, createdAt. Comment items carry author, text, likeCount, replyCount, publishedAt.

Pricing

Pay per event. Per video: $0.002. Per channel: $0.002. Per comment: $0.001. Only valid results are charged; videos that are private or removed are skipped and free. You also keep control with maxItems and maxQuotaUnits.

Schedule and send to Google Sheets or a webhook

  1. Create a Task with your input and a Schedule (for example daily at 08:00).
  2. Add an integration: Google Sheets (append dataset items) or Webhook on "run succeeded".
  3. Use publishedAfter with yesterday's date to get only new videos.

FAQ

Why do I need my own key? So the API cost and quota are yours. By Google's default limits (subject to change) you get 100 search.list calls per day (each returns up to 50 results) plus 10,000 units per day for the other calls.

What if I run out of quota? The run stops with a clear message (in English and Spanish) saying whether the search bucket or the general units bucket ran out, and keeps everything already saved. The quota resets at midnight Pacific Time.

Can it get transcripts, or the full comment tree with replies? Not in this version (the official API does not provide transcripts for third-party videos). Top-level comments only.

Why is a field null? The API omits likes or comments when the owner hides them. We return null rather than 0.

Uses the official YouTube Data API v3 under Google's terms; you are responsible for complying with the YouTube API Services Terms of Service with your key. Basic mode reads public watch pages and may conflict with YouTube's terms: use it at your own risk and prefer the API. GDPR: comments contain author names and text posted publicly; process them only for a lawful purpose and delete on request.

En español

Actor de YouTube con la API oficial (YouTube Data API v3) y tu propia clave gratuita: búsqueda por palabras clave, canales con sus últimos vídeos, estadísticas de vídeos y comentarios opcionales, en JSON limpio. El coste de la API es tuyo (cuota gratuita por defecto: 10.000 unidades al día, más un cubo aparte de 100 llamadas de búsqueda al día; Google indica que puede cambiar); a nosotros solo nos pagas 2 $ por cada 1.000 vídeos, la mitad que el líder. Sin clave solo funciona el modo básico con URLs de vídeos.