i want to get all events as per user, can you please help me with this
To export the event data, you can use Mixpanel's export API (https://developer.mixpanel.com/docs/exporting-raw-data#section-export-api-reference).
You can export all events connected to a user by passing their distinct_id as part of the “where” parameter. The following snippit is an example curl request that achieves this.
You need to update your API secret, date range, and distinct id of user.
curl https://data.mixpanel.com/api/2.0/export/ \-u <API_SECRET_HERE>: \-d from_date="2019-05-01" \-d to_date="2020-02-04" \-d where='properties["$distinct_id"]=="<DISTINCT_ID_OF_USER>"'
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.