The Database Hub | Back4App
The Database Hub | Back4App
How it works
  • Log In
  • Sign Up

  1. Back4App
  2. ๐Ÿ‡บ๐Ÿ‡ธ US Zip Codes Database
Public

163
320
163
320
  • DatabaseDatabase
  • GraphQL API PlaygroundAPI Playground
  • Get Started GuideGet Started
  • IssuesIssues
  • ContributorsContributors
  • GraphQL API Playground
    API Playground
    Get Started Guide
    Get Started
    Issues
    Issues
    Contributors
    Contributors

  1. ๐Ÿ‡บ๐Ÿ‡ธ US Zip Codes Database

The US Zip Code Database provides the postal codes for all US cities and counties. You can fetch data connecting to a ready-to-use API or download the database. The Zip Code API is available under GraphQL and REST protocols and programming languages like Javascript, PHP, NodeJS, Swift, Dart, etc.

  • Cities
  • Objective-C
  • PHP
  • API
  • Geography
  • Dart
  • iOS
  • United States
  • GIS
  • Postal Code
  • Android
  • Java
  • Counties
  • Database
  • GraphQL API
  • Flutter
  • US Zipcodes
  • Python
  • Zip Code
  • Pin Code
  • NodeJS
  • API State Code
  • REST API
  • Datasets
  • USA
  • Kotlin
  • List

Get StartedFetchย Data
ClassClassesDescription
ClassUS_Zip_Code
Dataset with a list with more than 42,522 USA Zip Codes.
NotesNotes

List of USA - United States Zip Codes

This is a very detailed database with data about the US postal codes. The US Zip Code List covers all 50 states and has one dataset as follows:

  • Dataset with all 47,522 US zip codes

For each Zip Code the user will be able to retrieve the following information:

  • Primary City
  • County
  • US State
  • ZIP Code
  • Area Code
  • Latitude
  • Longitude
  • Population
  • Acceptable Cities
  • Non Acceptable Cities

Examples of data available

  • Zip Codes by State
  • Zip Codes by County
  • Zip Code population
  • Latitude / Longitude by Zip Code

Here is a US Zip Code example:

  • Primary City: Abbeville
  • County: Henry County
  • US State: AL
  • ZIP Code: 36310
  • Area Code: 334
  • Latitude: 31.56
  • Longitude: -85.25
  • Population: 4938
  • Acceptable Cities: N/A
  • Non Acceptable Cities: Lawrenceville

Ready to use APIs

Fetching data of US Zipcode is easy and available via the API protocols below:

  • GraphQL
  • REST

Examples of APIs you can use:

  • Zip code to state API
  • Zip code to city API

What is a Zip Code?

ZIP is an acronym for Zone Improvement Plan. The United States Postal Services (USPS) introduced a postal code service known to the common public as Zip Code all the way back in 1963. Just as the acronym suggests, USPSโ€™ intentions for this code was to allow mails and other products to be sent from one location to another efficiently. USPSโ€™ registration for the word โ€œZip Codeโ€ expired in 1997 and is now being used all over the globe for its original purpose. Here is how the little process is done:

How does ZIP code work?

A ZIP Code is five digits long but is never four or six. It is always a fixed number of digits that changes depending on the location. Each location has a fixed ZIP code that never changes as well. The five digits are broken down into:

  • First digit represents the broader are, from zero to nine. Zero represents the far Northeast, while nine represents the far West.
  • Second and third digits represent the central post office facility of that region. For example, a central post office in Los Angeles will have different second & third digits as compared to a central post office in Springfield.
  • The final two digits of the ZIP code are meant to symbolize the small post office or postal zone. This is usually for post offices in a certain city. A post office in the Faircrest Hills of Los Angeles may have different last two-digit codes as compared to Beverly Hills.

Types of ZIP Code:

Here are four types of ZIP codes, depending on where they are used:

  • Unique โ€“ these are assignment to a single high-volume address, such as a warehouse.
  • Post Office Box-only โ€“ these are assigned to PO Boxes of a certain facility and are only for use by the post office.
  • Military โ€“ special ZIP codes used exclusively by the military for mail.
  • Standard โ€“ the normal ZIP codes that are given to a post office in any region.

Licence

  • Creative Commons 4.0

Data Source

  • Geonames
  • Wikipedia

Made for developers , by developers

Using this dataset a developer will be able to:

  • Connect apps to the database and consume date via an GraphQL API
  • Copy the database, edit and consume data via an REST API
  • Download the database in a JSON or CSV format

Advantages for a developer

  • Save time looking for boilerplate data
  • Save time with our ready to use APIs
  • Connect to multiple dataset with a single API key

Get Started

  • NodeJS - Fetch Data with Node JS Code
  • JavaScript - Fetch Data with Java Script Code
  • Swift - Fetch Data with Apple Swift Code
  • Objective-C - Fetch Data with Apple Objective-C Code
  • Kotlin on Android - Fetch Data with Kotlin on Android
  • Kotlin - Fetch Data with Kotlin
  • Java on Android - Fetch Data with Java on Android
  • PHP - Fetch Data with PHP
  • Python - Fetch Data with Python
  • Java - Fetch Data with Java
  • Flutter - Fetch Data with Flutter
  • Dart - Fetch Data with Dart

Please check more ready to use example in our ZIP Code API Playground

Zip Code for all 50 US States Covered

  • Alabama
  • Alaska
  • Arizona
  • Arkansas
  • California
  • Colorado
  • Connecticut
  • Delaware
  • Florida
  • Georgia
  • Hawaii
  • Idaho
  • Illinois
  • Indiana
  • Iowa
  • Kansas
  • Kentucky
  • Louisiana
  • Maine
  • Maryland
  • Massachusetts
  • Michigan
  • Minnesota
  • Mississippi
  • Missouri
  • Montana
  • Nebraska
  • Nevada
  • New Hampshire
  • New Jersey
  • New Mexico
  • New York
  • North Carolina
  • North Dakota
  • Ohio
  • Oklahoma
  • Oregon
  • Pennsylvania
  • Rhode Island
  • South Carolina
  • South Dakota
  • Tennessee
  • Texas
  • Utah
  • Vermont
  • Virginia
  • Washington
  • West Virginia
  • Wisconsin
  • Wyoming

Frequently Asked Questions

Here are some FAQs you might need to know:

Pricing

All data is free to use. You can consume the API for free up to 10k requests per month. More details in our Pricing Page .

How can I get an API key?

You can get an Application Programming Interface (API) key through the use of these three simple steps:

  • Login to your account.
  • Enter a name of your APIโ€™s app.
  • Connect to the server and get the API key.

Can I use the same API Key for multiple databases?

An API key is merely used to authenticate. Yes, one key can be used for multiple databases.

What is an API request?

An API request is an event where a developer makes a call to the server. You can see the API request by checking the endpoints of any URL.

What API types are supported?

These two API protocols are supported on our platform:

  • GraphQL โ€“ you can make queries, access and retrieve data from a public dataset.
  • REST โ€“ you can get the same services as GraphQL.

So, these were some FAQs which will help you understand different concepts related to API.

Please see below other popular databases:

  • World Continents, Countries, and Cities
  • US States Dataset
  • CIP - Classification of Instructional Programs