How to address flexible parameters in an http response? (e.g. wildcard?)

Dear community, i am using an api that retrieves the following result structure:

{
example.com”: {“price”: 10},
}

To use the results as needed i need to address price. If i select that using my module, it uses the name of the parameter (example.com) as reference. Which leads to an error when the next result with the next domain comes in. How can i address the price parameter in the nested structure without directly referencing the name? Is there for example a way to use a wildcard?

Bildschirm­foto 2024-02-28 um 11.24.46

Welcome to the Make community!

You can first the built-in function toArray. This will allow you to use the map and get functions.

e.g.:

toArray(result_structure)

For more information, see https://www.make.com/en/help/functions/array-functions#toarray--collection-

2 Likes