Resolve a country / state / city to ISO codes (paid $0.002)
geo_lookupResolve place queries into normalized names, ISO country/subdivision codes, and geographic hierarchy. Pay per call via x402 to confirm existence and get population and coordinates.
Instructions
PAID $0.002 (x402, USDC on Base). Resolve a place against a bundled open dataset (no per-day API limits). Give {query:"Munich, Bavaria, Germany"} OR {country, state, city} and get normalized names, ISO 3166-1/-2 codes, the country→subdivision→city hierarchy, population and coordinates, and confirmation the place exists. Without payment returns the x402 challenge; pass x_payment to settle.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | City name. | |
| query | No | Free-text place, e.g. "Munich, Bavaria, Germany" or "France". | |
| state | No | State/province/subdivision name or code (within the country). | |
| country | No | Country name or ISO 3166-1 alpha-2/alpha-3 code. | |
| x_payment | No | x402 payment payload (base64) for this PAID validation. If supplied it is forwarded as the X-PAYMENT header to settle the call and return the real result instead of a 402 challenge. Omit to get the price challenge first. |