Iikhowudi zePosi API-UkuFikelela kwiDatha yeKhowudi yeHlabathi yeDilesi

Khangela iikhowudi zeposi, fumana zonke iikhowudi zeposi zomgama webanga kunye nokunye okuninzi ngekhowudi yethu yeposi API.

Idatha ebanzi yeHlabathi
94+ Amazwe
{
   "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






Kulula ukuyisebenzisa i-API

Iiposikhowudi.app sisixhobo esikuvumela ukuba ufumane ulwazi ngeekhowudi ezahlukeneyo zeposi kwihlabathi liphela. Unokufumana iikhowudi zeposi kumgama omde ngeekhilomitha okanye iimayile, okanye ufumane iinkcukacha zekhowudi yeposi ngokubanzi.

GET Fumana iikhowudi zeposi kumgama

Ngale ndlela kulula ukuyisebenzisa yokuphela uyakufumana uluhlu lweekhowudi zePosi ezikumgama othile. Umzekelo wesicelo uza kubuyisa uluhlu lweekhowudi zeposi ezizodwa, uluhlu olupheleleyo lweekhowudi zeposi kunye neenkcukacha zekhowudi nganye yeposi.

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

I-API yethu yamkela imilinganiselo yomgama ngeekhilomitha (Okwendalo) okanye iimayile.

Ukutshintsha umlinganiso weekhilomitha kufuneka ubeke i- ms parameter kwisicelo sakho:

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

Impendulo iya kubonakala ngathi:

{
   "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 Fumana iinkcukacha zekhowudi yeposi

Umzekelo olandelayo uza kubuyisa iinkcukacha zeekhowudi zeposi ezihambelana nombuzo wokukhangela.

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

Impendulo iya kubonakala ngathi:

{
   "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 Fumana idatha yesiko

Uyakwazi kudlule params kratya ukufumana nje oko kukwaneleyo kwiziphumo, ukongeza nje ixabiso fields kwi isicelo sakho.

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

Impendulo iya kubonakala ngathi:

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



+94 Amazwe axhaswayo

AD (Andora)
AR (Ajentina)
AS (American Samoa)
AT (Ostriya)
AU (Ostreliya)
AX (Aland Islands)
AZ (Azerbayijani)
BD (Bhangladeshi)
BE (Bheljiyam)
BG (Bhulgariya)
BM (Bhermuda)
BR (Brazil)
Flag of Belarus
BY (Bhelarusi)
CA (Khanada)
CH (Swizalend)
CL (Tshile)
CO (Kholambiya)
CR (icosta Rica)
CY (Sayiprasi)
CZ (Umphakathi waseCzech)
Flag of Germany
DE (Jemani)
DK (Dominikha)
DO (ilizwe lasedominic)
DZ (Aljeriya)
EE (Estoniya)
ES (Speyin)
FI (Finlend)
FM (Mikhroneshiya)
FO (Faroe Islands)
FR (Fransi)
GB (Izikumkani Ezimanyene)
GF (French Guiana)
GG (Guernsey noAlderney)
GL (Grinlend)
GP (Guadeloupe)
GT (Guwatamela)
GU (Guwam)
HR (Croatia (Hrvatska))
HU (Hangari)
IE (Ayalend)
IM (Umntu (Isle of))
IN (Indiya)
IS (Ayisilend)
IT (ElamaTaliyane)
JE (Jersey)
JP (Japhan)
Flag of South Korea
KR (Korea yaseMzantsi)
LI (Likhtensteyin)
LK (esri Lanka)
LT (Lithuwaniya)
LU (Laksembheg)
LV (Lathviya)
MC (Monakho)
MD (Moldova)
Flag of the Marshall Islands
MH (Isiqithi saseMashal)
MK (Masedoniya)
MP (Isiqithi saseMariyana eseMantla)
MQ (Martinique)
MT (Maltha)
Flag of Malawi
MW (Malawi)