Call it
curl https://api.peume.com/v1/call/xiaohongshu-pgy-content-square-leaderboards \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"date_range": 7,
"biz_type": 1,
"page_num": 1,
"order_by": "",
"search_word": "",
"page_size": 34
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-pgy-content-square-leaderboards", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"date_range": 7,
"biz_type": 1,
"page_num": 1,
"order_by": "",
"search_word": "",
"page_size": 34
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xiaohongshu-pgy-content-square-leaderboards",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"date_range": 7,
"biz_type": 1,
"page_num": 1,
"order_by": "",
"search_word": "",
"page_size": 34
}
},
)
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: xiaohongshu-pgy-content-square-leaderboards.
Parameters
date_rangeinteger统计窗口:近 3/7/14/30 日/Date window in days
3 · 7 · 14 · 30
Example: 7
note_typestring内容类型 1=图文 2=视频/Content type
marketing_targetstring【仅榜 3】3=商品推广 8=直播推广/Board 3 only
biz_typeRequiredinteger榜单 1=小红书热门 2=产品种草 3=电商推广 4=蒲公英合作 5=客资收集 6=电商热门 7=种草直达 8=应用推广/Leaderboard
1 · 2 · 3 · 4 · 5 · 6 · 7 · 8
page_numinteger页码;每个榜固定只有 100 条/Page; each board has only 100 items
Example: 1
industrystring【榜 2/3/4/5/6/7/8】所属行业名,取值集因榜而异/Industry, values differ per board
author_typestring【仅榜 4】1=蒲公英博主 2=明星/Board 4 only
fansstring【仅榜 4】创作者粉丝量区间/Creator fans range, board 4 only
sub_biz_typestring【仅榜 8】1=应用下载 2=小程序推广 3=应用唤起(默认)/Board 8 only
content_typestring内容来源 1=博主合作 2=明星合作 3=员工 5=买手 6=专业号 11=主理人 -1=用户/Content source
pricestring【仅榜 4】创作者报价/Creator price, board 4 only
order_bystring排序字段,留空=用该榜默认排序/Sort field, empty=board default
Example:
themestring【榜 2/4/5/7/8】题材名/Theme
placementstring【榜 2/3/5/7/8】流量场域 1=发现 2=搜索 3=视频内流/Traffic placement
search_wordstring关键词,留空=看整榜;支持英文逗号分隔批量搜/Keyword, comma-separated for batch
Example:
categorystring【仅榜 1】类目,格式「一级#二级」,如 "内容类目#美妆"/Board 1 only
page_sizeinteger每页数量,1-34(网页固定 34)/Page size, 1-34
Example: 34
