PeumeAPI

Ads

Submit async insights report

Starts a background Meta insights report for long date ranges or large accounts where a live query would be too slow.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/submit-async-insights-report \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "objectId": "your objectId"
  }
}'

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: submit-async-insights-report.

Parameters

accountIdRequiredstring

SocialAccount id (posting or ads variant).

objectIdRequiredstring

Meta insights node: act_<n>, campaign id, ad set id or ad id.

levelstring

ad · adset · campaign · account

fieldsstring

Comma-separated Graph insights fields.

breakdownsstring

Comma-separated Graph breakdowns.

actionBreakdownsstring

Comma-separated Graph action breakdowns (e.g. action_type,action_destination). Pass `none` to clear Meta's default action_type breakdown, needed for some non-action breakdowns such as instagram_ads_follow_type.

actionAttributionWindowsarray

Meta attribution windows (e.g. ["7d_click", "1d_view"]). Action values are returned keyed per window.

actionReportTimestring

When actions are counted: impression, conversion or mixed.

useUnifiedAttributionSettingboolean

Use the ad sets' own attribution settings for action counting.

filteringarray

Meta filter objects, applied server-side.

datePresetstring

Mutually exclusive with fromDate/toDate.

fromDatestring
toDatestring
timeIncrementstring

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.