Call it
curl https://api.peume.com/v1/call/read-post-metrics-by-id-day-by-day-as \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"granularity": "total",
"limit": 50
}
}'const res = await fetch("https://api.peume.com/v1/call/read-post-metrics-by-id-day-by-day-as", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"granularity": "total",
"limit": 50
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-post-metrics-by-id-day-by-day-as",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"granularity": "total",
"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-post-metrics-by-id-day-by-day-as.
Parameters
postIdstringComma-separated post ids ( or external), up to 100.
platformPostIdstringComma-separated ids the platform gave the posts (a TikTok video id, a tweet id), up to 100.
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 …
granularitystringday reads one post.
total · day
Example: total
originstringLists only. Defaults to all.
all · peume · external
sortstringA sort from the catalog, such as published-desc or likes-desc.
includestringComma-separated includes from the catalog.
changedSincestringnow (no rows, the starting cursor) or the previous pagination.nextCursor: one row per post whose metrics changed since, oldest first, across every account the key reads. Narrow with profileId and platform. Changes are kept 7 days; cursors older than 6 days are refused.
limitintegerRows per page, 50 by default, 100 at most.
Example: 50
cursorstringpagination.nextCursor of the previous page, sent with the same query.
