Mixpanel Community Icon
  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    Hi Japherson M., Please stand by as I search the Mixpanel knowledge base for an AI-powered answer. I normally take about 15 seconds or so. In case AI cannot answer your question, feel free to reach out to Mixpanel support at mixpanel.com/get-support. If you have follow-up questions for this thread, please tag me again with your question: @kapa.ai <follow-up question> đź‘‹

    Feel free to ask a follow-up question once I've answered by mentioning me with @kapa.ai

  • Avatar of kapa.ai
    kapa.ai
    APP
    ·
    ·

    To export Events from Mixpanel, you have several options:1. Raw Event Export API: This is the recommended method for high volume exports. You can use the Raw Event Export API to download your event data as it is received and stored within Mixpanel, complete with all event properties and exact timestamps. The events are returned as JSONL (JSON Lines) format. Here's an example request:LBKScurl --request GET \ --url '[https://data.mixpanel.com/api/2.0/export?from_date=2024-07-23&amp;to_date=2024-07-24&amp;limit=100&amp;event=sample_event](https://data.mixpanel.com/api/2.0/export?from_date=2024-07-23&amp;to_date=2024-07-24&amp;limit=100&amp;event=sample_event)' \ --header 'accept: text/plain' \ --header 'authorization: Basic YOUR_TOKEN'LBKS2. CSV Events Export: For smaller batches of events, you can export as a CSV directly from the Mixpanel UI. Navigate to the Events tab, query the events you're interested in, and click the "Export" button in the top right corner Export Methods.3. Programmatic Export: You can use the Mixpanel Utils Python module to export events programmatically. Here's an example::LBKSLBKS```LBKSmputils.export_events('event_export.txt',{'from_date'::'2016-01-01','to_date'::'2016-01-01','event'::'["App Install"]'})```Mixpanel-utils Module4. Data Pipelines: If you have the Data Pipelines add-on, you can set up automated exports to various destinations like Google Cloud Storage or Amazon S3 Data Pipelines.Remember that the Raw Event Export API has rate limits: 60 queries per hour, 3 queries per second, and a maximum of 100 concurrent queries. If you exceed these limits, you'll receive a 429 error Raw Event Export API.

    kapa.ai is still learning and improving, please let me know how I did by reacting below.

    ℹ️ Tip: Mention @kapa.ai in the thread for follow-ups or DM the app for 1-to-1 help.