Call it
curl https://api.peume.com/v1/call/tiktok-douyin-trending-topics-by-city \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"page": 1,
"page_size": 10,
"order": "your order"
}
}'const res = await fetch("https://api.peume.com/v1/call/tiktok-douyin-trending-topics-by-city", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"page": 1,
"page_size": 10,
"order": "your order"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/tiktok-douyin-trending-topics-by-city",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"page": 1,
"page_size": 10,
"order": "your order"
}
},
)
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: tiktok-douyin-trending-topics-by-city.
Parameters
pageRequiredinteger页码
Example: 1
page_sizeRequiredinteger每页数量
Example: 10
orderRequiredstring排序方式
city_codestring城市编码,从城市列表获取,空为全部
sentence_tagstring热点分类标签,从热点榜分类获取,多个分类用逗号分隔,空为全部
keywordstring热点搜索词
