Query API
Insights
Query saved Insights reports
GET
Insights
Documentation Index
Fetch the complete documentation index at: https://mintlify.com/mixpanel/docs/llms.txt
Use this file to discover all available pages before exploring further.
Query Insights
Retrieve data from your saved Insights reports programmatically.Query Saved Report
Your Mixpanel project ID
The workspace ID containing the report
The ID of your Insights report. Can be found from the URL:
https://mixpanel.com/project/<PROJECT_ID>/view/<WORKSPACE_ID>/app/boards#id=12345&editor-card-id="report-<BOOKMARK_ID>"Example Request
Response
Timestamp when the query was computed
The date range of the queried data
Array explaining the nested keys in the
series objectMaps event names to date/value pairs. Each key is an event name, and the value is an object with dates as keys and event counts as values.
Use Cases
Daily Metrics Dashboard
Trend Analysis
Best Practices
Create dedicated reports for API queries
Create dedicated reports for API queries
Instead of querying general reports, create specific Insights reports optimized for API consumption with:
- Relevant date ranges
- Specific events needed
- Appropriate filters
Cache results appropriately
Cache results appropriately
Insights data doesn’t change frequently, so cache results:
Handle missing data gracefully
Handle missing data gracefully
Some dates might not have data:
Insights