Call it
curl https://api.peume.com/v1/call/read-live-account-or-post-insights-from-the-platform \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId"
}
}'const res = await fetch("https://api.peume.com/v1/call/read-live-account-or-post-insights-from-the-platform", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/read-live-account-or-post-insights-from-the-platform",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId"
}
},
)
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-live-account-or-post-insights-from-the-platform.
Parameters
accountIdRequiredstringOne account id.
metricsstringComma-separated metric names (up to 25). Defaults to the platform's default metrics. `GET /v1/metrics/catalog?entity=insights&platform=...` lists them.
platformPostIdstringOne post of the account, by its platform id: answers the post's live insights instead of the account's.
granularitystringDefaults to total; groupBy=hour answers per day.
total · day
groupBystringdemographic: audience segments (age, gender, country...). hour: Instagram followers online per day and hour, last 30 days. keyword: Google Business search keywords per month. query, page, country, device:, combined with commas (groupBy=query,country).
breakdownstringWith groupBy=demographic: comma-separated segments. Defaults to the platform's default segments.
timeframestringInstagram demographics only. Defaults to this_month.
this_week · this_month
cursorstringWith groupBy=keyword or a Search Console account: pagination.nextCursor of the previous page, sent with the same query.
limitintegerSearch Console accounts only: rows per page. Defaults to 1,000.
includestringWith platformPostId on YouTube: retentionCurve adds the audience retention curve.
fromDatestringFirst day, inclusive (YYYY-MM-DD, UTC). Defaults to 30 days before toDate. The window is at most 541 days.
toDatestringLast day, inclusive (YYYY-MM-DD, UTC). Defaults to today.
