GET /zipcode/:country/:code
Look up a postal/postnummer in 60+ länder to hämta the associated city, state/province, and geographic koordinater. Provide the landskod and postnummer i URL. Användbart för address validation, auto-filling stad and state fält in checkout forms, calculating shipping zoner, and mapping postnummer regioner. Täcker the US, Canada, most of Europe, and många andra länder.
country
obligatorisk
Country code
code
obligatorisk
Postal code
| Namn | Obligatorisk | Standard | Beskrivning |
|---|---|---|---|
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
}