API Location How to Get the selected Value

Hello I create a API to get all the country names



how can I add the selected country name on my dropdown and save it on to my database? and how to display the countrynames alphabetically order?

Sort it