Skip to main content
I have this chart in my dashboard, and want to pull the data needed to make this chart using the v2 api.

This is what I’ve tried, but I’m not getting the right data. Im not sure what I’m doing wrong:

https://amplitude.com/api/2/events/segmentation?e={"event_type": "levar_purchase","filters": e{"subprop_type": "user","subprop_key": "gp:store_id","subprop_op": "is","subprop_value": l"xxxxxxx"]}]}&start=20231001&end=20231010&s=a{"prop":"gp:store_id","op":"is","values":l"xxxxxxx"]}]

 

I know there’s a parameter ‘m’ which can be set to ‘sums’, but i get a bad request error when using that flag. 

I assumed i should be using the events/segmentation api because the chart I’m trying to replicate is a segmentation chart. Is there some flag/parameter that I’m missing that would let me get the “sum of property value” for my ‘price’ property?

Be the first to reply!

Reply