Cóid Phoist API - Rochtain ar Shonraí Cód Poist ar fud an Domhain

Cuardaigh cóid poist, faigh gach cód poist achar achair agus i bhfad níos mó lenár API cód poist.

Sonraí ar fud an domhain
94+ Tíortha
{
   "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 éasca le húsáid

Is uirlis é PostalCodes.app a ligeann duit faisnéis a fháil faoi chóid poist éagsúla ar fud an domhain. Féadfaidh tú cóid poist a fháil i raon achair i gciliméadair nó míle, nó sonraí cód poist a fháil i gcoitinne.

GET Faigh cóid poist laistigh d’achar

Leis an gcríochphointe seo atá éasca le húsáid gheobhaidh tú liosta de chóid poist atá laistigh d’achar áirithe. Seolfaidh an sampla iarrata liosta de chóid poist uathúla, liosta iomlán de chóid poist agus sonraí gach cód poist.

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

Glacann ár API tomhais achair i gciliméadair (Réamhshocraithe) nó míle.

Chun an tomhas a athrú go ciliméadair ní mór duit an ms a chur i d’iarratas:

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

Beidh an freagra mar seo:

{
   "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 Faigh sonraí na gcód poist

Seolfaidh an sampla seo a leanas sonraí na gcód poist a mheaitseálann leis an gceist chuardaigh.

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

Beidh an freagra mar seo:

{
   "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 Faigh sonraí saincheaptha

Féadfaidh tú params breise a rith chun na rudaí a theastaíonn uait sna torthaí a fháil, ach cuir na fields luacha i d’iarratas.

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

Beidh an freagra mar seo:

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



+94 Tíortha le tacaíocht

AD (Andóra)
AR (An Airgintín)
AS (Samó Meiriceánach)
AT (An Ostair)
AU (An Astráil)
AX (Oileáin Aland)
AZ (An Asarbaiseáin)
BD (An Bhanglaidéis)
BE (An Bheilg)
BG (An Bhulgáir)
BM (Beirmiúda)
BR (An Bhrasaíl)
Flag of Belarus
BY (An Bhealarúis)
CA (Ceanada)
CH (An Eilvéis)
CL (An tSile)
CO (An Cholóim)
CR (Costa Rica)
CY (An Chipir)
CZ (Poblacht na Seice)
Flag of Germany
DE (An Ghearmáin)
DK (An Danmhairg)
DO (An Phoblacht Dhoiminiceach)
DZ (An Ailgéir)
EE (An Eastóin)
ES (an Spáinn)
FI (An Fhionlainn)
FM (Micrinéise)
FO (Oileáin Fharó)
FR (An Fhrainc)
GB (an Ríocht Aontaithe)
GF (Guáin na Fraince)
GG (Geansaí agus Alderney)
GL (An Ghraonlainn)
GP (Guadalúip)
GT (Guatamala)
GU (Guam)
HR (Croatia (Hrvatska))
HU (An Ungáir)
IE (Éireann)
IM (Man (Oileán))
IN (An India)
IS (An Íoslainn)
IT (An Iodáil)
JE (Jersey)
JP (An tSeapáin)
Flag of South Korea
KR (An Chóiré Theas)
LI (Lichtinstéin)
LK (Srí Lanca)
LT (An Liotuáin)
LU (Lucsamburg)
LV (An Laitvia)
MC (Monacó)
MD (An Mholdóiv)
Flag of the Marshall Islands
MH (Oileáin Marshall)
MK (Macadóine)
MP (Oileáin Thuaisceart Mariana)
MQ (Martinique)
MT (Málta)
Flag of Malawi
MW (An Mhaláiv)