Postal Code Lookup

Look up a postal or ZIP code in 60+ countries: city, region and approximate coordinates.

Pay by wallet (x402) postal-code-lookup

Example

Input
{
  "postal_code": "10001",
  "country_code": "US"
}
Answer
{
  "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"
}

Inputs

FieldTypeRequiredWhat it is
postal_codestringYesPostal/ZIP code to look up
country_codestringNoISO 2-letter country code (default US)

Output fields

How reliably each field appears in a successful answer.

FieldTypeAppears
validbooleanAlways (present in every successful answer)
placesarrayAlways (present in every successful answer)
postal_codestringAlways (present in every successful answer)
country_codestringAlways (present in every successful answer)
country_namestringUsually (present for most inputs)

How to call it

The same tool through each route. MCP clients reach it through Strale’s server at https://api.strale.io/mcp; the call below is what the agent sends.

# Needs an API key. max_price_cents caps what this call may cost.
curl -X POST https://api.strale.io/v1/do \
  -H "Authorization: Bearer $STRALE_API_KEY" \
  -H 'Content-Type: application/json' \
  -d '{
    "capability_slug": "postal-code-lookup",
    "inputs": {
      "postal_code": "10001",
      "country_code": "US"
    },
    "max_price_cents": 2
  }'

Limitations

  • Country coverage

    Covers ~60 countries — some smaller nations may not have postal code data available

  • Reference data freshness

    Postal code data is periodically updated — newly created codes may not be available immediately