Skip to main content
Scrape a YouTube video's comments

Authorizations

x-scrapeunblocker-key
string
header
required

Your ScrapeUnblocker API key. Apply on every request.

Query Parameters

video
string
required

Video id (dQw4w9WgXcQ) or any YouTube video URL.

sort
string
default:top

Comment order: top, newest.

max_results
integer
default:20

How many comments to collect across pages (~20 per page).

Required range: 1 <= x <= 2000
proxy_country
string | null

Exit-IP country (ISO-2) for the watch page. Default US.

Response

JSON with a comments array plus counts.