Call it
curl https://api.peume.com/v1/call/douyin-media-download-links \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"urls": []
}
}'const res = await fetch("https://api.peume.com/v1/call/douyin-media-download-links", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"urls": []
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/douyin-media-download-links",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"urls": []
}
},
)
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: douyin-media-download-links.
Parameters
urlsRequiredarrayThe videos to get download links for, as an array of up to 20 entries; each entry can appear only once. Each entry is a numeric video ID or a `https://www.douyin.com/video/<video_id>` link; short links and share texts are not accepted. Rows carry `input`, the entry you passed.
freshbooleanFor `media_links`: `true` skips cached links and fetches them again; default `false`. The links are signed and expire, and `expires_at` shows when.
