Call it
curl https://api.peume.com/v1/call/xiaohongshu-pugongying-creator-notes-by-creator-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"kolId": "your kolId",
"page": 1,
"adSwitch": "_1",
"orderType": "_1",
"noteType": "_4"
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-pugongying-creator-notes-by-creator-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"kolId": "your kolId",
"page": 1,
"adSwitch": "_1",
"orderType": "_1",
"noteType": "_4"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xiaohongshu-pugongying-creator-notes-by-creator-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"kolId": "your kolId",
"page": 1,
"adSwitch": "_1",
"orderType": "_1",
"noteType": "_4"
}
},
)
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-pugongying-creator-notes-by-creator-id.
Parameters
kolIdRequiredstringKOL ID.
pageintegerPage number.
Example: 1
adSwitchRequiredstringAd filter. Available Values: - `_1`: Full traffic (All notes) - `_0`: Natural traffic (Organic notes) One of: _1, _0.
_1 · _0
orderTypeRequiredstringSorting order. Available Values: - `_1`: Latest - `_2`: Most read - `_3`: Most interactions One of: _1, _2, _3.
_1 · _2 · _3
noteTypestringNote type. Available Values: - `_1`: Photo and Text notes - `_2`: Video notes - `_3`: Cooperation notes - `_4`: All types One of: _1, _2, _3, _4.
_1 · _2 · _3 · _4
Example: _4
Other ways to do it
Same job, other sources, cheapest first.
