Call it
curl https://api.peume.com/v1/call/get-an-analytics-dashboard \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"platform": "all",
"fromDate": "2026-09-01",
"toDate": "2026-09-30",
"topPosts": 5,
"recentPosts": 10
}
}'const res = await fetch("https://api.peume.com/v1/call/get-an-analytics-dashboard", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"platform": "all",
"fromDate": "2026-09-01",
"toDate": "2026-09-30",
"topPosts": 5,
"recentPosts": 10
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-an-analytics-dashboard",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"platform": "all",
"fromDate": "2026-09-01",
"toDate": "2026-09-30",
"topPosts": 5,
"recentPosts": 10
}
},
)
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-an-analytics-dashboard.
Parameters
platformstringPlatform to cover (e.g. "instagram"), or "all".
Example: all
fromDateRequiredstringFirst day of the window (YYYY-MM-DD, inclusive).
Example: 2026-09-01
toDateRequiredstringLast day of the window (YYYY-MM-DD, inclusive). May equal fromDate. The window covers at most 366 days.
Example: 2026-09-30
comparestringSet to "previous_period" to also return previousTotals and previousFollowers for the window of the same length that ends the day before fromDate.
previous_period
topPostsintegerHow many top posts to return, ranked by engagement (likes, comments, shares and saves, the same sum as daily engagement).
Example: 5
recentPostsintegerHow many of the most recently published posts to return.
Example: 10
