There are several ways to query all events in Mixpanel depending on your use case:
1. Raw Export API
Use the Export API to download all raw event data. The event parameter is optional, so omitting it returns all events:
curl --request GET \
--url 'https://data.mixpanel.com/api/2.0/export?project_id=<YOUR_PROJECT_ID>&from_date=<FROM_DATE>&to_date=<TO_DATE>' \
--header 'accept: text/plain' \
--header 'authorization: Basic ' # set up service account authNote: The API allows a maximum of 100 concurrent queries, 60 queries per hour, and 3 queries per second.
2. Query API
Use the /events endpoint to get aggregate event counts for specific events over a time range. [Query API]
3. JQL (Maintenance Mode)
⚠️ JQL is currently in maintenance mode and Mixpanel recommends discontinuing its use.
If you still need to use JQL, here's how to query all events:
function main() {
return Events({
from_date: "2016-01-04",
to_date: "2016-01-04"
}).reduce(mixpanel.reducer.count());
}[JQL Docs]
4. Data Pipelines (SQL)
If you have a Data Pipeline set up (e.g., Snowflake, BigQuery, Databricks), you can query all events directly with SQL:
-- Snowflake example
SELECT count(*)
FROM <DB_NAME>.<DB_NAME>.MP_MASTER_EVENT;
-- Databricks example
SELECT count(*)
FROM mixpanel_export.json_pipelines.mp_master_event;Recommended approach: Use the Export API for raw event export, or Data Pipelines if you need ongoing access via a data warehouse.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
The knowledge sources do not contain enough information to provide a fully detailed answer on selecting metrics from any event in Mixpanel reports. However, based on what is available, here is what I can share:
Selecting Metrics in Insights Reports
In the Insights report, you can select measurements/metrics for your events by:
Clicking on "Unique Users" (the default metric selector)
Selecting from the available options in the drop-down
The available measurement categories include:
Category | Examples |
Events | Total Events, Frequency per User |
Users | Unique Users, Count Users |
Property Values | Sum, Average, Median, Distinct Count, Percentiles (P25, P75, P90, P99), Min, Max |
Property Values per User | Sum, Average, Distinct Count, Min, Max |
Sessions | Count Sessions |
[Insights Measurements] For more detailed guidance on selecting events and metrics across other report types (Funnels, Retention, etc.), I'd recommend checking the Mixpanel Reports documentation directly, as the knowledge sources don't cover those in detail here.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
The knowledge sources do not explicitly mention why "All Events" cannot be selected in the Insights report. However, based on what is available, here is a relevant limitation to be aware of:
Date Range Restriction for "All Events"
If you can select "All Events" in Insights, note that it comes with a strict date range guardrail:
Reports using All Events can include a maximum date range of 93 days (approximately 3 months).
This means if your selected date range exceeds 93 days, the "All Events" option may be restricted or unavailable. [Date Range Guardrails]
What You Can Do Instead
Narrow your date range to within 93 days and try again.
Use individual events or group them using a Custom Event to combine multiple events into one virtual event.
Use the Raw Export API if you need data across all events without date restrictions.
For a more definitive answer on why "All Events" is unavailable in your specific case, I'd recommend reaching out to Mixpanel Support directly, as the knowledge sources don't cover all possible reasons for this restriction.
ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.
