Linking Dropdown Selections Across Multiple API Calls

Database & APIs

Hello everyone!
I'm making a query to a vehicle brands API using a dropdown where the user can choose one of the brands that comes from the path $[*].nome in the resulting JSON. Next, the user needs to select the car model, where only models corresponding to the previously selected brand should appear.

However, the model API query requires the brand ID (which comes from the path $[:].valor) rather than its name to return the available models. How can I capture the ID when the user selects the brand name in the dropdown, so that it can be used as a variable when making the request to the model API?

Brand API:

https://brasilapi.com.br/api/fipe/marcas/v1/carros

Models API:

https://brasilapi.com.br/api/fipe/veiculos/v1/carros/{brand-id}

What have you tried so far?

Couldn't find any post related to this subject

Did you check FlutterFlow's Documentation for this topic?
Yes
2
7 replies