Skip to main content

Hi, I’m currently trying to integrate Amplitude’s API with an app on Bubble.io to get interactive dashboards which do not exist on Amplitude (only the events data is on Amplitude). However, I’m blocked because of some filters I should add that could have empty values in Bubble and should be ignored in the call. Is there any way to assign the subprop value within the call for the filter to take any subprop value?
 

This is what my API call currently looks like:

https://amplitude.com/api/2/events/segmentation?e={"event_type":"_event_type]","filters": %5B{ "subprop_type":"event", "subprop_key":"microsite","subprop_op":"is","subprop_value":%5B"umicrosite]"%5D}%5D}&start=pstart_YYYYMMDD]&end=aend_YYYYMMDD]

 

Please note that the dynamic values are included between brackets (due to Bubble’s syntax), while the brackets from the object syntax are URL-encoded as %5B and %5D for n and ] respectively.

 

The value which might be empty is the one for the “microsite” subprop.

Be the first to reply!

Reply