Call it
curl https://api.peume.com/v1/call/douyin-trending-videos-chart \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"time_window": "1d",
"page_token": "your page token"
}
}'const res = await fetch("https://api.peume.com/v1/call/douyin-trending-videos-chart", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"time_window": "1d",
"page_token": "your page token"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/douyin-trending-videos-chart",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"time_window": "1d",
"page_token": "your page token"
}
},
)
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-trending-videos-chart.
Parameters
time_windowstringTime window: `1h` (last hour), `1d` (last 24 hours, default), `3d` or `7d`. One of: 1d, 1h, 3d, 7d.
1d · 1h · 3d · 7d
page_tokenstringPage token. Leave it out for the first page, then pass back the previous response's `next_page_token` exactly as received, with the other parameters unchanged. Each page holds up to 50 works and is one call; Douyin filters some works out, so a page often holds fewer than 50 and a short page is not the end. Tokens last 24 hours; the last page has no `next_page_token` (about 1,000 works per board at most).
keywordstringOptional: keep only works related to this word, such as `food`; leave it out for the whole board.
boardstringBoard for `billboard_video_hot`: `all` (default) is the overall board, `follower_growth` the board for works that gained the most followers relative to plays, and `like_rate` the board for the highest like rate. One of: all, follower_growth, like_rate.
all · follower_growth · like_rate
