Call it
curl https://api.peume.com/v1/call/get-follower-stats \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"granularity": "daily"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-follower-stats", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"granularity": "daily"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-follower-stats",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"granularity": "daily"
}
},
)
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: get-follower-stats.
Parameters
accountIdsstringComma-separated list of up to 25 account IDs. Optional: without it, the response pages through all your accounts.
fromDatestringStart date in YYYY-MM-DD format (defaults to one year before toDate). An earlier date is moved to one year before toDate.
toDatestringEnd date in YYYY-MM-DD format (defaults to today)
granularitystringData aggregation level
daily · weekly · monthly
Example: daily
limitintegerAccounts per page, ordered by account id; the response carries `pagination.nextCursor`. Without limit or cursor, a request without accountIds still gets a first page of 25.
cursorstringOpaque cursor from a previous response's `pagination.nextCursor`; returns the next page of `limit` accounts (25 when limit is omitted). A cursor we cannot parse returns 400.
