Solved

Obtain user profile properties

  • 25 July 2019
  • 1 reply
  • 51 views

Badge

We want to obtain some properties from user profile to be showed directly to our users as "statistic" information. However I don't find any reference to it in Mixpanel API. Someone now if Mixpanel have some endpoint or library to obtain it?


icon

Best answer by fjtorres 25 July 2019, 16:55

After a reply from Support team, the SDKs don't have any option to do it but we can achieve it directly with a call to one endpoint from Mixpanel. In this case we should call "/engage" endpoint from the export API.

URL: https://mixpanel.com/api/2.0/engage/

Basic auth: Username = API SECRET, Password: empty

Documentation: https://developer.mixpanel.com/docs/data-export-api#section-engage

We can filter the user data in different ways but the most common for our use case is using "where" expressions filtering by email address. Besides it's great be able to reduce the response using "output_properties" with a list of properties to be returned from the API.


View original

1 reply

Badge

After a reply from Support team, the SDKs don't have any option to do it but we can achieve it directly with a call to one endpoint from Mixpanel. In this case we should call "/engage" endpoint from the export API.

URL: https://mixpanel.com/api/2.0/engage/

Basic auth: Username = API SECRET, Password: empty

Documentation: https://developer.mixpanel.com/docs/data-export-api#section-engage

We can filter the user data in different ways but the most common for our use case is using "where" expressions filtering by email address. Besides it's great be able to reduce the response using "output_properties" with a list of properties to be returned from the API.


Reply