Download Data
Every data point sent to Mixpanel is stored as JSON in our data store. The raw export API allows you to download your event data as it is received and stored within Mixpanel, complete with all event properties (including distinct_id) and the exact timestamp the event was fired. The raw export API has a rate limit of 60 queries per hour, 3 queries per second, and a maximum of 100 concurrent queries. If you exceed the rate limit, a 429 error will be returned.
Authorizations
Project Secret
Headers
If set to gzip and the response body is > 1400 bytes, the response will be compressed with gzip, and Content-Encoding will be set to gzip.
gzip Query Parameters
Required if using service account to authenticate request.
The date in yyyy-mm-dd format to begin querying from. This date is inclusive and interpreted as UTC timezone for projects created after 1 January 2023 and current project timezone for projects created before 11 January 2023.
The date in yyyy-mm-dd format to query to. This date is inclusive and interpreted as UTC timezone for projects created after 1 January 2023 and current project timezone for projects created before 11 January 2023.
Use this parameter if you want to limit the max number of events to be returned. Value cannot be over 100000.
The event or events that you wish to get data for, encoded as a JSON array.
Defaults to false which will export event timestamps with second-precision.
Set to true to export event timestamps with millisecond-precision.
Response
Success. The returned format is one event per line where each line is a valid JSON object, but the full return itself is JSONL.
Newline delimited JSON (JSONL)
"{\"event\":\"Signed up\",\"properties\":{\"time\":1602611311,\"$insert_id\":\"hpuDqcvpltpCjBsebtxwadtEBDnFAdycabFb\",\"mp_processing_time_ms\":1602625711874}}\n{\"event\":\"Signed up\",\"properties\":{\"time\":1602787121,\"$insert_id\":\"jajcebutltmvhbbholfhxtCcycwnBjDtndha\",\"mp_processing_time_ms\":1602801521561}}\n"