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, optional

    Caption 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, required

    The unique identifier for a YouTube video.

  • languageCodestring, optional

    Caption language code, such as en, zh-Hans, or a.en. Leave it empty to retrieve available caption tracks.

Call it

Router call with a router API key
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>"
    }
  }'