How can I use output of first rest API query an an input for second APi query


I’m using an API to get resources list from Azure (by JSON) and for each resource I need to get its costs using a different API which will produce a JSON output as well.

How can put the resource name and its cost in one table using the two API data sources?