PeumeAPI

Ads

Get daily account metrics

Returns an ads account's spend, results and other metrics day by day, ready for a daily performance chart.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/get-daily-account-metrics \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId"
  }
}'

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-daily-account-metrics.

Parameters

accountIdRequiredstring

Account ID. Sibling-expanded to its linked posting↔ads pair. An id that does not exist or sits on a profile the API key cannot reach answers 404 (code: account_not_found).

adAccountIdstring

Optional platform-native ad account ID (e.g. Meta `act_…`, TikTok advertiser ID). Use when the connection wraps multiple platform ad accounts and the chart should show one only. Note: rows ingested before 2026-05-13 don't carry this column; the recurring 7-day re-sync repopulates them naturally.

fromDatestring

Inclusive start of metrics range (YYYY-MM-DD). Defaults to 90 days ago.

toDatestring

Inclusive end of metrics range (YYYY-MM-DD). Defaults to today. Max 730-day range.

platformstring

Restrict to one platform.

facebook · instagram · tiktok · linkedin · pinterest · google · twitter · openai · reddit · microsoft · amazon · snapchat

breakdownstring

Set to `adAccount` to keep one row per day and platform ad account, each carrying its `adAccountId`, instead of one row per day and currency. Two connections that reach the same ad account both return it: add their timelines per `adAccountId` to count it once.

adAccount

comparestring

Set to `previous` to also return `previousRows` for the period of the same length that ends the day before `fromDate`, with that period as `previousRange`. Needs a `fromDate` (sent or defaulted); `toDate` alone answers 400.

previous

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.