Quick summary
This tutorial shows how to download raw data from Mixpanel by creating a Service Account and using the Raw Event Export API to fetch and export your analytics data. You can access your complete event dataset programmatically or through the Mixpanel developer docs UI.
Steps
- From inside Mixpanel, click the gear icon in the top right to open Settings.
- Select Organization Settings from the dropdown menu.
- Navigate to Service Accounts from the left sidebar menu.
- Click the + Add Service Account button in the top right corner.
- Enter a name and other details to define the scope and power of the new account.
- Select the Projects this service account is allowed to access.
- Set the Project Role to define the level of permissions the account has.
- Verify all fields and permissions, then click Create.
- Copy and save the credentials displayed — they cannot be retrieved after closing the window. Click Done when finished.
- Head to the Download Data page in the Mixpanel docs to use the Raw Event Export API or the web UI.
- Enter your saved credentials in the Authorization fields on the API reference page.
- Fill in the required and optional query fields, noting that project_id is required when using a Service Account.
- Click Try It! to execute the API request and fetch your data.
- Review the returned data and either copy it or set up a pipeline to regularly export it to a destination file such as a CSV.
.gif)



