Question

export trough events/properties API more then one property

  • 24 June 2019
  • 1 reply
  • 154 views

Badge

Hi,

is it possible export event trough events/properties API for more then one property?

for example:

event A break down by prop B =>
https://mixpanel.com/api/2.0/events/properties/?interval=7&event=event A&type=unique&name=propB&unit=year

event A break down by prop B breakdown Prop C =>
????



1 reply

Userlevel 1
Badge

Hi @DanielVerman!

If you are using our raw data export API <https://mixpanel.com/help/reference/exporting-raw-data#export-api-reference> you could apply multiple property filters via this API if needed on it.

As an alternative, the JQL API is fully accessible outside of the Mixpanel UI https://mixpanel.com/help/reference/jql/api-reference. You should be able to query your events & properties. In JQL, a very simple multiseg Segmentation query would look like so:

function main() { 
 return Events({ 
  from_date: '2019-05-26', 
  to_date:  '2019-06-26', 
  event_selectors:[{event:'your event name'}] 
 }) 
.groupBy(["properties.$city", "properties.$region"], mixpanel.reducer.count()); 
}

Hope this helps get what you need!


Reply