This interactive demo was created free with Storylane in 2 minutes. Create your own demo
This interactive demo was created free with Storylane in 2 minutes. Create your own demo
Start free
All Tutorials /Mixpanel

How To Export Events From Mixpanel

Updated on:
June 5, 2026
By:
Madhav Bhandari
Use this interactive demo to learn how to export raw event data from Mixpanel using the API.

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

  1. From inside Mixpanel, click the gear icon in the top right to open Settings.
  2. Select Organization Settings from the dropdown menu.
  3. Navigate to Service Accounts from the left sidebar menu.
  4. Click the + Add Service Account button in the top right corner.
  5. Enter a name and other details to define the scope and power of the new account.
  6. Select the Projects this service account is allowed to access.
  7. Set the Project Role to define the level of permissions the account has.
  8. Verify all fields and permissions, then click Create.
  9. Copy and save the credentials displayed — they cannot be retrieved after closing the window. Click Done when finished.
  10. Head to the Download Data page in the Mixpanel docs to use the Raw Event Export API or the web UI.
  11. Enter your saved credentials in the Authorization fields on the API reference page.
  12. Fill in the required and optional query fields, noting that project_id is required when using a Service Account.
  13. Click Try It! to execute the API request and fetch your data.
  14. 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.

📌 Why this matters

Accessing raw event data from Mixpanel is essential for teams that need to run custom analyses, build data pipelines, or sync analytics data into external warehouses and BI tools. The Mixpanel Raw Event Export API gives data engineers and analysts granular, unsampled access to every tracked event, enabling deeper segmentation and long-term data retention beyond the Mixpanel UI. Setting up a Service Account provides secure, permission-scoped programmatic access without relying on personal user credentials. This workflow is the recommended method for automating recurring data exports to destinations like CSV files, data lakes, or third-party analytics platforms.
Your product deserves an interactive demo
Start free
Similar Articles
Mixpanel

How to Integrate Customer.io with Mixpanel

Madhav Bhandari
Director of Marketing @ Storylane
Mixpanel

How To Add A Parameter In Mixpanel

Madhav Bhandari
Director of Marketing @ Storylane
Mixpanel

How Do I Download All The Raw Data From Mixpanel

Madhav Bhandari
Director of Marketing @ Storylane
No items found.
Platform
Interactive Demos
Sandbox Demos
Hubs
RepX
Integrations
Solutions
Product Marketers
Growth & Demand Gen
Sales Reps & AEs
Presales & SEs
Customer Success
Product Managers
Customers
Demo Showcase
Customer Stories
Finer Demos Club
Features
Demo Signals
Personalization
Deal Intelligence
Resources
Blog
The Plot
Tutorials
Help Docs
What’s New
Demo Dundies
Company
Careers
Pricing
Partners
Contact
Trust Center
Backed by
Chrome Extension Icon
Chrome extension
Download
Desktop app
Download
Built in San Francisco Bay Area - ©2026 Storylane
Privacy PolicyTerms & Conditions
X Corp (formerly Twitter)LinkedIn
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it
This website uses cookies to ensure you get the best experience on our website. Learn More
Got it