Call it
curl https://api.peume.com/v1/call/xiaohongshu-pugongying-creator-follower-history-by-creator-id \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"userId": "your userId",
"dateType": "DAY_30",
"increaseType": "FANS_TOTAL"
}
}'const res = await fetch("https://api.peume.com/v1/call/xiaohongshu-pugongying-creator-follower-history-by-creator-id", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"userId": "your userId",
"dateType": "DAY_30",
"increaseType": "FANS_TOTAL"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/xiaohongshu-pugongying-creator-follower-history-by-creator-id",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"userId": "your userId",
"dateType": "DAY_30",
"increaseType": "FANS_TOTAL"
}
},
)
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-follower-history-by-creator-id.
Parameters
userIdRequiredstringKOL's user ID.
dateTypestringTime range for data. Available Values: - `DAY_30`: Last 30 days - `DAY_90`: Last 90 days One of: DAY_30, DAY_90.
DAY_30 · DAY_90
Example: DAY_30
increaseTypestringType of growth data. Available Values: - `FANS_TOTAL`: Total fans - `FANS_INCREASE`: New fans increase One of: FANS_TOTAL, FANS_INCREASE.
FANS_TOTAL · FANS_INCREASE
Example: FANS_TOTAL
Other ways to do it
Same job, other sources, cheapest first.
