Call it
curl https://api.peume.com/v1/call/xiaohongshu-note-comments-by-note-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"noteId": "your noteId",
"sort": "latest"
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-note-comments-by-note-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"noteId": "your noteId",
"sort": "latest"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xiaohongshu-note-comments-by-note-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"noteId": "your noteId",
"sort": "latest"
}
},
)
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-note-comments-by-note-id.
Parameters
noteIdRequiredstringA Xiaohongshu note ID or an explore URL containing /explore/.
lastCursorstringPagination cursor from the previous page (use the cursor value returned by the last response).
sortstringSort strategy for the result set. Available Values: - `normal`: Normal - `latest`: Latest - `like_count`: Like Count One of: normal, latest, like_count.
normal · latest · like_count
Example: latest
Other ways to do it
Same job, other sources, cheapest first.
