Posta Kodeen APIa - Mundu mailako Posta Kodearen Datuetarako sarbidea

Bilatu posta-kodeak, lortu posta-kodeen distantzia eta askoz gehiago gure posta-kodearen APIarekin.

Mundu osoko datuak
94+ Herrialdeak
{
   "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






Erraza erabiltzeko APIa

PostalCodes.app mundu osoko posta kode ezberdinei buruzko informazioa lortzeko aukera ematen duen tresna da. Kilometro edo miliatako distantziako posta-kodeak lor ditzakezu edo, oro har, posta-kodearen xehetasunak lor ditzakezu.

GET Lortu posta-kodeak distantzia batera

Erabilera erraza duen amaiera honekin distantzia jakin batera dauden posta-kodeen zerrenda lortuko duzu. Eskaeraren adibideak posta-kode bakarren zerrenda, posta-kodeen zerrenda osoa eta posta-kode bakoitzaren datuak itzuliko ditu.

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

Gure APIak distantzien neurketak kilometrotan (lehenetsia) edo miliatan onartzen ditu.

Neurketa kilometrora aldatzeko ms parametroa jarri behar duzu zure eskaeran:

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

Erantzunak itxura hau izango du:

{
   "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 Lortu posta kodeen xehetasunak

Ondorengo adibideak bilaketa-kontsultarekin bat datozen posta-kodeen xehetasunak itzuliko ditu.

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

Erantzunak itxura hau izango du:

{
   "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 Lortu datu pertsonalizatuak

Parametro gehigarriak pasa ditzakezu emaitzetan behar duzuna soilik lortzeko, gehitu zure eskaeran fields

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

Erantzunak itxura hau izango du:

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



+94 Lagundutako herrialdeak

AD (Andorra)
AR (Argentina)
AS (Amerikar Samoa)
AT (Austria)
AU (Australia)
AX (Aland uharteak)
AZ (Azerbaijan)
BD (Bangladesh)
BE (Belgikan)
BG (Bulgaria)
BM (Bermuda)
BR (Brasil)
Flag of Belarus
BY (Bielorrusiako)
CA (Kanadan)
CH (Suitzan)
CL (Chile)
CO (Kolonbian)
CR (Costa Rica)
CY (Txipre)
CZ (Txekiar Errepublika)
Flag of Germany
DE (Alemanian)
DK (Danimarka)
DO (Dominikar Errepublika)
DZ (Algeria)
EE (Estonia)
ES (Espainiako)
FI (Finlandia)
FM (Micronesia)
FO (Faroe uharteak)
FR (France)
GB (Erresuma Batua)
GF (Guyana Frantsesa)
GG (Guernsey eta Alderney)
GL (Groenlandia)
GP (Guadalupe)
GT (Guatemala)
GU (Guam)
HR (Kroazia (Hrvatska))
HU (Hungaria)
IE (Irlandan)
IM (Man (Isle of))
IN (India)
IS (Islandia)
IT (Italian)
JE (Jersey)
JP (Japonian)
Flag of South Korea
KR (Korea hegoaldean)
LI (Liechtenstein)
LK (Sri Lanka)
LT (Lituania)
LU (Luxenburgoko)
LV (Letonia)
MC (Monakon)
MD (Moldaviako)
Flag of the Marshall Islands
MH (Marshall Uharteak)
MK (Mazedonia)
MP (Iparraldeko Mariana Uharteak)
MQ (Martinika)
MT (Malta)
Flag of Malawi
MW (Malawi)