Alfalfa

YouTube scraper and API: videos, transcripts and comments without an API key

The YouTube Data API is free, official and small: 10,000 units a day, a search costs 100 of them, transcripts are not offered at all. Everything on a public video page is visible without an account, and that is what a scraper reads. This page shows what you get per video, how transcripts and comments work, where the limits are, and what it costs.

Updated September 2026. Fields and limits measured on the live site.

Data API versus scraper

YouTube Data API v3Scraper
SetupGoogle Cloud project, API key, OAuth for some callsa keyword or a URL
Quota10,000 units a day; search = 100 units, video = 1, comment thread page = 1none, pay per row
Transcriptsnot available (captions download needs the owner's OAuth)yes, any public video with captions
Commentsyes, 100 per pageyes, top or newest
Likes, tags, categoryyesyes
Subscriber and comment countsyesyes, as YouTube shows them (rounded)
Channel record (country, joined date, links)partly (no links)yes
Best foran app that acts on behalf of users, small volumesresearch, monitoring, datasets, AI pipelines

The scraper

The YouTube Scraper on Apify takes search queries, channel URLs, playlist URLs or video URLs and returns one row per video. Transcripts and comments are options on the same run. A row carries:

Speed: about 100 videos with details in 10-60 seconds depending on the source; listing only, several hundred a minute.

Calling it from code

curl -X POST "https://api.apify.com/v2/acts/alfalfa~youtube-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{"searchQueries":["python tutorial"],"sortBy":"views","uploadDate":"month","maxVideos":50,"transcript":true}'

Longer jobs: start the run, poll it, read the dataset when it finishes. Schedules, webhooks and the n8n, Make and Zapier nodes work as for any Apify Actor; the API overview shows the pattern.

Things to know before you trust the numbers

Uses that pay for themselves

Questions people ask

Is this allowed?

The scraper reads public pages without logging in and stores nothing but the results in your dataset. Respect YouTube's terms and the uploader's copyright when you reuse content, and personal data laws for comment authors.

Why is it this cheap?

A video's details are a few kilobytes and the scraper runs in a few megabytes of memory, so platform costs per thousand videos are cents. Transcripts are bigger, hence their own small price.

Does it download videos?

No. Metadata, transcripts and comments only.

Open the YouTube Scraper Read: the API overview