Solved

Fetch event count with respect to event properties(user_id) using API

  • 22 June 2023
  • 3 replies
  • 91 views

Need Help,
I want to fetch event count w.r.t. event properties  using API call

icon

Best answer by Saish Redkar 23 June 2023, 08:02

View original

3 replies

Userlevel 7
Badge +10

Hey @Ashwin Muni 

If you are looking at a general way to access the event schema and its metadata via API, then the Taxonomy API has some options.

If you want to query user data based on user_id as input, then here are a few endpoints which might help. But they may not guarantee the output format that you are expecting

Hey @Saish Redkar ,

Thanks for the reply. Let me explain my use case. I want to count “watch_post” event with respect to event property “analytics_user_id”. I will pass “analytics_user_id” value in API and it should return the event count with respect to the value. Can you help me in this regard? 

 

 

Userlevel 7
Badge +10

Thanks for explaining.

This could be achieved using the event segmentation endpoint of the Dashboard API. This essentially allows you to create most of your event segmentation chart results on the fly with API parameters.

You will have to format your API calls and pass in the desired value for event property by using the following docs

Reply