Mixpanel Export API

Export raw event data

Operations 1

GET /export Mixpanel Export raw events #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/mixpanel-export-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

mixpanel-export-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Mixpanel Event Export API
  description: API for downloading raw event data as it is received and stored within Mixpanel, complete with all event properties including distinct_id and exact timestamps.
  version: '2.0'
  contact:
    name: Mixpanel Support
    email: support@mixpanel.com
    url: https://mixpanel.com/get-support
  termsOfService: https://mixpanel.com/legal/terms-of-use
servers:
- url: https://data.mixpanel.com/api/2.0
  description: Mixpanel US Data Residency
- url: https://data-eu.mixpanel.com/api/2.0
  description: Mixpanel EU Data Residency
security:
- basicAuth: []
tags:
- name: Export
  description: Export raw event data
paths:
  /export:
    get:
      operationId: exportRawEvents
      summary: Mixpanel Export raw events
      description: Download raw event data for a date range. Returns newline-delimited JSON (NDJSON) where each line is a JSON object representing one event. The response can be very large for projects with high event volumes.
      tags:
      - Export
      parameters:
      - name: from_date
        in: query
        required: true
        schema:
          type: string
          format: date
        description: Start date for export (YYYY-MM-DD)
      - name: to_date
        in: query
        required: true
        schema:
          type: string
          format: date
        description: End date for export (YYYY-MM-DD)
      - name: event
        in: query
        schema:
          type: array
          items:
            type: string
        description: Filter to specific event names (JSON-encoded array)
      - name: where
        in: query
        schema:
          type: string
        description: Expression to filter events (e.g., 'properties["$os"] == "iPhone OS"')
      - name: project_id
        in: query
        schema:
          type: integer
        description: The Mixpanel project ID
      responses:
        '200':
          description: Raw event data in newline-delimited JSON format
          content:
            application/x-ndjson:
              schema:
                type: string
                description: Newline-delimited JSON where each line is an event object with event name and properties
            application/json:
              schema:
                type: object
                properties:
                  event:
                    type: string
                    description: Event name
                  properties:
                    type: object
                    additionalProperties: true
                    description: Event properties including distinct_id and time
        '400':
          description: Invalid date range or parameters
        '401':
          description: Unauthorized
        '429':
          description: Rate limit exceeded
components:
  securitySchemes:
    basicAuth:
      type: http
      scheme: basic
      description: Service account credentials for API authentication.
externalDocs:
  description: Mixpanel Event Export API Documentation
  url: https://developer.mixpanel.com/reference/raw-event-export