Skip to content

Latest commit

 

History

History

zipcodebase

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Description

Lookup postal codes, calculate distances and much more with our free zip code api.

Example Request

  • Curl
curl "https://app.zipcodebase.com/api/v1/search?apikey={{token}}&codes=10005%2C51503"
  • Raw
GET /api/v1/search?apikey={{token}}&codes=10005%2C51503 HTTP/1.1
Host: app.zipcodebase.com
...

Response

  • Success
{
   "query":{
      "codes":[
         "10005",
         "51503"
      ],
      "country":null
   },
   "results":{
      "10005":[
         {
            "postal_code":"10005",
            "country_code":"DZ",
            "latitude":"36.26960000",
            "longitude":"3.66360000",
            "city":"Ouled Zidane",
            "state":"Bouira",
            "state_code":"10",
            "province":null,
            ...
}
  • Error
{
    "error":"Not enough requests."
}

Regex

[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}

Example API key

da3ec69e-bdc3-8f07-b5e3-6521c026d4be