Social Media · YouTube Scraper
YouTube Video Transcript Scraper API
Pull the full timestamped transcript of any YouTube video, every caption line with its start and end time, in any language. No headless browsers, no captchas, proxies included.
// YouTube · Video Transcript
curl -H "X-API-Key: hpx_your_key_here" \
"https://hproxy.com/api/v1/scrape/youtube/transcript?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ"
// → { "data": { … }, "records": 1, "costUsd": … }
From Request to Clean JSON
You write one line. We do everything between the request and the data.
You send
One API call
GET the YouTube endpoint with your key. That's all your code does.
We handle
Proxies · captchas · parsing
Residential exit, anti-bot walls, JS rendering and extraction, all server-side, on us.
You get
Clean JSON
A structured object every time. No HTML, no scraping code, no maintenance.
The YouTube Video Transcript endpoint is one API call: send a URL with your HProxy key and get back a clean, structured JSON object. Pull the full timestamped transcript of any YouTube video, every caption line with its start and end time, in any language. HProxy runs the proxies, sessions, anti-bot handling and parsing server-side, so there is no headless browser to babysit and no parser to keep fixing when YouTube changes its markup. You only ever touch the JSON.
What the YouTube Video Transcript API returns
segments[]
Each transcript line with its start/end timestamp and text.
language
The detected or declared transcript language.
duration
Total media length the transcript spans.
source
Whether the transcript is creator-provided or machine-generated.
Example response
{
"language": "en",
"duration": 47.2,
"source": "creator",
"segments": [
{ "start": 0.0, "end": 2.4, "text": "Here's the part nobody tells you about..." },
{ "start": 2.4, "end": 5.8, "text": "and that completely changed the result." }
]
}Trimmed for brevity. Every call returns the full object with all fields listed here.
The YouTube video transcript endpoint
Full YouTube reference →/api/v1/scrape/youtube/transcriptParameters
urlurlrequiredTarget URL (profile, post or video).
languagestringoptionalTwo-letter language code, e.g. en.
cache_max_agestringoptionalAccept a cached result up to this old (1d, 3d, 7d, 14d or 30d) and pay nothing for it. Omit for a live scrape. Allowed values: `1d`, `3d`, `7d`, `14d`, `30d`.
Example request
curl "https://hproxy.com/api/v1/scrape/youtube/transcript?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ" \
-H "X-API-Key: hpx_your_key_here"POST with a JSON body works too. Failed calls, timeouts and rate-limited calls are never billed.
Scraping YouTube video transcript in three steps
Create a free account
Sign up and top up any amount. The balance pays for every HProxy product and never expires.
Grab your API key
One key from the dashboard authenticates every scraper, YouTube video transcript included.
Call the endpoint
Send the target to the YouTube Video Transcript endpoint and read the JSON. That is the whole integration.
No captchas, ever
Anti-bot walls, JS rendering and rate limits are handled server-side. You call an API, that is the whole job.
Residential-backed
Every request exits through HProxy's own residential network, so it looks like a real user on a real device.
Pay per call
No subscription, no seat licenses. Calls are billed from your balance and the balance never expires.
Fresh on every call
Responses are scraped live at request time, no stale cache dressed up as data.
Failures are free
Automatic retries first; if an extraction still fails, the call is not charged.
Scales with you
From one call to millions: same endpoint, same price curve, volume discounts as you grow.
What people build with it
Turn YouTube video into searchable, indexable text for content and SEO.
Summarise or translate long YouTube videos at scale.
Build a spoken-content dataset for training or analysis.
YouTube Video Transcript pricing
$30.00
per 1,000 calls · 3.0¢ each
Pay per call, no subscription
Failed extractions are not charged
Proxies included in the price
This endpoint is priced above YouTube's $3.00/1k entry rate