Imibhalo ye-API

Qala ukusebenzisa i-API yethu elula yokusebenzisa namuhla, landela izibonelo ukuze ufunde ukuthi ungayisebenzisa kanjani.




GET Thola amakhodi weposi ebangeni

Ngalesi siphetho esilula sokusebenzisa uzothola uhlu lwamakhodi weposi aphakathi kwebanga elinikeziwe. Isibonelo sesicelo sizobuyisa uhlu lwamakhodi weposi ayingqayizivele, uhlu oluphelele lwamakhodi eposi nemininingwane yekhodi ngayinye yeposi.

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

I-API yethu yemukela izilinganiso zamabanga ngamakhilomitha (Okuzenzakalelayo) noma ngamamayela.

Ukuze ushintshe isilinganiso sibe ngamakhilomitha kufanele ufake ipharamitha ye- ms

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

Impendulo izobukeka kanjena:

{
   "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 Thola imininingwane yamakhodi eposi

Isibonelo esilandelayo sizobuyisa imininingwane yamakhodi eposi afana nombuzo wosesho.

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

Impendulo izobukeka kanjena:

{
   "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 Thola idatha yangokwezifiso

Ungadlulisa amapharamitha angeziwe ukuthola okudingayo kuphela emiphumeleni, vele ungeze fields zamanani esicelweni sakho.

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

Impendulo izobukeka kanjena:

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



Qala ukusebenzisa i-API yethu mahhala namuhla!

Thola izicelo zamahhala ezingama-240 nsuku zonke

+94 Amazwe asekelwayo

AD (Andorra)
AR (I-Argentina)
AS (I-American Samoa)
AT (E-Austria)
AU (E-Australia)
AX (I-Aland Islands)
AZ (Azerbaijan)
BD (I-Bangladesh)
BE (Belgium)
BG (Bulgaria)
BM (I-Bermuda)
BR (I-Brazil)
Flag of Belarus
BY (I-Belarus)
CA (Canada)
CH (ESwitzerland)
CL (I-Chile)
CO (I-Colombia)
CR (I-Costa Rica)
CY (I-Cyprus)
CZ (I-Czech Republic)
Flag of Germany
DE (EJalimane)
DK (Denmark)
DO (i-Dominican Republic)
DZ (I-Algeria)
EE (Estonia)
ES (ESpain)
FI (Finland)
FM (Micronesia)
FO (Iziqhingi zaseFaroe)
FR (EFrance)
GB (i-United Kingdom)
GF (I-French Guiana)
GG (UGernsey no-Alderney)
GL (IGreenland)
GP (I-Guadeloupe)
GT (I-Guatemala)
GU (I-Guam)
HR (I-Croatia (Hrvatska))
HU (Hungary)
IE (Ireland)
IM (Umuntu (Isle of))
IN (I-India)
IS (I-Iceland)
IT (Italy)
JE (Jersey)
JP (I-Japan)
Flag of South Korea
KR (Korea South)
LI (Liechtenstein)
LK (i-Sri Lanka)
LT (I-Lithuania)
LU (Luxembourg)
LV (I-Latvia)
MC (Monaco)
MD (Moldova)
Flag of the Marshall Islands
MH (I-Marshall Islands)
MK (Macedonia)
MP (I-Northern Mariana Islands)
MQ (I-Martinique)
MT (Malta)
Flag of Malawi
MW (IMalawi)
MX (Mexico)
MY (Malaysia)
Flag of New Caledonia
NC (I-Caledonia entsha)
NL (Netherlands The)
NO (ENorway)
NZ (E-New Zealand)
PE (Peru)
Flag of the Philippines Coding according to the official "description and specification of the FILIPINO flag" in Executive Order No. 23 from 1936
PH (Philippines)
Flag of Pakistan
PK (EPakistan)
PL (I-Poland)
PM (Saint Pierre noMiquelon)
the star is in the center of gravity of the triangle, so the x-pos is irrational (tan(30 deg) * 15)
PR (E-Puerto Rico)
PT (EPortugal)
PW (Palau)
RE (Reunion)
RO (I-Romania)
RS (ESerbia)
RU (I-Russia)
SE (Sweden)
SG (ESingapore)
Flag of Slovenia
SI (I-Slovenia)
SJ (Iziqhingi zaseSvalbard naseJan Mayen)
Flag of Slovakia
SK (ISlovakia)
SM (I-San Marino)
TH (Thailand)
TR (igalikuni)
UA (Ukraine)
US (iziwe Ezihlangene)
Flag of Uruguay
UY (I-Uruguay)
Flag of Vatican City
VA (I-Vatican City State (i-Holy See))
VI (Iziqhingi zaseVirgin (US))
WF (Iziqhingi zase-Wallis ne-Futuna)
YT (I-Mayotte)
ZA (Iningizimu Afrika)