PeumeAPI

Ads

Get campaign analytics

Returns a campaign's performance summary and daily timeline, with optional breakdowns by age, gender and other audience dimensions.

$0.002 per callRuns on an account you connect

Call it

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

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-campaign-analytics.

Parameters

platformstring

Disambiguate when the campaign id exists across platforms (e.g. facebook, instagram).

fromDatestring

Start of date range (YYYY-MM-DD). Defaults to 90 days ago.

toDatestring

End of date range (YYYY-MM-DD). Defaults to today. Max 730-day range.

breakdownsstring

Comma-separated breakdown dimensions. - **Meta**: age, gender, country, publisher_platform, device_platform, region, platform_position, impression_device, video_asset, image_asset, body_asset, title_asset. - **TikTok**: gender, age, country (or country_code), publisher_platform (or platform), ac, language, placement. TikTok serves at most 365 days per breakdown, so a longer range is read over its last 365 days and `analytics.breakdownsRange` says which window. - **LinkedIn** (firmographics): job_title, job_function, seniority, industry, company, company_size, country, region. Rows carry the r

campaignIdRequiredstring

Platform campaign id (platformCampaignId).

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.