PeumeAPI

Social media data · YouTube

YouTube video captions by video id or URL

Youtube: get video captions (web_v2)

$0.012 per callBackup source if the first one failsUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/youtube-video-captions-by-video-id-or-url \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "video_id": "dQw4w9WgXcQ",
    "video_url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
    "language_code": "en",
    "format": "srt"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: youtube-video-captions-by-video-id-or-url.

Parameters

video_idstring

Video ID

Example: dQw4w9WgXcQ

video_urlstring

Video URL

Example: https://www.youtube.com/watch?v=dQw4w9WgXcQ

language_codestring

Language code, returns available caption list if empty

Example: en

formatstring

Caption format

srt · xml · json3 · txt

Example: srt

Other ways to do it

Same job, other sources, cheapest first.

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.