Call it
curl https://api.peume.com/v1/call/xiaohongshu-pugongying-creator-notes-by-creator-id-2 \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"userId": "your userId",
"advertiseSwitch": "ALL",
"orderType": "LATEST",
"noteType": "ALL",
"isThirdPlatform": "NO",
"pageNumber": 1
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-pugongying-creator-notes-by-creator-id-2", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"userId": "your userId",
"advertiseSwitch": "ALL",
"orderType": "LATEST",
"noteType": "ALL",
"isThirdPlatform": "NO",
"pageNumber": 1
}
}),
});
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-2",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"userId": "your userId",
"advertiseSwitch": "ALL",
"orderType": "LATEST",
"noteType": "ALL",
"isThirdPlatform": "NO",
"pageNumber": 1
}
},
)
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-2.
Parameters
userIdRequiredstringKOL's user ID.
advertiseSwitchstringAdvertisement filter. Available Values: - `ALL`: All notes - `ORGANIC_ONLY`: Organic notes only One of: ALL, ORGANIC_ONLY.
ALL · ORGANIC_ONLY
Example: ALL
orderTypestringSorting order. Available Values: - `LATEST`: Latest - `MOST_READ`: Most read - `MOST_INTERACT`: Most interactions One of: LATEST, MOST_READ, MOST_INTERACT.
LATEST · MOST_READ · MOST_INTERACT
Example: LATEST
noteTypestringType of note. Available Values: - `ALL`: All types - `COOPERATION`: Cooperation notes - `PHOTO_TEXT`: Photo and Text - `VIDEO`: Video only One of: ALL, COOPERATION, PHOTO_TEXT, VIDEO.
ALL · COOPERATION · PHOTO_TEXT · VIDEO
Example: ALL
isThirdPlatformstringWhether from third-party platform. Available Values: - `NO`: No - `YES`: Yes One of: NO, YES.
NO · YES
Example: NO
pageNumberintegerPage number.
Example: 1
Other ways to do it
Same job, other sources, cheapest first.
