PeumeAPI

Ads

Get aggregated event stats

Shows event counts or health for a tracking tag so you can confirm it is firing, where the platform reports them.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/get-aggregated-event-stats \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "aggregation": "event",
    "accountId": "your accountId",
    "tagId": "your tagId"
  }
}'

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-aggregated-event-stats.

Parameters

adAccountIdstring

Scopes the lookup on platforms whose tag ids live inside an ad account. Ignored elsewhere.

aggregationstring

Meta only (400 on other platforms): aggregation dimension. Defaults to `event`.

event · host · url · url_by_rule · pixel_fire · device_type · device_os · browser_type · had_pii · custom_data_field · match_keys · event_source …

Example: event

startTimeinteger

Unix seconds lower bound.

endTimeinteger

Unix seconds upper bound.

accountIdRequiredstring
tagIdRequiredstring

Tag id (`TrackingTag.id`).

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.