Ihe ederede API

Bido jiri mfe anyị iji API taa, soro ihe atụ iji mụta otu esi eji ya.




GET Nweta Koodu Nzipu Ozi n'ime anya

N'iji mfe iji njedebe, ị ga - enweta ndepụta nke koodu nzi ozi ndị dị n'ime anya. Ihe atụ arịrịọ ahụ ga-eweghachite ndepụta nke koodu nzi pụrụ iche, ndepụta zuru oke nke koodu nzi ozi na nkọwa nke koodu nzi ọ bụla.

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

API anyị na-anabata nha anya na kilomita (Ndi an-kpọ) ma ọ bụ kilomita.

Changegbanwe nha rue kilomita ị ga-etinye ms na arịrịọ gị:

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

Nzaghachi ga-adị ka nke a:

{
   "query":{
      "code": "10005",
      "country": "US",
      "range": "25",
      "measure": ""
   },
   "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 Nweta Koodu nzi ozi nkọwa

Ihe atụ na-esote ga-alọghachi nkọwa nke koodu nzi ozi dabara na ajụjụ ọchụchọ.

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

Nzaghachi ga-adị ka nke a:

{
   "query":{
      "code": "10005",
      "country": "us",
      "range": "",
      "measure": ""
   },
   "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 Nweta data omenala

Ị nwere ike gafee extra params inweta naanị ihe dị gị mkpa na ihe, dị nnọọ tinye uru fields na gị arịrịọ.

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

Nzaghachi ga-adị ka nke a:

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



Bido iji API anyị n'efu taa!

Nweta 240 arịrịọ n'efu kwa ụbọchị

+94 Mba ndị akwadoro

AD (Andorra)
AR (Argentina)
AS (American Samoa)
AT (Austria)
AU (Australia)
AX (Aland Islands)
AZ (Azerbaijan)
BD (Bangladesh)
BE (Belgium)
BG (Bulgaria)
BM (Bermuda)
BR (Brazil)
Flag of Belarus
BY (Belarus)
CA (Canada)
CH (Switzerland)
CL (Chile)
CO (Colombia)
CR (Costa Rica)
CY (Cyprus)
CZ (Czech Republic)
Flag of Germany
DE (Germany)
DK (Denmark)
DO (Dominican Republic)
DZ (Algeria)
EE (Estonia)
ES (Spain)
FI (Finland)
FM (Micronesia)
FO (Faroe Islands)
FR (France)
GB (United Kingdom)
GF (Guiana French)
GG (Guernsey na Alderney)
GL (Greenland)
GP (Guadeloupe)
GT (Guatemala)
GU (Guam)
HR (Croatia (UK))
HU (Hungary)
IE (Ireland)
IM (Nwoke (Isle nke))
IN (India)
IS (Iceland)
IT (Italy)
JE (Jersey)
JP (Japan)
Flag of South Korea
KR (Korea South)
LI (Liechtenstein)
LK (Sri Lanka)
LT (Lithuania)
LU (Luxembourg)
LV (Latvia)
MC (Monaco)
MD (Moldova)
Flag of the Marshall Islands
MH (Islands Marshall)
MK (Macedonia)
MP (Northern Mariana Islands)
MQ (Martinique)
MT (Malta)
Flag of Malawi
MW (Malawi)