PeumeAPI

Search & SEO · YouTube

YouTube Subtitles

Fetch the subtitle track of a YouTube video with timestamps.

$0.009 per call

Call it

curl https://api.peume.com/v1/call/youtube-subtitles \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "video_id": "your video id"
  }
}'

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-subtitles.

Parameters

location_namestring

Full location name exactly as listed in the locations dictionary, e.g. 'London,England,United Kingdom' or 'United States'.

location_codeinteger

Numeric location code from the locations dictionary, e.g. 2840 (United States).

language_namestring

Full language name, e.g. 'English'.

language_codestring

Language code, e.g. 'en'.

video_idRequiredstring

YouTube video id, e.g. 'Y8Wu4rSNJms'.

subtitles_languagestring

Subtitle language code, e.g. 'en'; default is the video language.

subtitles_translate_languagestring

Translate the subtitles into this language code.

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.