API Faʻamaumauga

Amata ona faʻaaoga le matou faigofie e faʻaaoga API i le aso, mulimuli i faʻataʻitaʻiga e aʻoaʻo ai pe faʻafefea ona faʻaaoga.




GET Maua ni faʻailoga meli i totonu o se mamao

Faatasi ai ma lenei faigofie e faʻaaoga le pito mulimuli o le ae mauaina se lisi o Falemeli numera o loʻo i totonu o le tuʻuina atu mamao. O le talosaga faʻataʻitaʻiga o le a toe faafoi mai se lisi o tulaga ese meli code, se atoa lisi o meli code ma auiliiliga o pou meli uma.

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

E talia e la matou API fuataga o le mamao i kilomita (Default) poʻo maila.

Ina ia suia fua e kilomita e tatau ona e tuu i le ms parameter i lau talosaga:

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

O le tali e faʻapea:

{
   "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 Maua auiliiliga faʻailoga meli

Ole faʻataʻitaʻiga lenei o le a toe faafoi maia auiliiliga o le postal code e fetaui ma le search search.

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

O le tali e faʻapea:

{
   "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 Maua faʻamatalaga faʻapitoa

E mafai ona e oo faaopoopo params e maua ai na o le mea e te manaomia i le taunuuga, e faaopoopo i le tau fields i lau talosaga.

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

O le tali e faʻapea:

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



Amata ona faʻaaoga la matou API mo le leai se totogi i le aso!

Maua 240 aso leai se totogi talosaga

+94 Atunuʻu lagolago

AD (Andorra)
AR (Argentina)
AS (Amerika Samoa)
AT (Austria)
AU (Ausetalia)
AX (Aland Islands)
AZ (Azerbaijan)
BD (Bangladesh)
BE (Belgium)
BG (Bulgaria)
BM (Bermuda)
BR (Brazil)
Flag of Belarus
BY (Belarus)
CA (Kanata)
CH (Sueteselani)
CL (Chile)
CO (Colombia)
CR (Costa Rica)
CY (Cyprus)
CZ (Czech Republic)
Flag of Germany
DE (Siamani)
DK (Denmark)
DO (Dominican Republic)
DZ (Algeria)
EE (Estonia)
ES (Spain)
FI (Finland)
FM (Micronesia)
FO (Faroe Islands)
FR (Falani)
GB (malo tupu)
GF (Farani Farani)
GG (Guernsey ma Alderney)
GL (Greenland)
GP (Guadeloupe)
GT (Guatemala)
GU (Guam)
HR (Croatia (Hrvatska))
HU (Hungary)
IE (Aialani)
IM (Man (Isle of))
IN (Initia)
IS (Aiselani)
IT (Italia)
JE (Jersey)
JP (Iapani)
Flag of South Korea
KR (Korea i Saute)
LI (Liechtenstein)
LK (Sri Lanka)
LT (Lithuania)
LU (Luxembourg)
LV (Latvia)
MC (Monaco)
MD (Moldova)
Flag of the Marshall Islands
MH (Marshall Islands)
MK (Mecedonia)
MP (Aitu Mariana i Matu)
MQ (Martinique)
MT (Malta)
Flag of Malawi
MW (Malawi)