Call it
curl https://api.peume.com/v1/call/xiaohongshu-note-details-by-note-id-and-xsec-token \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"note_id": "6a2f423d000000001003cb36",
"xsec_token": "ABtexB6bX5HgLD42SFrK1scGUmSO8YV5_isaLrDy9sLxQ="
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-note-details-by-note-id-and-xsec-token", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"note_id": "6a2f423d000000001003cb36",
"xsec_token": "ABtexB6bX5HgLD42SFrK1scGUmSO8YV5_isaLrDy9sLxQ="
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xiaohongshu-note-details-by-note-id-and-xsec-token",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"note_id": "6a2f423d000000001003cb36",
"xsec_token": "ABtexB6bX5HgLD42SFrK1scGUmSO8YV5_isaLrDy9sLxQ="
}
},
)
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-details-by-note-id-and-xsec-token.
Parameters
note_idRequiredstringNote ID
Example: 6a2f423d000000001003cb36
xsec_tokenRequiredstringSecurity token, can be obtained from the sharing link of Xiaohongshu
Example: ABtexB6bX5HgLD42SFrK1scGUmSO8YV5_isaLrDy9sLxQ=
Other ways to do it
Same job, other sources, cheapest first.
Xiaohongshu image note details by note id or linkXiaohongshu: get image note detail (app_v2)Xiaohongshu video note details by note id or linkXiaohongshu: get video note detail (app_v2)Xiaohongshu note details by note id or URLA single Xiaohongshu (RedNote) note by note id or explore URLXiaohongshu video note details by note idRetrieves Xiaohongshu (RedNote) video-note details by note ID.
