API Documentation

Manomboha mampiasa ny API ampiasainay mora ampiasaina anio, araho ny ohatra hianaranao ny fampiasana azy.




GET Makà kaody paositra ao anatin'ny halavirana

Amin'ity endpoint mora ampiasaina ity dia hahazo ny lisitry ny kaodim-paositra izay ao anatin'ny halaviran-toerana iray. Ny ohatra fangatahana dia hamerina ny lisitry ny kaodim-paositra tsy manam-paharoa, ny lisitry ny kaody paositra ary ny antsipirian'ny kaody paositra tsirairay.

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

Manaiky ny refy halaviran-kilaometatra (Default) na kilaometatra ny API anay.

Mba hanovana ny refy ho kilometatra dia tsy maintsy apetrakao ny ms amin'ny fangatahanao:

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

Ho toy izao ny valiny:

{
   "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 Makà pitsopitsony kaody paositra

Ity ohatra manaraka ity dia hamerina ny antsipirian'ny kaodim-paositra izay mifanaraka amin'ny fangatahana fikarohana.

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

Ho toy izao ny valiny:

{
   "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 Makà angona manokana

Azonao atao ny handeha fanampiny params mba hahazo afa-tsy izay ilainao eo amin'ny vokatra, fa ilaina fotsiny manampy fields ao ny fangatahanao.

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

Ho toy izao ny valiny:

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



Manomboha mampiasa ny API anay maimaim-poana anio!

Makà fangatahana maimaim-poana 240 isan'andro

+94 Firenena tohana

AD (Andorra)
AR (Arzantina)
AS (American Samoa)
AT (Aotrisy)
AU (Aostralia)
AX (Aland Islands)
AZ (Azerbaijan)
BD (Bangladesy)
BE (Belzika)
BG (Bolgaria)
BM (Bermudes)
BR (Brezila)
Flag of Belarus
BY (Belarosia)
CA (Kanada)
CH (Soisa)
CL (Shily)
CO (Kolombia)
CR (Costa Rica)
CY (Sipra)
CZ (Repoblika Tcheky)
Flag of Germany
DE (Alemaina)
DK (Danemark)
DO (Repoblika Dominikanina)
DZ (Alzeria)
EE (Estonia)
ES (Espaina)
FI (Failandy)
FM (Mikrônezia)
FO (Nosy Faroe)
FR (Frantsa)
GB (fanjakana Mitambatra)
GF (Guyane frantsay)
GG (Guernsey sy Alderney)
GL (Groenlandy)
GP (Guadeloupe)
GT (Guatemala)
GU (Guam)
HR (Kroaty (Hrvatska))
HU (Hongria)
IE (Irlandy)
IM (Man (Isle of))
IN (India)
IS (Islandy)
IT (Italia)
JE (Jersey)
JP (Japana)
Flag of South Korea
KR (Korea Atsimo)
LI (Liechtenstein)
LK (Sri Lanka)
LT (Litoania)
LU (Luxembourg)
LV (Letonia)
MC (Monaco)
MD (Moldavia)
Flag of the Marshall Islands
MH (Nosy Marshall)
MK (Makedonia)
MP (Nosy Mariana Avaratra)
MQ (Martinique)
MT (Malta)
Flag of Malawi
MW (Malawi)