How to return multiple cities from the API and set a variable with the INSEE code when a city label

I made an API call to https://api-adresse.data.gouv.fr/search/. I would like to return x cities and when I click on one, it should set a variable with the INSEE code instead of the label displayed on the button. Is it possible to do this?
6 Replies
Baptiste
Baptiste2w ago
It should be possible, yes!
sullivan.mrr
sullivan.mrrOP2w ago
I set the data.features of the API response into the variable listCities. I want to display x listCities buttons in the Typebot's button component. However, when I click on them, I would like to retrieve the citycode, not the label that is shown on the button.
sullivan.mrr
sullivan.mrrOP2w ago
No description
sullivan.mrr
sullivan.mrrOP2w ago
Thank for your help

Did you find this page helpful?