您可以使用https://thezipcodes.com/ 从帐户部分获取 API 密钥。点击获取请求。
https://thezipcodes.com/api/v1/search?zipCode=302010&countryCode={2digitCountryCode}&apiKey={apiKey}
{
"success": true,
"location": [
{
"country": "RU",
"countryCode2": "RU",
"countryCode3": "",
"state": "Орловская Область",
"stateCode2": "56",
"latitude": "53.0747",
"longitude": "36.2468",
"zipCode": "302019",
"city": "Орел 19"
},
{
"country": "India",
"countryCode2": "IN",
"countryCode3": "IND",
"state": "Rajasthan",
"stateCode2": "24",
"latitude": "26.7865",
"longitude": "75.5809",
"zipCode": "302019",
"city": "Shyam Nagar (Jaipur)",
"timeZone": "Indian Standard Time"
}
]
}