YouTube Video Subtitles API
Scrape YouTube Video Subtitles data with one API call. Returns the downloadable subtitle/caption track files for a YouTube video — each with a language code and name, format, and a direct download `url`. Includes both manual and auto-generated tracks across available subtitle formats (srt, vtt, ttml, …).
Last updated August 2026Maintained by the SocialCrawl team
Returns the caption track files for a video, each with a language code and name, file format, and a direct download URL, including auto-generated tracks.
Use it when you want subtitle files to download; video/transcript gives you the words themselves, already split into timed segments.
Searching 48 platforms in parallel
What can you do with the Video Subtitles API?
The Video Subtitles endpoint gives you structured YouTube data with computed fields in a single request. No scraping infrastructure to build or maintain.
Example Request
curl -H "x-api-key: YOUR_API_KEY" \
"https://www.socialcrawl.dev/v1/youtube/video/subtitles?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ"import requests
response = requests.get(
"https://www.socialcrawl.dev/v1/youtube/video/subtitles",
params={
'url': 'https://www.youtube.com/watch?v=dQw4w9WgXcQ',
},
headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()const response = await fetch(
"https://www.socialcrawl.dev/v1/youtube/video/subtitles?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DdQw4w9WgXcQ",
{
headers: { "x-api-key": "YOUR_API_KEY" },
},
);
const data = await response.json();Parameters
| Parameter | Required | Description |
|---|---|---|
| url | Yes | Full URL of the YouTube video. |
| format | No | Subtitle file format filter (e.g. srt, vtt, ttml, json3, srv1). |
What does the YouTube Video Subtitles API return?
Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.
Example response
{
"success": true,
"platform": "youtube",
"endpoint": "/v1/youtube/video/subtitles",
"data": {
"items": [
{
"languageName": "English",
"languageCode": "en",
"format": "srt",
"url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&ei=qW5naofXFNWy6dsPu8K4yAI&caps=asr&opi=112496729&xoaf=5&xowf=1&hl=en&ip=0.0.0.0&ipbits=0&expire=1785188633&sparams=ip%2Cipbits%2Cexpire%2Cv%2Cei%2Ccaps%2Copi%2Cxoaf&signature=7D4D1E780426AB07247B3B3BB4813E01EF131EDA.6024A12F4E420F6EF2930347B909C400EC83A89C&key=yt8&lang=en&fmt=srt&_ytc_=1&pot=&potc=1&c=ANDROID"
},
{
"languageName": "English",
"languageCode": "en",
"format": "vtt",
"url": "https://www.youtube.com/api/timedtext?v=dQw4w9WgXcQ&ei=qW5naofXFNWy6dsPu8K4yAI&caps=asr&opi=112496729&xoaf=5&xowf=1&hl=en&ip=0.0.0.0&ipbits=0&expire=1785188633&sparams=ip%2Cipbits%2Cexpire%2Cv%2Cei%2Ccaps%2Copi%2Cxoaf&signature=7D4D1E780426AB07247B3B3BB4813E01EF131EDA.6024A12F4E420F6EF2930347B909C400EC83A89C&key=yt8&lang=en&fmt=vtt&_ytc_=1&pot=&potc=1&c=ANDROID"
}
],
"dropped": 0
},
"credits_used": 1,
"credits_remaining": 9999,
"request_id": "req_example000000",
"cached": false,
"pagination": {
"next_cursor": null,
"has_more": false,
"page_size": 990
}
}Live sample illustrating the unified response shape. Field values reflect the record you query.
How does the YouTube Video Subtitles API work?
Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.
Method
GET
Response
JSON
How do you scrape social media data in seconds?
The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 48 platforms covering 10B+ monthly active users.
One schema, every platform
Query 48 platforms with identical response structures. Write your integration once.
Computed fields, not just scraped
When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language — ready to use.
See your data before you code
Visual Data Explorer — paste any URL, get rich result cards, sortable tables, CSV export.
import requests
response = requests.get(
'https://www.socialcrawl.dev/v1/tiktok/profile',
params={'handle': 'charlidamelio'},
headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json(){
"success": true,
"platform": "tiktok",
"data": {
"author": {
"username": "charlidamelio",
"followers": 152400000
},
"engagement": {
"likes": 12400000000,
"engagement_rate": 0.087
},
"metadata": {
"language": "en",
"content_category": "lifestyle"
}
}
}Have a question? We got answers
Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.
Contact usHow do I download a YouTube video's subtitles via API?
Does it include auto-generated captions?
Which subtitle formats can I get?
How is this different from the transcript endpoint?
How much does the subtitles endpoint cost?
Ask AI about SocialCrawl
Ready to scrape YouTube Video Subtitles data?
Get your API key and start pulling YouTube data in under 60 seconds.
