Products/YouTube/Comments

YouTube Comments Scraper icon

YouTube Comments Scraper REST API and Apify actor

Every comment of a YouTube video, replies included.

Paste a video link, get each comment with its author, votes, reply count and creator heart. Up to 200 per API call, then a cursor for the next page.

1 USD per 1,000 comments. 5 USD free credits, no card. Credit packs.

GET /v1/youtube/comments
curl -G "https://api.vakitek.co.uk/v1/youtube/comments" \
  -H "X-API-Key: $VAKITEK_API_KEY" \
  --data-urlencode "video=dQw4w9WgXcQ" \
  --data-urlencode "max_comments=5"
data[0], one row per comment or reply200 OK
{
  "cid": "UgwPwTibxdgqCHZxktd4AaABAg",
  "comment": "My algebra teacher said that this was a link to the test answers",
  "author": "@bdr8823",
  "voteCount": 71000,
  "replyCount": 688,
  "type": "comment",
  "replyToCid": null,
  "hasCreatorHeart": true,
  "publishedTimeText": "7 years ago",
  "commentsCount": 2400000,
  ...
}
Real response, top comment on Rick Astley's Never Gonna Give You Up, 12 Nov 2026. Trimmed.

What you get

Comments and replies

type is comment or reply, and replyToCid links a reply to its parent. Turn on include_replies to get the threads.

Votes, hearts and pins

voteCount, replyCount, hasCreatorHeart, isPinned and authorIsChannelOwner on every row, plus the video's total commentsCount.

Top or newest first

Set sort to TOP or NEWEST. Up to 200 per API call, then meta.next_cursor. On Apify, up to 100,000 per video.

Clear failure rows

Comments turned off returns COMMENTS_DISABLED, a wrong id NOT_FOUND. Both are free.

Not included: exact comment dates (YouTube only shows 7 years ago), the video's own stats (use YouTube Scraper). Limits and error codes.

Pay per comment returned

1 USD/ 1,000 comments

Replies cost the same as top-level comments. Error rows are free. No minimum per run, no monthly plan.

500 comments from each of 10 videos5 USD
5,000 comments x 0.001 USD

One wallet for all 10 YouTube APIs. Credits never expire. Credit packs from 10 USD. Runs on Apify are billed by Apify.

Questions

How many comments can I get per video?

Up to 200 per API call: pass meta.next_cursor back to get the next page. On Apify, set maxComments up to 100,000 per video.

Can I only get comments after a date?

No. YouTube only gives relative dates such as 3 days ago. Sort by NEWEST and set a limit instead.

I use another comments scraper on Apify. What do I change?

Probably only the actor id: the output field names follow the most used YouTube comments scraper on the Apify Store.

Is it legal to scrape YouTube comments?

We read public YouTube 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 the comments of your first video.

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/comments

One video per call, up to 200 comments and replies. One row each.

videoWatch URL, youtu.be link, Shorts URL or idrequired
max_commentsComments and replies in this call1 to 200, default 100
sortTOP or NEWESTdefault TOP
include_repliesFetch each thread's repliesdefault false
cursormeta.next_cursor from the previous calloptional

Several videos per run, up to 100,000 comments per video and schedules are on the Apify actor (startUrls, maxComments, sortCommentsBy, includeReplies).

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

StatusBodyMeaningWhat to do
200{data, meta, billing}Done. Some rows may carry an error code (free).Retry only rows whose code says retry later.
401UNAUTHORIZEDMissing or wrong X-API-Key.Fix the key. Do not retry.
402INSUFFICIENT_CREDITSYour wallet is empty.Buy a pack, then retry.
422INVALID_INPUTA parameter is wrong, or more than 25 items in a batch.Fix the request. Do not retry.
429RATE_LIMITEDOver 120 requests per minute.Wait, then retry with backoff: 1 s, 2 s, 4 s.
502UPSTREAM_ERRORYouTube or our service failed for the whole call. Not billed.Retry once after a few seconds.
Row codeWhat happenedRetryYou pay
comment rowA comment or a reply came back. Replies cost the same.n/a1 USD / 1,000
NOT_FOUNDThe URL or id doesn't match a real videono retryfree
NO_RESULTSThe video has no commentsno retryfree
COMMENTS_DISABLEDThe creator turned comments off for this videono retryfree
INVALID_INPUTThe video input could not be readno retryfree
BLOCKEDYouTube refused us for now, even after trying every proxy tierretry laterfree
UPSTREAM_ERRORSomething went wrong on YouTube's side or oursretry laterfree
UPSTREAM_UNAVAILABLEOur API was unreachableretry laterfree
TIME_BUDGET_EXCEEDEDThe time budget ran out before this video finishedretry laterfree
Get a free API key Pricing