all-about-apikey/zipcodebase
Muhammad Daffa 2eba183f8b Added 13 templates 2022-08-18 14:40:21 +07:00
..
README.md Added 13 templates 2022-08-18 14:40:21 +07:00

README.md

Zipcodebase

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