Home / Actors / YouTube Data API Scraper

LiveVideo · Social media

YouTube Data API Scraper

YouTube videos, channels, keyword search and comments from the official API v3 with your own free key. Half the price of the market leader.

Try it on Apify ↗Download sample ↓How-to guidesRate it on Apify ↗

Search YouTube by keyword, read channels with their latest uploads, get video statistics and optional comments as clean JSON.

You bring your own YouTube Data API key (free quota 10,000 units/day), so there are no proxies or blocks and the API cost is yours.

What it is for

  • Track competitor channels and keyword niches.
  • Find outlier videos by views and engagement rate.
  • Feed dashboards, spreadsheets or AI pipelines with structured YouTube data.
  • Daily new-video alerts with a schedule and publishedAfter.

Input

The input is a small flat JSON. Only channels, or the first field, is required.

FieldTypeDescription
apiKeystringYour YouTube Data API v3 key (secret).
searchQueriesarrayKeywords to search.
channelUrlsarrayChannel URLs, @handles or IDs.
videoUrlsarrayVideo URLs or IDs.
includeCommentsbooleanAlso return top-level comments.
input.json
{
  "apiKey": "YOUR_KEY",
  "searchQueries": [
    "apify tutorial"
  ],
  "channelUrls": [
    "@RickAstleyYT"
  ]
}

Output

One dataset item per result. This is real output from a real run.

Real output
{
  "type": "video",
  "videoId": "dQw4w9WgXcQ",
  "title": "Rick Astley - Never Gonna Give You Up (Official Video) (4K Remaster)",
  "channelTitle": "Rick Astley",
  "publishedAt": "2009-10-25T06:57:33Z",
  "duration": "3:33",
  "viewCount": 1840194641,
  "likeCount": 19515996,
  "isShort": false,
  "source": "youtube-data-api-v3"
}

Pricing

$2.00 per 1,000

Pay per event: you are charged only for results returned. Filtered-out items and failed lookups are free. Apify also lets you set a maximum cost per run.

Pricing →

Need something custom? →

How to get YouTube data with your own API key →

Compare with other Actors on the Store →

Limits and good to know

  • You need your own YouTube Data API v3 key to search and read channels. Without a key only specific video URLs work, in a basic mode that is unreliable on the cloud.
  • The API quota is yours (free by default: 10,000 units per day, plus 100 search calls per day; Google may change these limits). If it runs out, the run stops with a clear message and keeps what was already saved.
  • Transcripts and the full tree of comment replies are not included: top-level comments only.
  • You are responsible for complying with the YouTube API Services Terms of Service with your key. Comments contain author names: handle them under GDPR.

Questions

Why do I need my own key?

So the Google API cost and quota are yours; the free tier is 10,000 units per day.

Does it work without a key?

Only a basic mode for specific video URLs, best effort and gray with YouTube's terms.

Rate it on Apify

Used it? A rating or review on Apify helps other people judge it, and tells us what to fix.

Rate it on Apify ↗