Tokomane ea API

Qala ho sebelisa API ea rona e bonolo ea ho sebelisa kajeno, latela mehlala ho ithuta ho e sebelisa.




GET Fumana likhoutu tsa poso hole

Ka mokhoa ona o bonolo oa ho sebelisa o tla fumana lethathamo la likhoutu tsa poso tse hole. Mohlala oa kopo o tla khutlisa lethathamo la likhoutu tse ikhethang tsa poso, lenane le felletseng la likhoutu tsa poso le lintlha tsa khoutu ka 'ngoe ea poso.

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

API ea rona e amohela litekanyo tsa hole ka li-kilometara (Default) kapa miles.

Ho fetola litekanyo ho ea ho li-kilomitara u tlameha ho beha ms ka kopo ea hau:

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

Karabo e tla shebahala tjena:

{
   "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 Fumana lintlha tsa khoutu ea poso

Mohlala o latelang o tla khutlisa lintlha tsa likhoutu tsa poso tse tsamaellanang le potso ea patlo.

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

Karabo e tla shebahala tjena:

{
   "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 Fumana lintlha tsa moetlo

U ka fetisa params eketsehileng ho fumana feela seo u se hlokang e le sephetho, feela eketsa boleng fields ka seo u se batlileng.

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

Karabo e tla shebahala tjena:

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



Qala ho sebelisa API ea rona mahala kajeno!

Fumana likopo tse 240 tsa mahala tsa letsatsi le letsatsi

+94 Linaha tse tšehelitsoeng

AD (Andorra)
AR (Argentina)
AS (American Samoa)
AT (Austria)
AU (Australia)
AX (Lihlekehleke Tsa Aland)
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 (Riphaboliki ea Czech)
Flag of Germany
DE (Jeremane)
DK (Denmark)
DO (Dominican Republic)
DZ (Algeria)
EE (Estonia)
ES (Spain)
FI (Finland)
FM (Micronesia)
FO (Lihlekehleke tsa Faroe)
FR (Fora)
GB (United Kingdom)
GF (Guiana ea French)
GG (Guernsey le Alderney)
GL (Greenland)
GP (Guadeloupe)
GT (Guatemala)
GU (Guam)
HR (Croatia (Hrvatska))
HU (Hungary)
IE (Ireland)
IM (Motho (Isle of))
IN (India)
IS (Iceland)
IT (Italy)
JE (Jersey)
JP (Japane)
Flag of South Korea
KR (Korea South)
LI (Liechtenstein)
LK (Sri Lanka)
LT (Lithuania)
LU (Luxembourg)
LV (Latvia)
MC (Monako)
MD (Moldova)
Flag of the Marshall Islands
MH (Lihlekehleke tsa Marshall)
MK (Macedonia)
MP (Lihlekehleke tsa Mariana Leboea)
MQ (Martinique)
MT (Malta)
Flag of Malawi
MW (Malawi)