Need Help,
I want to fetch event count w.r.t. event properties using API call
Hey
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
- https://www.docs.developers.amplitude.com/analytics/apis/dashboard-rest-api/#user-activity
- https://www.docs.developers.amplitude.com/analytics/apis/ccpa-dsar-api/
Let me know if I have understood your use case correctly. Hope this helps.
Hey
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?
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
Welcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. You can also create a Guest account below!
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comWelcome to the Amplitude Community!
If you don't have an Amplitude account, you can create an Amplitude Starter account for free and enjoy direct access to the Community via SSO. Create an Amplitude account. Want to sign up as a guest? Create a Community account.
If you're a current customer, select the domain you use to sign in with Amplitude.
analytics.amplitude.com analytics.eu.amplitude.comEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.