PeumeAPI

Social publishing & inbox · YouTube

Get a YouTube video transcript

Returns the caption track YouTube already holds for one of the connected channel's own videos, as plain text plus timed cues. Use it instead of downloading and transcribing the video yourself.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/get-a-youtube-video-transcript \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "videoId": "your videoId",
    "format": "json",
    "refresh": false,
    "accountId": "your accountId"
  }
}'

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: get-a-youtube-video-transcript.

Parameters

videoIdRequiredstring

The YouTube video id (the `platformPostId` on a synced external post).

languagestring

BCP-47 language tag as YouTube labels the track. `en` also matches an `en-GB` track. Omit to take the best available track.

formatstring

`json` returns timed `cues`; `srt` returns the raw SubRip body instead. `text` is present either way.

json · srt

Example: json

refreshboolean

Re-download from YouTube instead of serving the stored copy. Spends 200 quota units.

Example: false

accountIdRequiredstring

The connected YouTube account.

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.