Call it
curl https://api.peume.com/v1/call/read-follower-and-post-totals-per-account-platform-or \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"granularity": "total",
"attribution": "publish",
"limit": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/read-follower-and-post-totals-per-account-platform-or", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"granularity": "total",
"attribution": "publish",
"limit": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-follower-and-post-totals-per-account-platform-or",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"granularity": "total",
"attribution": "publish",
"limit": 50
}
},
)
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: read-follower-and-post-totals-per-account-platform-or.
Parameters
accountIdstringComma-separated account ids, up to 25.
metricsstringComma-separated metric names from the catalog. Defaults to every metric.
groupBystringComma-separated groupings from the catalog, at most 2.
fromDatestringFirst day, inclusive (YYYY-MM-DD, UTC).
toDatestringLast day, inclusive (YYYY-MM-DD, UTC).
platformstringOnly with profileId.
tiktok · instagram · facebook · youtube · linkedin · twitter · threads · pinterest · reddit · bluesky · googlebusiness · telegram …
granularitystringtotal · day · week · month
Example: total
attributionstringpublish · received
Example: publish
limitintegerRows per page, 50 by default, 100 at most.
Example: 50
cursorstringpagination.nextCursor of the previous page, sent with the same query.
