Call it
curl https://api.peume.com/v1/call/get-pinterest-account-level-insights \
-H "Authorization: Bearer $PEUME_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"accountId": "your accountId",
"metricType": "total_value"
}
}'const res = await fetch("https://api.peume.com/v1/call/get-pinterest-account-level-insights", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.PEUME_API_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"input": {
"accountId": "your accountId",
"metricType": "total_value"
}
}),
});
const { output, cost_usd } = await res.json();import os, requests
res = requests.post(
"https://api.peume.com/v1/call/get-pinterest-account-level-insights",
headers={"Authorization": f"Bearer {os.environ['PEUME_API_KEY']}"},
json={
"input": {
"accountId": "your accountId",
"metricType": "total_value"
}
},
)
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-pinterest-account-level-insights.
Parameters
accountIdRequiredstringThe SocialAccount ID for the Pinterest account.
metricsstringComma-separated list. Defaults to "impressions,engagements,follower_count". Live from Pinterest, one value per day: - impressions - engagements - saves - pin_clicks - outbound_clicks From daily snapshots: - follower_count (follower count per day; total is the latest) - followers_gained (sum of positive daily follower deltas) - followers_lost (sum of absolute negative daily deltas)
fromDatestringStart date (YYYY-MM-DD). Defaults to 30 days ago. At most 89 days before today.
toDatestringEnd date (YYYY-MM-DD). Defaults to today.
sincestringAlias of fromDate, kept for existing callers
untilstringAlias of toDate, kept for existing callers
metricTypestring"total_value" returns one total per metric. "time_series" also returns the daily values.
time_series · total_value
Example: total_value
