Compliance APIs
Event Export
Export raw event data
GET
Event Export
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.
Raw Event Export
Export raw event data as JSON for custom processing and analysis.Base URL
Authentication
Use Project Secret with HTTP Basic Auth.Download Data
Export events within a date range.Required when using service account authentication
Start date in
yyyy-mm-dd format (inclusive)Interpreted as UTC timezone for projects created after January 1, 2023End date in
yyyy-mm-dd format (inclusive)Maximum number of events to return (max: 100,000)
Event name(s) to export, encoded as JSON arrayExample:
["Signed Up", "Purchase"]Expression to filter events
Export timestamps with millisecond precisionDefault:
false (second precision)Set to
gzip to compress the responseExample Request
Response
Returns newline-delimited JSON (JSONL):Rate Limits
Best Practices
Use compression
Use compression
Always request gzip compression for large exports:
Export in reasonable date ranges
Export in reasonable date ranges
Split large exports into smaller chunks:
Use Data Pipelines for regular exports
Use Data Pipelines for regular exports
For scheduled exports, use Data Pipelines instead of polling the Export API.
Event Export