insights_get
Fetch performance metrics for any Meta ad entity (account, campaign, ad set, or ad) with options for date ranges, breakdowns, and filters.
Instructions
Get insights for any entity (account, campaign, ad set, or ad).
Args: entity_id: act_... for an ad account, OR a campaign/adset/ad ID. level: account, campaign, adset, or ad. Determines aggregation. date_preset: today, yesterday, this_week_mon_today, last_7d, last_14d, last_28d, last_30d, last_90d, this_month, last_month, this_quarter, maximum, etc. Mutually exclusive with time_range. time_range: {"since": "YYYY-MM-DD", "until": "YYYY-MM-DD"}. fields: Comma-separated list. Defaults to a comprehensive standard set. breakdowns: e.g. ["age", "gender"], ["publisher_platform", "platform_position"], ["country"], ["device_platform"], ["impression_device"]. action_breakdowns: e.g. ["action_type", "action_destination"]. filtering: e.g. [{"field":"spend","operator":"GREATER_THAN","value":"10"}]. time_increment: 1, 7, monthly, all_days. Aggregates by time buckets. sort: e.g. ["spend_descending"], ["impressions_descending"].
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sort | No | ||
| level | No | ad | |
| limit | No | ||
| fields | No | ||
| entity_id | Yes | ||
| filtering | No | ||
| breakdowns | No | ||
| time_range | No | ||
| date_preset | No | ||
| time_increment | No | ||
| action_breakdowns | No |