x402

Postal Code Lookup (x402)

Look up location information from a postal/ZIP code. Returns city, region/state, and approximate coordinates. Covers 60+ countries via Zippopotam.us.

get/x402/v2/postal-code-lookup

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/postal-code-lookup
  • Auth: none required

Query parameters

postal_codestring required

Postal/ZIP code to look up

country_codestring

ISO 2-letter country code (default US)

Response

Success

validboolean
postal_codestring
country_codestring
country_namestring

Example response

{
  "valid": true,
  "places": [
    {
      "name": "New York City",
      "state": "New York",
      "latitude": 40.7484,
      "longitude": -73.9967,
      "state_abbreviation": "NY"
    }
  ],
  "postal_code": "10001",
  "country_code": "US",
  "country_name": "United States"
}

Changes

No recorded changes to this operation across all 1 revision of this API.