justoneapi_x_youtube-get-video-captions-v1 $0.01845 per call

YouTube video captions by video id — SRT, XML, JSON3, text. Retrieve available caption tracks for a YouTube video or request captions in SRT, XML, JSON3, or plain-text format. (Just One API · YouTube)

For AI agents: call justoneapi_x_youtube-get-video-captions-v1
POST https://toll402.dev/v1/p/justoneapi.x.youtube-get-video-captions-v1
{
 "languageCode": "",
 "format": "srt"
}
Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server: npx -y toll402-mcp · remote https://toll402.dev/mcp.

Input schema

{
 "type": "object",
 "properties": {
  "videoId": {
   "type": "string",
   "description": "The unique identifier for a YouTube video."
  },
  "languageCode": {
   "type": "string",
   "description": "Caption language code, such as en, zh-Hans, or a.en. Leave it empty to retrieve available caption tracks.",
   "examples": [
    ""
   ]
  },
  "format": {
   "type": "string",
   "description": "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, j",
   "enum": [
    "srt",
    "xml",
    "json3",
    "txt"
   ],
   "examples": [
    "srt"
   ]
  }
 },
 "additionalProperties": true,
 "required": [
  "videoId"
 ]
}

MCP

{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}

All tools · OpenAPI