Call it
curl https://api.peume.com/v1/call/bilibili-get-game-rankings \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"page_num": 1,
"ranking_type": 1,
"page_size": 20
}
}'const res = await fetch("https://api.peume.com/v1/call/bilibili-get-game-rankings", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"page_num": 1,
"ranking_type": 1,
"page_size": 20
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/bilibili-get-game-rankings",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"page_num": 1,
"ranking_type": 1,
"page_size": 20
}
},
)
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: bilibili-get-game-rankings.
Parameters
page_numintegerOne-based page number
Example: 1
ranking_typeinteger1 热度,2 口碑,5 预约,6 新游,7 B指,11 端游
1 · 2 · 5 · 6 · 7 · 11
Example: 1
page_sizeintegerItems per page
Example: 20
