get_page_insights
Retrieve Facebook Page analytics: page views, fan count, adds/removes, and post reactions. Supports custom date ranges and aggregation periods.
Instructions
Retrieve page-level analytics (page_views_total, page_fans, page_fan_adds, page_fan_removes, page_actions_post_reactions_total). Supports day/week/days_28 periods and date ranges. NOTE: Legacy metrics page_impressions and page_reach are deprecated as of June 2026.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Start date (YYYY-MM-DD) for the query range. Use with 'until'. | |
| until | No | End date (YYYY-MM-DD) for the query range. Use with 'since'. | |
| period | No | Aggregation period: day, week, or days_28. | day |
| metrics | No | Metrics to retrieve. Defaults to all supported metrics: page_views_total, page_fans, page_fan_adds, page_fan_removes, page_actions_post_reactions_total. NOTE: page_impressions, page_reach, and page_impressions_unique are DEPRECATED (June 2026) and should not be used. | |
| page_id | No | Facebook Page ID. Defaults to FB_PAGE_ID env var if omitted. | |
| date_preset | No | Date preset (e.g. last_7d, last_28d, last_30d, this_month). Mutually exclusive with since/until. |