YouTube video captions by video id — SRT, XML, JSON3, text
From Just One API, through Joshu Data Bodega.
Part of YouTube video.
- Price
- $0.016 per call
No calls measured in the last 30 days.
Prices include the router's 10% markup and are paid from the usage wallet. Checked on November 11, 2026.
Inputs
formatstring: srt, xml, json3, txt, optionalCaption output format. Available Values: - `srt`: SubRip caption format with timeline cues - `xml`: Original XML caption format - `json3`: YouTube original JSON caption structure - `txt`: Plain text without timeline cues One of: srt, xml, json3, txt.
videoIdstring, requiredThe unique identifier for a YouTube video.
languageCodestring, optionalCaption language code, such as en, zh-Hans, or a.en. Leave it empty to retrieve available caption tracks.
Call it
curl https://hello.joshu.me/api/router/call \
-H "Authorization: Bearer $JOSHU_ROUTER_KEY" \
-H "Content-Type: application/json" \
-d '{
"endpoint": "justoneapi.x.youtube-get-video-captions-v1",
"params": {
"format": "srt",
"videoId": "<video ID>"
}
}'