PeumeAPI

Social media data · YouTube

YouTube Format Stream URL

Get the playback URL of one format of a YouTube video.

$0.00083 per call

Call it

curl https://api.peume.com/v1/call/youtube-format-stream-url \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "itag": 10,
    "url": "your url"
  }
}'

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-format-stream-url.

Parameters

itagRequiredinteger

Which format: YouTube's format number, an integer from 1 to 9999, taken from the `itag` of `video_formats` or `media_links` (140 is m4a audio). A video without that format returns an empty result.

urlRequiredstring

A YouTube video link (watch?v=, youtu.be, shorts and live links work).

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.