Awọn koodu Ifiweranṣẹ API - Wiwọle si Data Koodu Ifiweranṣẹ ni kariaye

Lookup awọn koodu ifiweranse, gba gbogbo awọn koodu ifiweranse aaye jijin ati pupọ diẹ sii pẹlu koodu ifiweranse API wa.

Data jakejado agbaye
94+ Awọn orilẹ-ede
{
   "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






Rọrun lati lo API

PostalCodes.app jẹ ohun elo ti o fun laaye laaye lati gba alaye lori oriṣiriṣi awọn koodu ifiweranse ni ayika agbaye. O le gba awọn koodu ifiweranse ni ibiti o jinna ni awọn ibuso tabi awọn maili, tabi gba awọn alaye ti koodu ifiweranse ni apapọ.

GET Gba awọn koodu ifiweranse laarin ijinna kan

Pẹlu irọrun yii lati lo opin opin iwọ yoo gba atokọ ti awọn koodu Ifiweranṣẹ ti o wa laarin aaye ti a fifun. Apẹẹrẹ ibeere yoo pada atokọ ti awọn koodu ifiweranse alailẹgbẹ, atokọ pipe ti awọn koodu ifiweranse ati awọn alaye ti koodu ifiweranse kọọkan.

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

API wa gba awọn wiwọn ijinna ni awọn ibuso (Aiyipada) tabi awọn maili.

Lati yipada wiwọn si awọn ibuso o gbọdọ fi ms ninu ibeere rẹ:

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

Idahun naa yoo dabi eleyi:

{
   "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 Gba awọn alaye awọn koodu ifiweranse

Apẹẹrẹ atẹle yoo pada awọn alaye ti awọn koodu ifiweranse ti o baamu pẹlu ibeere wiwa.

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

Idahun naa yoo dabi eleyi:

{
   "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 Gba data aṣa

O le kọja awọn params afikun lati gba nikan ohun ti o nilo ninu awọn abajade, kan ṣafikun awọn fields iye ni ibeere rẹ.

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

Idahun naa yoo dabi eleyi:

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



+94 Awọn orilẹ-ede ti o ni atilẹyin

AD (Andorra)
AR (Argentina)
AS (Amẹrika Amẹrika)
AT (Austria)
AU (Australia)
AX (Aland Islands)
AZ (Azerbaijan)
BD (Bangladesh)
BE (Bẹljiọmu)
BG (Bulgaria)
BM (Bermuda)
BR (Brazil)
Flag of Belarus
BY (Belarus)
CA (Kanada)
CH (Siwitsalandi)
CL (Chile)
CO (Columbia)
CR (Costa Rica)
CY (Cyprus)
CZ (Apapọ Ilẹ Ṣẹẹki)
Flag of Germany
DE (Jẹmánì)
DK (Denmark)
DO (orilẹ-ede ara Dominika)
DZ (Algeria)
EE (Estonia)
ES (Spain)
FI (Finland)
FM (Micronesia)
FO (Faroe Islands)
FR (France)
GB (apapọ ijọba Gẹẹsi)
GF (French Guiana)
GG (Guernsey ati Alderney)
GL (Greenland)
GP (Guadelupe)
GT (Guatemala)
GU (Guam)
HR (Croatia (Awọn orilẹ-ede))
HU (Hungary)
IE (Ireland)
IM (Eniyan (Isle ti))
IN (India)
IS (Iceland)
IT (Italy)
JE (Jersey)
JP (Japan)
Flag of South Korea
KR (Korea South)
LI (Liechtenstein)
LK (Siri Lanka)
LT (Lithuania)
LU (Luxembourg)
LV (Latvia)
MC (Monaco)
MD (Moludofa)
Flag of the Marshall Islands
MH (Awọn Ilẹ Marshall)
MK (Makedonia)
MP (Northern Mariana Islands)
MQ (Martinique)
MT (Malta)
Flag of Malawi
MW (Malawi)