x402

Address Validate (x402)

Validate and standardize a postal address. Returns structured components, validity confidence, and suggested corrections. Works for 200+ countries via OpenStreetMap Nominatim.

get/x402/v2/address-validate

Request

  • Base URL: https://api.strale.io
  • URL: https://api.strale.io/x402/v2/address-validate
  • Auth: none required

Query parameters

addressstring required

Full address as free text

country_codestring

ISO 2-letter country code hint (optional)

Response

Success

validboolean
latitudenumber
longitudenumber
componentsobject
confidencenumber
match_typestring
formatted_addressstring

Example response

{
  "valid": true,
  "latitude": 51.5034878,
  "longitude": -0.1276965,
  "components": {
    "city": "City of Westminster",
    "state": "England",
    "street": "Downing Street",
    "country": "United Kingdom",
    "postal_code": "SW1A 2AA",
    "country_code": "GB",
    "house_number": "10"
  },
  "confidence": 0.66,
  "match_type": "approximate",
  "input_address": "10 Downing Street, London, UK",
  "formatted_address": "10 Downing Street, 10, Downing Street, Westminster, Covent Garden, City of Westminster, Greater London, England, SW1A 2AA, United Kingdom"
}

Changes

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