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

  1. Back4App
  2. ✉️ Zip and Postal Codes of All Countries
Public

0
932
0
932
  • 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. ✉️ Zip and Postal Codes of All Countries

This is a comprehensive database with the Zip Codes of the countries of the world.

  • Swift
  • Android
  • Zip Code API
  • Dataset
  • REST
  • API
  • Java
  • Zip Code
  • Objective-C
  • JSON
  • Database
  • Python
  • PHP
  • Zip Codes by Country
  • Postal Code
  • Data Source
  • world
  • List
  • Open-Source
  • NodeJS
  • Javascript
  • Kotlin
  • GraphQL

Get StartedFetch Data
ClassClassesDescription
ClassAD
Dataset and API with a list of the Zip Codes / Postal Codes of Andorra.
ClassAR
Dataset and API with a list of the Zip Codes / Postal Codes of Argentina.
ClassAS
Dataset and API with a list of the Zip Codes / Postal Codes of American Samoa.
ClassAT
Dataset and API with a list of the Zip Codes / Postal Codes of Austria.
ClassAU
Dataset and API with a list of the Zip Codes / Postal Codes of Australia.
ClassAX
Dataset and API with a list of the Zip Codes / Postal Codes of Aland Islands.
ClassAZ
Dataset and API with a list of the Zip Codes / Postal Codes of Azerbaijan.
ClassBD
Dataset and API with a list of the Zip Codes / Postal Codes of Bangladesh.
ClassBE
Dataset and API with a list of the Zip Codes / Postal Codes of Bulgaria.
ClassBG
Dataset and API with a list of the Zip Codes / Postal Codes of Bulgaria.
ClassBM
Dataset and API with a list of the Zip Codes / Postal Codes of Bermuda.
ClassBR
Dataset and API with a list of the Zip Codes / Postal Codes of Brazil.
ClassBY
Dataset and API with a list of the Zip Codes / Postal Codes of Belarus.
ClassCA
Dataset and API with a list of the Zip Codes / Postal Codes of Canada.
ClassCH
Dataset and API with a list of the Zip Codes / Postal Codes of Switzerland.
ClassCL
Dataset and API with a list of the Zip Codes / Postal Codes of Chile.
ClassCO
Dataset and API with a list of the Zip Codes / Postal Codes of Colombia.
ClassCR
Dataset and API with a list of the Zip Codes / Postal Codes of Costa Rica.
ClassCZ
Dataset and API with a list of the Zip Codes / Postal Codes of Czechia.
ClassDE
Dataset and API with a list of the Zip Codes / Postal Codes of Germany.
ClassDK
Dataset and API with a list of the Zip Codes / Postal Codes of Denmark.
ClassDO
Dataset and API with a list of the Zip Codes / Postal Codes of Dominican Republic.
ClassDZ
Dataset and API with a list of the Zip Codes / Postal Codes of Algeria.
ClassEE
Dataset and API with a list of the Zip Codes / Postal Codes of Estonia.
ClassES
Dataset and API with a list of the Zip Codes / Postal Codes of Spain.
ClassFI
Dataset and API with a list of the Zip Codes / Postal Codes of Finland.
ClassFM
Dataset and API with a list of the Zip Codes / Postal Codes of Micronesia.
ClassFO
Dataset and API with a list of the Zip Codes / Postal Codes of Faroe Islands.
ClassFR
Dataset and API with a list of the Zip Codes / Postal Codes of France.
ClassGF
Dataset and API with a list of the Zip Codes / Postal Codes of French Guiana.
ClassGG
Dataset and API with a list of the Zip Codes / Postal Codes of Guernsey.
ClassGL
Dataset and API with a list of the Zip Codes / Postal Codes of Greenland.
ClassGP
Dataset and API with a list of the Zip Codes / Postal Codes of Guadeloupe.
ClassGT
Dataset and API with a list of the Zip Codes / Postal Codes of Guatemala.
ClassGU
Dataset and API with a list of the Zip Codes / Postal Codes of Guam.
ClassHR
Dataset and API with a list of the Zip Codes / Postal Codes of Croatia.
ClassHU
Dataset and API with a list of the Zip Codes / Postal Codes of Hungary.
ClassIE
Dataset and API with a list of the Zip Codes / Postal Codes of Ireland.
ClassIM
Dataset and API with a list of the Zip Codes / Postal Codes of Isle of Man.
ClassIN
Dataset and API with a list of the Zip Codes / Postal Codes of India.
ClassIS
Dataset and API with a list of the Zip Codes / Postal Codes of Iceland.
ClassIT
Dataset and API with a list of the Zip Codes / Postal Codes of Italy.
ClassJE
Dataset and API with a list of the Zip Codes / Postal Codes of Jersey.
ClassKR
Dataset and API with a list of the Zip Codes / Postal Codes of Korea.
ClassLI
Dataset and API with a list of the Zip Codes / Postal Codes of Liechtenstein.
ClassLK
Dataset and API with a list of the Zip Codes / Postal Codes of Sri Lanka.
ClassLT
Dataset and API with a list of the Zip Codes / Postal Codes of Lithuania.
ClassLU
Dataset and API with a list of the Zip Codes / Postal Codes of Luxembourg.
ClassLV
Dataset and API with a list of the Zip Codes / Postal Codes of Latvia.
ClassMC
Dataset and API with a list of the Zip Codes / Postal Codes of Monaco.
ClassMD
Dataset and API with a list of the Zip Codes / Postal Codes of Moldova.
ClassMH
Dataset and API with a list of the Zip Codes / Postal Codes of Marshall Islands.
ClassMK
Dataset and API with a list of the Zip Codes / Postal Codes of North Macedonia.
ClassMP
Dataset and API with a list of the Zip Codes / Postal Codes of Northern Mariana Islands.
ClassMQ
Dataset and API with a list of the Zip Codes / Postal Codes of Martinique.
ClassMT
Dataset and API with a list of the Zip Codes / Postal Codes of Malta.
ClassMW
Dataset and API with a list of the Zip Codes / Postal Codes of Malawi.
ClassMX
Dataset and API with a list of the Zip Codes / Postal Codes of Mexico.
ClassMY
Dataset and API with a list of the Zip Codes / Postal Codes of Malaysia.
ClassNC
Dataset and API with a list of the Zip Codes / Postal Codes of New Caledonia.
ClassNL
Dataset and API with a list of the Zip Codes / Postal Codes of the Netherlands (Holland)
ClassNO
Dataset and API with a list of the Zip Codes / Postal Codes of Norway.
ClassNZ
Dataset and API with a list of the Zip Codes / Postal Codes of New Zealand.
ClassPH
Dataset and API with a list of the Zip Codes / Postal Codes of Philippines.
ClassPK
Dataset and API with a list of the Zip Codes / Postal Codes of Pakistan.
ClassPL
Dataset and API with a list of the Zip Codes / Postal Codes of Poland.
ClassPM
Dataset and API with a list of the Zip Codes / Postal Codes of Saint Pierre and Miquelon.
ClassPR
Dataset and API with a list of the Zip Codes / Postal Codes of Philippines.
ClassPT
Dataset and API with a list of the Zip Codes / Postal Codes of Portugal.
ClassPW
Dataset and API with a list of the Zip Codes / Postal Codes of Puerto Rico.
ClassRE
Dataset and API with a list of the Zip Codes / Postal Codes of Reunion.
ClassRO
Dataset and API with a list of the Zip Codes / Postal Codes of Romania.
ClassRS
Dataset and API with a list of the Zip Codes / Postal Codes of Serbia.
ClassRU
Dataset and API with a list of the Zip Codes / Postal Codes of Russia.
ClassSE
Dataset and API with a list of the Zip Codes / Postal Codes of Sweden.
ClassSG
Dataset and API with a list of the Zip Codes / Postal Codes of Singapore.
ClassSI
Dataset and API with a list of the Zip Codes / Postal Codes of Slovenia.
ClassSJ
Dataset and API with a list of the Zip Codes / Postal Codes of Svalbard and Jan Mayen.
ClassSK
Dataset and API with a list of the Zip Codes / Postal Codes of Slovakia.
ClassSM
Dataset and API with a list of the Zip Codes / Postal Codes of San Marino.
ClassTH
Dataset and API with a list of the Zip Codes / Postal Codes of Thailand.
ClassTR
Dataset and API with a list of the Zip Codes / Postal Codes of Turkey.
ClassUA
Dataset and API with a list of the Zip Codes / Postal Codes of Ukraine.
ClassUS
Dataset and API with a list of the Zip Codes / Postal Codes of United States.
ClassUY
Dataset and API with a list of the Zip Codes / Postal Codes of Uruguay.
ClassVA
Dataset and API with a list of the Zip Codes / Postal Codes of Holy See (Vatican).
ClassVI
Dataset and API with a list of the Zip Codes / Postal Codes of Virgin Islands.
ClassWF
Dataset and API with a list of the Zip Codes / Postal Codes of Wallis and Futuna.
ClassYT
Dataset and API with a list of the Zip Codes / Postal Codes of Mayotte.
ClassZA
Dataset and API with a list of the Zip Codes / Postal Codes of South Africa.
NotesNotes

List of World Zip Codes / Postal Codes

This is a comprehensive database with data about the post office codes for all countries in the world. Each dataset represents a country and has the following information available.

  • Zip Code Number in a String format
  • Place Name in a String format
  • Geolocation in a Geopoint format
  • Geolocation Accuracy in a String format
  • Admin Code in a String format
  • Admin Name in a String format

Let's consider a Zip Code from Australia as an example. The data provided will look like this:

  • Zip Code Number: 0200
  • Place Name: Australian National University
  • Geolocation: (-35.2777, 149.1189)
  • Geolocation Accuracy: 1
  • Admin Code in a String format: ACT
  • Admin Name in a String format: Australian Capital Territory

Last Update

February, 26, 2020

Data Source

This database was extracted from http://www.geonames.org/.

License

This work is licensed under a Creative Commons Attribution 4.0 License.

Database Definitions

  • country code : iso country code, 2 characters
  • postal code : varchar(20)
  • place name : varchar(180)
  • admin name1 : 1. order subdivision (state) varchar(100)
  • admin code1 : 1. order subdivision (state) varchar(20)
  • admin name2 : 2. order subdivision (county/province) varchar(100)
  • admin code2 : 2. order subdivision (county/province) varchar(20)
  • admin name3 : 3. order subdivision (community) varchar(100)
  • admin code3 : 3. order subdivision (community) varchar(20)
  • latitude : estimated latitude (wgs84)
  • longitude : estimated longitude (wgs84)
  • accuracy : accuracy of lat/lng from 1=estimated, 4=geonameid, 6=centroid of addresses or shape

Designed for developers

Easy to use API available! Using this database a developer is able to:

  • Consume the API in a REST or GraphQl format
  • Connect any application to the database
  • Clone and make changes to the database

Benefits for a developer

  • Read to use data available
  • Insert data on autocomplete forms
  • One API Key is able to connect to multiple data sources
  • Receive regular data updates

Get Started and Fetch Data

  • 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

Query Examples

Example 1: List all Zip Codes in Denmark

You need to go to the API Playground and perform a query like this one:

query allDKS {
      dKS (skip: 0, limit: 3) {
        results {
          ACL
          accuracy
          adminCode1
          adminCode2
          adminCode3
          adminName1
          adminName2
          adminName3
          countryCode
          createdAt
          geoPosition {
            latitude
            longitude
          }
          id
          placeName
          postalCode
          updatedAt
        }
      }
    }

The result will be:

{
  "data": {
    "dKS": {
      "results": [
        {
          "ACL": null,
          "accuracy": "6",
          "adminCode1": "18",
          "adminCode2": "615",
          "adminCode3": "",
          "adminName1": "Region Midtjylland",
          "adminName2": "Horsens Kommune",
          "adminName3": "",
          "countryCode": "DK",
          "createdAt": "2020-02-21T13:12:51.587Z",
          "geoPosition": {
            "latitude": 55.7573,
            "longitude": 10.271
          },
          "id": "MqO7xFz8Ls",
          "placeName": "Endelave",
          "postalCode": "8789",
          "updatedAt": "2020-02-21T13:12:51.587Z"
        }
      ]
    }

Example 2: Count all Zip Codes in Switzerland

The query will look like this:

query countCHES {
      ches {
        count
      }
    }

The result will be:

{
  "data": {
    "ches": {
      "count": 4356
    }
  }
}

FAQ – Frequently Asked Questions

How can I get an API key?

Getting a key is a simple and straightforward process. Please refer to the Connect Button on the top right hand side of this page. The process has 3 steps:

  • Login
  • Add a name to your app
  • Connect and get the API key

Takes less than 1 minute.

Can I use the same API Key for multiple databases?

Yes, you can integrate several databases under the same API Key.

What can I get for free?

You can use the database for free up to 10k requests per month. More details in our Pricing Page.

What is an API request?

Every moment you execute a call to the database in the name of an application using a SDKs or an API, it counts as an API request. Logins, saves, queries are examples of operations calculated as API requests, among other types of operations.

What API types are supported?

The service works with two different API protocols:

  • GraphQL
  • REST

You can make queries, access, and retrieve data from a public dataset via a GraphQL API. If you clone the database, it’s possible to work with REST or GraphQL APIs.

What SDKs and Libraries are supported?

The list is pretty broad and the most common ones are:

  • iOS
  • Android
  • Javascript
  • Unity

What is Back4app?

Back4app is a BaaS Platform and will support you in facilitating the development and making great apps faster vs. a custom backend.

Please see below other popular databases:

  • List of Continents, Countries, States, and Cities
  • US Zip Codes
  • Brazil Zip Codes