Call it
curl https://api.peume.com/v1/call/douyin-fetch-video-search-v3 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"date_type": 0,
"query": "美食",
"duration_type": 0,
"label_type": 0
}
}'const res = await fetch("https://api.peume.com/v1/call/douyin-fetch-video-search-v3", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"date_type": 0,
"query": "美食",
"duration_type": 0,
"label_type": 0
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/douyin-fetch-video-search-v3",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"date_type": 0,
"query": "美食",
"duration_type": 0,
"label_type": 0
}
},
)
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-v3.
Parameters
date_typeinteger发布时间筛选:0=不限, 3=近3天, 7=近7天, 30=近一个月/Publish date filter: 0=any, 3=last 3 days, 7=last 7 days, 30=last 30 days
Example: 0
querystring搜索关键词/Search keyword
Example: 美食
duration_typeinteger时长筛选:0=不限, 1=0-15秒, 6=15-60秒, 7=60-120秒, 8=120-180秒, 9=大于180秒/Duration filter: 0=any, 1=0-15s, 6=15-60s, 7=60-120s, 8=120-180s, 9=over 180s
Example: 0
label_typeinteger视频类型筛选:0=不限, 1=低粉爆款, 2=高完播率, 3=高涨粉率, 4=高点赞率/Video type filter: 0=any, 1=low-follower hit, 2=high completion rate, 3=high follower growth, 4=high like rate
Example: 0
