ig_get_account_insights
Fetch Instagram account insights with customizable metrics and periods. Control data aggregation using metric_type for total values or daily time series.
Instructions
Get Instagram account insights. Use the optional metric_type to control whether results come back as a single total per metric or as a daily breakdown. Note: 'impressions', 'email_contacts', 'phone_call_clicks', 'text_message_clicks', 'get_directions_clicks', 'website_clicks', 'profile_views' were deprecated in v22.0. Use 'views', 'reach', 'follower_count', 'reposts' instead.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| since | No | Start date (Unix timestamp or ISO 8601) | |
| until | No | End date (Unix timestamp or ISO 8601) | |
| metric | Yes | Comma-separated metrics. Time-series metrics (use period=day/week/days_28): views,reach,accounts_engaged,total_interactions,reposts,profile_links_taps. Lifetime-only metrics (use period=lifetime): follower_count,follower_demographics,engaged_audience_demographics. | |
| period | Yes | Aggregation period. Use 'day', 'week', or 'days_28' for time-series metrics (views,reach,accounts_engaged,total_interactions,reposts,profile_links_taps). Use 'lifetime' only for follower_count and demographic metrics (follower_demographics,engaged_audience_demographics). | |
| metric_type | No | Aggregation shape: 'total_value' for a single aggregated number per metric, 'time_series' for daily breakdowns. Per the Instagram User Insights docs, only 'reach' supports both; most metrics (views, likes, reposts, accounts_engaged, total_interactions, saves, shares, comments, replies, quotes, profile_links_taps, demographics) support only 'total_value'. Omit to use the API default for each metric. |