GET /zipcode/:country/:code
Nachschlagen von a postal/zip code in 60+ countries to get the associated city, state/province, und geographic coordinates. Geben Sie an: the country code und postal code in the URL. Nützlich für address validation, auto-filling city und state fields in checkout forms, calculating shipping zones, und mapping postal code regions. Umfasst the US, Canada, most of Europe, und many other countries.
country
erforderlich
Country code
code
erforderlich
Postal code
| Name | Erforderlich | Standard | Beschreibung |
|---|---|---|---|
country |
Ja | - | Country code |
code |
Ja | - | Postal code |
curl https://nordapi.ee/api/v1/zipcode/us/90210
curl https://nordapi.ee/api/v1/zipcode/us/90210
curl https://nordapi.ee/api/v1/zipcode/no/0150
curl https://nordapi.ee/api/v1/zipcode/gb/SW1A
{
"data": {
"country": "United States",
"country_code": "US",
"places": [
{
"latitude": "34.0901",
"longitude": "-118.4065",
"name": "Beverly Hills",
"state": "California",
"state_code": "CA"
}
],
"post_code": "90210"
},
"success": true
}