# How to? Countries dropdown populated from Google API

**URL:** <https://forum.bubble.io/t/how-to-countries-dropdown-populated-from-google-api/296000>\
**Category:** Need help\
**Created:** [December 3, 2023, 6:26am UTC](https://forum.bubble.io/t/how-to-countries-dropdown-populated-from-google-api/296000 "2023-12-03T06:26:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thethinklab.au](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thethinklab.au/32/156912_2.png) [@thethinklab.au](https://forum.bubble.io/u/thethinklab.au)\
**Post date:** [December 3, 2023, 6:26am UTC](https://forum.bubble.io/t/how-to-countries-dropdown-populated-from-google-api/296000/1 "2023-12-03T06:26:56Z")

</div>

Hi all,

How would I populate a dropdown with Country names only via Google API?

I have the Google Places API connected, but no idea where to from here… Does anyone have a good tutorial or guide I could follow?

Thanks!

---

<div class="post-metadata">

**Author:** ![redvivi](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/redvivi/32/59955_2.png) [@redvivi](https://forum.bubble.io/u/redvivi)\
**Post date:** [December 3, 2023, 7:36am UTC](https://forum.bubble.io/t/how-to-countries-dropdown-populated-from-google-api/296000/2 "2023-12-03T07:36:31Z")

</div>

Ideally, your API must be initialized as “Data”.

Set the Dropdown type as text and in Dropdown datasource, use the dynamic variable “Get data from an external API”, select your API and look for the list of field corresponding to the country name (Or perhaps…each item’s country name).

But…is your intent to get the full country list? If so, no need for Google Places API.

---

<div class="post-metadata">

**Author:** ![thethinklab.au](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/thethinklab.au/32/156912_2.png) [@thethinklab.au](https://forum.bubble.io/u/thethinklab.au)\
**Post date:** [December 4, 2023, 6:55am UTC](https://forum.bubble.io/t/how-to-countries-dropdown-populated-from-google-api/296000/4 "2023-12-04T06:55:21Z")

</div>

Does anyone have any idea how to do this? Given Google has location data, I thought it would be easy to get a situation where a user can choose:

Country (Dropdown) \> Then State/City (Drop Down \> Then Suburb

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [February 11, 2024, 6:27am UTC](https://forum.bubble.io/t/how-to-countries-dropdown-populated-from-google-api/296000/5 "2024-02-11T06:27:32Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
