PeumeAPI

Social media data · YouTube

YouTube video transcript by URL — captions, subtitles

Retrieves the captions, subtitles, or transcript of a YouTube video or short.

$0.0028 per callUsually answers in a few seconds

Call it

curl https://api.peume.com/v1/call/youtube-video-transcript-by-url-captions-subtitles \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "url": "https://www.youtube.com/watch?v=bjVIDXPP7Uk",
    "language": "en",
    "cache_max_age": "7d"
  }
}'

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-transcript-by-url-captions-subtitles.

Parameters

urlRequiredstring

YouTube video or short URL

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

languagestring

2 letter language code, ie 'en', 'es', 'fr' etc. If the transcript is not available in the language you specify, the transcript will be null.

Example: en

cache_max_agestring

If we have a response in the cache that is this many days old or newer, return the cached response (0 credits, with "cached": true and a "cached_at" timestamp). Otherwise, scrape a live result (1 credit). [See the Cac...

Example: 7d

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.