Call it
curl https://api.peume.com/v1/call/xiaohongshu-topic-notes-by-topic-page-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"page_id": "5c1cc866febed9000184b7c1",
"sort": "trend",
"source": "normal"
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-topic-notes-by-topic-page-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"page_id": "5c1cc866febed9000184b7c1",
"sort": "trend",
"source": "normal"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xiaohongshu-topic-notes-by-topic-page-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"page_id": "5c1cc866febed9000184b7c1",
"sort": "trend",
"source": "normal"
}
},
)
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-topic-notes-by-topic-page-id.
Parameters
page_idRequiredstringTopic page ID
Example: 5c1cc866febed9000184b7c1
sortstring排序方式/Sort: trend(最热), time(最新)
Example: trend
cursor_scorestringPagination cursor score for next page
last_note_idstringLast note ID from previous page
last_note_ctstringLast note create time from previous page
session_idstringSession ID, keep consistent for pagination
first_load_timestringFirst load timestamp, keep consistent for pagination
sourcestringSource
Example: normal
Other ways to do it
Same job, other sources, cheapest first.
