Call it
curl https://api.peume.com/v1/call/douyin-fetch-video-search-v4 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"cursor": 0,
"keyword": "猫咪"
}
}'const res = await fetch("https://api.peume.com/v1/call/douyin-fetch-video-search-v4", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"cursor": 0,
"keyword": "猫咪"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/douyin-fetch-video-search-v4",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"cursor": 0,
"keyword": "猫咪"
}
},
)
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-fetch-video-search-v4.
Parameters
cursorinteger翻页游标,首次请求传 0,之后传上一页响应里的 cursor / Pagination cursor, 0 for the first request, then the cursor from the last response
Example: 0
keywordstring视频标题/关键词 / Video title or keyword
Example: 猫咪
