# US city state zip code database?

**URL:** <https://forum.adalo.com/t/us-city-state-zip-code-database/19645>\
**Category:** Get Help\
**Created:** [November 14, 2021, 8:46pm UTC](https://forum.adalo.com/t/us-city-state-zip-code-database/19645 "2021-11-14T20:46:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MikesClub](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/mikesclub/32/12754_2.png) [@MikesClub](https://forum.adalo.com/u/MikesClub)\
**Post date:** [November 14, 2021, 8:46pm UTC](https://forum.adalo.com/t/us-city-state-zip-code-database/19645/1 "2021-11-14T20:46:32Z")

</div>

I have two questions about creating a form where users can input their address. I’m referring here to US addresses.

First, I’ve seen on some websites that, when you input your ZIP code (postal code), the fields for state and city automatically populate. I assume these forms pull from some external database, maybe the postal service.

Is there a way to do this in Adalo so I don’t have to manually create address collections?

Or, second possibility, has anyone already created this kind of address collection they could share with me? It seems like asking users to provide their address would be a common part of the signup process (for some types of services).

I’d appreciate any assistance on this. Thanks so much!

---

<div class="post-metadata">

**Author:** ![TKOTC](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/tkotc/32/6863_2.png) [@TKOTC](https://forum.adalo.com/u/TKOTC)\
**Post date:** [November 14, 2021, 10:36pm UTC](https://forum.adalo.com/t/us-city-state-zip-code-database/19645/2 "2021-11-14T22:36:13Z")

</div>

Many ways to accomplish this. One is a prebuilt database, the other is to use an API service like

> **[Zip API US - An API for performing various zip code related lookups](https://zipapi.us)**
>
> Zip API US - Easiest way to perform city & state lookup.

If you use [zipapi.us](http://zipapi.us), signup for a free account, create a JS API key (not just the API key you get, but JS Key). Then configure it as a custom action. Something like this:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/b/b22c63d379e4b9ff784729fa407d9e84395db404.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/99b5897eb7d20ae4744921a049711adbc25f5948.png)  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/4/400fde2caee6ae2ca879d2b43a2997ab3987052a.png)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [November 24, 2021, 10:36pm UTC](https://forum.adalo.com/t/us-city-state-zip-code-database/19645/3 "2021-11-24T22:36:35Z")

</div>

Closed on November 24, 2021, 10:36pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
