PeumeAPI

Social media data · YouTube

YouTube video stream formats by video id or URL

Youtube: get video streams v2 (web_v2)

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

Call it

curl https://api.peume.com/v1/call/youtube-video-stream-formats-by-video-id-or-url-2 \
  -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"
  }
}'

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-stream-formats-by-video-id-or-url-2.

Parameters

video_idstring

Video ID

Example: dQw4w9WgXcQ

video_urlstring

Ignored if video_id is provided)

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

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.