get_insights
Rate-limit-safe Meta performance metrics (spend, impressions, clicks, CTR, leads, purchases, ROAS, frequency). Read-only. Set time_increment=1 for a day-by-day trend.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| level | No | Report granularity: 'overview' = whole-account totals; 'campaign' = per campaign; 'adset' = per ad set; 'ad' = per ad. Defaults to 'campaign'. | |
| limit | No | Max number of rows to return. | |
| since | No | Custom range start, YYYY-MM-DD. Use together with 'until' (both required) instead of date_preset. | |
| until | No | Custom range end, YYYY-MM-DD. Use together with 'since'. | |
| campaign_id | No | Limit the report to a single campaign (and its ad sets/ads when level is adset or ad). | |
| date_preset | No | Date-range shorthand, e.g. today, yesterday, last_7d, last_14d, last_30d, this_month, last_month, maximum. Ignored when both since and until are supplied. | |
| time_increment | No | Daily trend mode. Set to 1 for a day-by-day series (spend, frequency, ctr, cpm per day). Combine with level 'ad' for per-ad creative-fatigue trends. | |
| meta_account_id | No | Ad account to report on (defaults to your primary). |