API Kode Pos - Akses ke Data Kode Pos Seluruh Dunia

Cari kode pos, dapatkan semua jarak jangkauan kode pos dan banyak lagi dengan API kode pos kami.

Data di seluruh dunia
94+ negara
{
   "query":{
      "code": "10005",
      "country": "US",
      "range": "25",
      "measure": "mi",
   },
   "results":{
       "range_codes_unique": [
           "07010", 
           "07020", 
           "07022", 
           "07024", 
           "07026", 
           ...
       ],
       "range_codes": [
           "07010", 
           "07020", 
           "07022", 
           "07024", 
           "07026", 
           ...
       ],
       "range_codes_details": [
          {
              "postal_code":"07010",
              "country_code":"US",
              "city":"Cliffside Park",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07020",
              "country_code":"US",
              "city":"Edgewater",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07022",
              "country_code":"US",
              "city":"Fairview",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07024",
              "country_code":"US",
              "city":"Fort Lee",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07026",
              "country_code":"US",
              "city":"Garfield",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
           ...
       ],
   }
}
Postalcodes.app - Access to Worldwide Postal Code data | Product Hunt






API yang mudah digunakan

PostalCodes.app adalah alat yang memungkinkan Anda memperoleh informasi tentang berbagai kode pos di seluruh dunia. Anda bisa mendapatkan kode pos dalam rentang jarak dalam kilometer atau mil, atau mendapatkan rincian kode pos secara umum.

GET Dapatkan kode pos dalam jarak jauh

Dengan titik akhir yang mudah digunakan ini, Anda akan mendapatkan daftar kode pos yang berada dalam jarak tertentu. Contoh permintaan akan mengembalikan daftar kode pos unik, daftar lengkap kode pos dan rincian setiap kode pos.

GET https://postalcodes.app/api/v1/?key=YOUR-APIKEY&distance=25&zipcode=10005&country=us

API kami menerima pengukuran jarak dalam kilometer (Default) atau mil.

Untuk mengubah pengukuran menjadi kilometer, Anda harus memasukkan ms dalam permintaan Anda:

GET https://postalcodes.app/api/v1/?key=YOUR-APIKEY&ms=km&distance=25&zipcode=10005&country=us

Responsnya akan terlihat seperti ini:

{
   "query":{
      "code": "10005",
      "country": "US",
      "range": "25",
      "measure": "mi"
   },
   "results":{
       "range_codes_unique": ["07010", "07020", "07022", "07024", "07026", ...],
       "range_codes": ["07010", "07020", "07022", "07024", "07026", ...],
       "range_codes_details": [
          {
              "postal_code":"07010",
              "country_code":"US",
              "city":"Cliffside Park",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07020",
              "country_code":"US",
              "city":"Edgewater",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07022",
              "country_code":"US",
              "city":"Fairview",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07024",
              "country_code":"US",
              "city":"Fort Lee",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07026",
              "country_code":"US",
              "city":"Garfield",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
           ...
       ],
   }
}

GET Dapatkan detail kode pos

Contoh berikut akan menampilkan detail kode pos yang cocok dengan kueri penelusuran.

GET https://postalcodes.app/api/v1/?key=YOUR-APIKEY&zipcode=10005&country=us

Responsnya akan terlihat seperti ini:

{
   "query":{
      "code": "10005",
      "country": "us",
      "range": "",
      "measure": "mi"
   },
   "results":{
       "range_codes_unique": ["10005"],
       "range_codes": ["10005"],
       "range_codes_details": [
          {
              "postal_code":"10005",
              "country_code":"US",
              "city":"New York",
              "state":"New York",
              "state_code":"NY",
              "province":"New York",
              "province_code":"061"
          }
       ],
   }
}

GET Dapatkan data khusus

Anda dapat memberikan parameter tambahan untuk mendapatkan hanya apa yang Anda butuhkan dalam hasil, cukup tambahkan fields nilai dalam permintaan Anda.

GET https://postalcodes.app/api/v1/?key=YOUR-APIKEY&fields=["range_codes_unique"]&distance=25&zipcode=10005&country=us

Responsnya akan terlihat seperti ini:

{
   "query":{
      "code": "10005",
      "country": "US",
      "range": "25",
      "measure": "mi"
   },
   "results":{
       "range_codes_unique": ["07010", "07020", "07022", "07024", "07026", ...]
   }
}



+94 Negara yang didukung

AD (Andorra)
AR (Argentina)
AS (Samoa Amerika)
AT (Austria)
AU (Australia)
AX (Pulau Aland)
AZ (Azerbaijan)
BD (Bangladesh)
BE (Belgium)
BG (Bulgaria)
BM (Bermuda)
BR (Brazil)
Flag of Belarus
BY (Belarus)
CA (Kanada)
CH (Swiss)
CL (Chili)
CO (Kolumbia)
CR (Kosta Rika)
CY (Siprus)
CZ (Republik Ceko)
Flag of Germany
DE (Jerman)
DK (Denmark)
DO (Republik Dominika)
DZ (Aljazair)
EE (Estonia)
ES (Spanyol)
FI (Finlandia)
FM (Mikronesia)
FO (Kepulauan Faroe)
FR (Perancis)
GB (Kerajaan Inggris)
GF (Guyana Perancis)
GG (Guernsey dan Alderney)
GL (Tanah penggembalaan)
GP (Guadeloupe)
GT (Guatemala)
GU (Guam)
HR (Kroasia (Hrvatska))
HU (Hongaria)
IE (Irlandia)
IM (Man (Isle of))
IN (India)
IS (Islandia)
IT (Italia)
JE (Jersey)
JP (Jepang)
Flag of South Korea
KR (Korea Selatan)
LI (Liechtenstein)
LK (Srilanka)
LT (Lithuania)
LU (Luksemburg)
LV (Latvia)
MC (Monako)
MD (Moldova)
Flag of the Marshall Islands
MH (Pulau Marshall)
MK (Makedonia)
MP (Kepulauan Mariana Utara)
MQ (Martinique)
MT (Malta)
Flag of Malawi
MW (Malawi)