Call it
curl https://api.peume.com/v1/call/youtube-recommended-download-urls-with-your-fixed-exit-proxy \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"verify_download": false,
"proxy_url": "your proxy url",
"video_id": "your video id"
}
}'const res = await fetch("https://api.peume.com/v1/call/youtube-recommended-download-urls-with-your-fixed-exit-proxy", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"verify_download": false,
"proxy_url": "your proxy url",
"video_id": "your video id"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/youtube-recommended-download-urls-with-your-fixed-exit-proxy",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"verify_download": False,
"proxy_url": "your proxy url",
"video_id": "your video id"
}
},
)
print(res.json()["output"])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-recommended-download-urls-with-your-fixed-exit-proxy.
Parameters
verify_downloadboolean是否尝试读取各流前 1 KiB;不代表完整下载验证 / Probe up to 1 KiB per stream, not the full file
Example: false
proxy_urlRequiredstring固定公网出口的 HTTP 代理,必须包含端口 / HTTP proxy with a fixed public exit and explicit port
video_idRequiredstring11 位 YouTube 视频 ID / 11-character YouTube video ID
itagsarray所需格式编号,1–4 个不重复的数字字符串 / 1–4 unique numeric format IDs
