YouTube Scraper REST API and Apify actor
YouTube search data without the Data API quota.
Search terms or video and playlist links in, one row per video out, likes and comments included.
2 USD per 1,000 videos. 5 USD free credits, no card. Credit packs.
curl -G "https://api.vakitek.co.uk/v1/youtube/search" \ -H "X-API-Key: $VAKITEK_API_KEY" \ --data-urlencode "query=espresso machine review" \ --data-urlencode "max_results=10"
import os, requests r = requests.get("https://api.vakitek.co.uk/v1/youtube/search", headers={"X-API-Key": os.environ["VAKITEK_API_KEY"]}, params={"query": "espresso machine review", "max_results": 10}, timeout=120) for row in r.json()["data"]: print(row["title"], row["viewCount"], row["likes"])
{
"title": "The Fellow ES1 Espresso Machine Review",
"channelName": "James Hoffmann",
"viewCount": 836278,
"likes": 13000,
"commentsCount": 1000,
"publishedAt": "2026-08-13T00:00:00.000Z",
"duration": "34:16",
"url": "https://www.youtube.com/watch?v=mAYbmcqPphc",
...
}
What you get
A full row per video
title, viewCount, likes, commentsCount, publishedAt, duration, hashtags, the channel and its subscribers.
Filters that work
date_filter, sort and content type on search terms. In our live tests, week returned only this week's videos.
No Google project
No Data API key, no daily quota units to ration. Public data only.
One bad link does not stop the run
Deleted videos and private playlists return a typed error row; the rest completes.
Not included: transcripts (use YouTube Transcript), downloads, a channel summary row. publishedAt is the day, not the time. Limits and error codes.
One price per video
Likes, comments, description and filters included. Empty searches and error rows are free.
One wallet for all 10 YouTube APIs. Credits never expire. Credit packs from 10 USD. Runs on Apify are billed by Apify.
Against streamers/youtube-scraper on Apify
| Criterion | Vakitek | streamers |
|---|---|---|
| Price per 1,000 videos | 2 USD on every plan | $4.00 free plan to $2.40 Business |
| Extra paid events | None | Date filter on channels, AI summary, transcription |
| Date filter | Works in our live tests | Two open issues say it is ignored |
| Success rate, last 30 days | 98.9% of 281 results | 99.1% of runs |
Source: its Apify Store page, its issues and the public Apify API, 23 Oct 2026. Our rate counts results, theirs counts runs.
Questions
Does it replace the YouTube Data API v3?
For public video, search and playlist data, yes. It does not do anything that needs a signed-in account: uploads, private videos, analytics.
Can I export search results to CSV or Excel?
Yes. Run the search on Apify and download CSV or Excel, or pull JSON from the API.
I use streamers/youtube-scraper. What breaks if I switch?
Little. Most field names are the same. Differences: date is relative text (use publishedAt), duration is "m:ss", no channel summary row.
Is scraping YouTube legal?
We read public pages only, with no login. YouTube's Terms of Service restrict automated access, so check your use against them and your local law.
Do I need Apify?
No. The REST API is separate: sign up with your email, copy your key, call it. Apify is the no-code option, billed by Apify on your Apify account at the same unit price plus its 0.00005 USD start event per run.
Pull your first search in a minute.
API reference: endpoints, limits and error codes
Base URL https://api.vakitek.co.uk. Send your key in the X-API-Key header. Every response is JSON with data (one row per item), meta (request id, count, latency, paging cursor) and billing (what was charged).
GET /v1/youtube/search
YouTube search results, one row per video.
query | Search terms | required |
max_results | Rows to return | 1 to 100, default 10 |
sort | relevance, rating, date, views | default relevance |
date_filter | hour, today, week, month, year | optional |
content_kind | video or short | default video |
GET /v1/youtube/video
One video by id or link.
video | Video id or link | required |
Also video_type (video, movie) and length_filter (under4, between420, plus20). Links lists (startUrls) and Shorts or streams per search term are on the Apify actor.
Limits
- Rate limit
- 120 requests per minute per API key (default). Over that you get 429. Need more? Write to support.
- Batch
- Transcript and Channel email take up to 25 videos or channels per
POST. More returns 422. - Page size
- Search up to 100 rows, Shorts and channel videos up to 200 rows per call, then follow
meta.next_cursor. - Concurrency
- No per-key cap. The service runs a limited number of scrapes at the same time and queues the rest, so very parallel clients wait longer. Start with 4 calls in flight.
- Latency
- 1 to 9 seconds per call in our checks on 23 Oct 2026 (one call per endpoint). Set your client timeout to 120 seconds.
- Wallet
- Checked before each call. When it is empty you get 402 and nothing runs. Runs on Apify are billed by Apify, not from this wallet.
- Data
- We keep request metadata (route, status, counts, timing) for billing and support. We do not keep a copy of the rows we return.
HTTP status codes
| Status | Body | Meaning | What to do |
|---|---|---|---|
| 200 | {data, meta, billing} | Done. Some rows may carry an error code (free). | Retry only rows whose code says retry later. |
| 401 | UNAUTHORIZED | Missing or wrong X-API-Key. | Fix the key. Do not retry. |
| 402 | INSUFFICIENT_CREDITS | Your wallet is empty. | Buy a pack, then retry. |
| 422 | INVALID_INPUT | A parameter is wrong, or more than 25 items in a batch. | Fix the request. Do not retry. |
| 429 | RATE_LIMITED | Over 120 requests per minute. | Wait, then retry with backoff: 1 s, 2 s, 4 s. |
| 502 | UPSTREAM_ERROR | YouTube or our service failed for the whole call. Not billed. | Retry once after a few seconds. |
| Row code | What happened | Retry | You pay |
|---|---|---|---|
video row | A video, Short or stream came back. The only billed row. | n/a | 2 USD / 1,000 |
| NOT_FOUND | The video, playlist or channel was deleted, is private or never existed | no retry | free |
| NO_RESULTS | Nothing matches your search and filters | no retry | free |
| INVALID_INPUT | An option value is invalid | no retry | free |
| PARSE_ERROR | YouTube changed its page and we could not read it. We get alerted and fix it | no retry | free |
| BLOCKED | YouTube refused us for now, usually age-restricted content, even after trying every proxy tier | retry later | free |
| UPSTREAM_ERROR | Something went wrong on YouTube's side or ours | retry later | free |
| UPSTREAM_UNAVAILABLE | Our API was unreachable | retry later | free |
| TIME_BUDGET_EXCEEDED | The time budget ran out before this search term or URL finished | retry later | free |
