Skip to main content

Rate Limits

Mixpanel enforces rate limits on API endpoints to ensure system stability and fair usage across all customers.

Rate Limits by API

Ingestion API

/import
Rate Limit: No hard limit, but 429 errors may be returned during high loadBest Practice: Implement exponential backoff on 429 errors
/track
Rate Limit: No hard limit for reasonable usageRecommendation: Batch events when possible (up to 2000 events per request)

Query API

All query endpoints
Rate Limit: 60 queries per hour, 5 concurrent queries maximumPer Second: 3 queries per secondStatus Code: 429 Too Many Requests
Applies to:
  • /api/query/insights
  • /api/query/funnels
  • /api/query/retention
  • /api/query/segmentation
  • /api/query/cohorts
  • /api/query/engage

Export API

/export
Rate Limit: 60 queries per hour, 3 queries per second, 100 concurrent queries maximumStatus Code: 429 Too Many Requests

Management APIs

Management endpoints
Rate Limit: Standard HTTP rate limiting appliesRecommendation: Space out requests, avoid burst traffic

Request Limits

Ingestion Payload Limits

Query Result Limits

Handling Rate Limits

Detecting Rate Limit Errors

When you exceed rate limits, Mixpanel returns a 429 Too Many Requests response:

Implementing Exponential Backoff

Best Practices

Instead of sending individual events, batch them into arrays of up to 2000 events per request. This significantly reduces the number of API calls.
Always implement exponential backoff retry logic for 429 errors. Start with a 1-second delay and double it with each retry.
If you’re querying the same data frequently, cache the results on your side instead of making repeated API calls.
For real-time updates, consider using Mixpanel’s webhook features instead of polling the Query API.
Use gzip compression for large payloads to reduce transfer time and stay within size limits:
Track your API usage to identify patterns and optimize before hitting rate limits.

Rate Limit Headers

Mixpanel may include rate limit information in response headers (implementation varies by endpoint):
Not all endpoints currently return rate limit headers. Use 429 status codes as the primary indicator.

Increasing Rate Limits

If you have a legitimate need for higher rate limits:
  1. Contact Mixpanel Support
  2. Describe your use case
  3. Provide expected traffic patterns
  4. Enterprise customers may have higher default limits
Rate limit increases are evaluated on a case-by-case basis and are not guaranteed.

Common Scenarios

High-Volume Event Ingestion

Problem: Sending millions of events per day Solution:
  • Batch events in groups of 2000
  • Use multiple threads/workers with proper backoff
  • Consider using Data Pipelines for bulk imports

Frequent Dashboard Updates

Problem: Polling Query API every minute for dashboard data Solution:
  • Cache results and refresh less frequently
  • Use longer time windows to reduce query complexity
  • Consider using Mixpanel’s embedding features

Bulk Data Export

Problem: Exporting large date ranges frequently Solution:
  • Use Data Pipelines for scheduled exports
  • Limit export date ranges to reduce query time
  • Export during off-peak hours