use APi to exctract raw event data for a specific event
To extract raw event data for a specific event using the Mixpanel API, you can use the Raw Event Export API. Here's how you can do it: 1. Use the GET /export
endpoint of the Raw Event Export API.
2. Specify the event you want to extract using the event
parameter.Here's an example API request: LBKScurl --request GET \ --url '[https://data.mixpanel.com/api/2.0/export?from_date=2024-07-23&to_date=2024-07-24&event=["sample_event"]](https://data.mixpanel.com/api/2.0/export?from_date=2024-07-23&to_date=2024-07-24&event=[%22sample_event%22])' \ --header 'accept: text/plain' \ --header 'authorization: Basic YOUR_TOKEN'LBKS
In this example:
- Replace sample_event
with the name of the specific event you want to extract.
- Adjust the from_date
and to_date
parameters to specify the date range for your data extraction.
- Replace YOUR_TOKEN
with your actual authentication token.The API will return the raw event data in JSONL format, where each line is a valid JSON object representing an event.Note that:
- The API has a rate limit of 60 queries per hour, 3 queries per second, and a maximum of 100 concurrent queries.
- For projects created after 1 January 2023, the from_date
and to_date
parameters are interpreted using UTC timezone.For more detailed information, you can refer to the Raw Event Export API documentation.
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.