API Get object syntax help

I need some help understanding how to access data via an API call. I’m not getting all the data in the following Rule/API call. What am I missing? (And do I need to execute the GET each time, in this example?)

SharpTools Rule:

Rule Output:
image

API Output:


In the sample response you provided, features appears to be an array, you would need to access an item within that array (reference).

$context.response.data.features.0.type
$context.response.data.features.0.properties.areaDesc
$context.response.data.features.0.properties.geocode.UGC.0
$context.response.data.features.0.properties.event

Also note that you only need to use the HTTP action one time, then you can get each of the properties you want following that as the response stays available in the context variable until it’s overwritten (eg. another HTTP action).

1 Like

Is that (array) denoted by the “[” in:
… “features”: [

Thanks!

Yes. If you didn’t see it, be sure to check out the reference post I linked in my last reply:

1 Like