If you run a web or mobile product, sooner or later you want to know what people actually do inside it. Which features get used, where people drop out of your signup flow, and whether the customers you won last month are still coming back. You also want to answer those questions without someone exporting spreadsheets every Monday. Mixpanel does this work, and it does it through an API, which means your own software, a reporting tool, or an AI assistant can send it activity and ask it questions on your behalf.
An API is just a set of doors into a service that other software can knock on. Instead of logging into a dashboard and clicking around, a program makes a request and gets an answer back. Mixpanel exposes most of what it does this way, and that is what makes it useful beyond the screens it ships with.
What Mixpanel does
Mixpanel describes itself as a business analytics service that tracks user interactions with web and mobile applications and provides tools for targeted communication with those users. You send it events, things like “signed up,” “added to cart,” or “exported report,” and it turns them into charts about behavior over time. You can find the company at mixpanel.com.
What you can get done
Understand how your product is being used
The heart of Mixpanel is Product Usage Analytics: funnels, retention, segmentation and cohorts. A funnel shows how many people make it through each step of a process, retention shows how many come back, and a cohort is a named group of users you want to watch together. Through the API you can pull these numbers into your own reports or let an assistant answer “how is onboarding converting this week?”
GET /funnelsqueries the conversion data for a funnel.GET /funnels/listlists the funnels you have saved.GET /retentionreturns how many users come back over time.GET /segmentationbreaks an event down by property, such as country or plan.GET /cohorts/listlists the user groups defined in your project.
Send activity in from your app or your history
Before you can analyze anything, the events have to arrive. That is Product Telemetry Instrumentation, a mouthful that means “recording what happens in your product.” You can send events live as they happen, or bulk-load older data when you are switching from another tool.
POST /trackrecords a single event as it happens.POST /importloads a batch of events, including historical ones.
Keep your tracking plan clean
Analytics fall apart when every team names events differently. Telemetry Quality & Governance is about keeping a shared definition of which events and properties exist. Mixpanel lets you manage those definitions, called schemas, programmatically.
GET /projects/{projectId}/schemaslists the event and property definitions.POST /projects/{projectId}/schemasadds new definitions.PUT /projects/{projectId}/schemasreplaces the definitions wholesale.DELETE /projects/{projectId}/schemasremoves definitions you no longer use.
Honor privacy requests from your customers
When a customer asks you to delete their data, or to hand over a copy of it, privacy laws like GDPR and CCPA expect you to do it. Privacy & Data Protection Management covers that, so you can wire these requests into your support process instead of handling them by hand.
POST /data-deletions/v3.0submits a request to delete a person’s data.GET /data-deletions/v3.0/{taskId}checks whether the deletion is finished.POST /data-retrievals/v3.0asks for a copy of a person’s data.GET /data-retrievals/v3.0/{taskId}checks whether that copy is ready.
Take your raw data with you
Sometimes you want the raw events in your own warehouse or spreadsheet. Under Product Telemetry & Experimentation Management, GET /export pulls the raw event data back out of Mixpanel.
Workflows that put it together
A workflow is a recipe: several API calls made in a set order to finish one job. These are described in Arazzo, an open format for writing those recipes down so software can follow them.
- Funnel Analysis and Annotate finds a saved funnel, queries its conversion data and marks the chart with a note.
- Cohort-Driven Segmentation lists your cohorts, then breaks down an event for just the group you choose.
- Resolve Identity and Track links an anonymous visitor to a known user, records an event, then analyzes it.
- GDPR Data Deletion Flow submits a deletion request and keeps checking until it completes.
- GDPR Data Retrieval Flow requests a person’s data and waits for the download link.
- Import Events and Export Raw bulk-loads historical events and then exports them back out.
- Update Group Profile and Query Insights sets properties on a company-level profile and reads insights for the project.
- Refresh Lookup Table and Track Enriched Event updates a lookup table and records an event that uses it.
Getting started
Mixpanel is freemium with self-serve signup, and it is a hosted service, so you call their endpoint rather than running anything yourself. There is a free plan, and the current details are in the Pricing section of the Mixpanel profile. Their documentation covers alerts, cohort sync and cohort sync webhooks.
On APIs.io you can browse the full Mixpanel profile and individual APIs such as the Events API, the Funnels API, the Export API and the Deletion API.
If you already know the one question you keep asking about your product, start there: pick the funnel or retention call that answers it and have your developer or assistant run it on a schedule.
