Call it
curl https://api.peume.com/v1/call/weibo-trending-searches-by-category \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"category": "realtimehot",
"page": 1,
"count": 20,
"region_name": "北京"
}
}'const res = await fetch("https://api.peume.com/v1/call/weibo-trending-searches-by-category", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"category": "realtimehot",
"page": 1,
"count": 20,
"region_name": "北京"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/weibo-trending-searches-by-category",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"category": "realtimehot",
"page": 1,
"count": 20,
"region_name": "北京"
}
},
)
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: weibo-trending-searches-by-category.
Parameters
categorystring热搜分类: mineband=我的, realtimehot=热搜, social=社会, fun=文娱, technologynav=科技, lifenav=生活, region=同城, sportnav=体育, gamenav=ACG
Example: realtimehot
pageinteger页码
Example: 1
countinteger每页数量
Example: 20
region_namestring同城热搜城市名称,仅 category=region 时有效,支持: 北京/上海/广州/深圳/杭州/成都/重庆/武汉/南京/天津/西安/长沙/郑州/苏州/东莞/青岛/沈阳/合肥等,默认北京
Example: 北京
Other ways to do it
Same job, other sources, cheapest first.
Weibo trending search indexWeibo: fetch hot search index (web_v2)Weibo trending searches rankingWeibo: fetch hot search (web_v2)Weibo trending search summaryWeibo: fetch hot search summary (web_v2)Weibo current hot search rankingRetrieves the current Weibo hot-search ranking.Weibo realtime hot-search boardWeibo's realtime hot-search board (热搜榜, about 50 entries) with no login — word, rank, heat, label, pinned flag and the search URL per entry
