IP Geolocation
sthan_ip_geolocationLook up geographic location of an IPv4 or IPv6 address. Returns country, region, city, coordinates, timezone, and postal code for analytics or default region selection.
Instructions
Look up the approximate geographic location of an IPv4 or IPv6 address. Returns country, region, city, coordinates, timezone, and postal code (some fields may be null when unknown). Use to estimate where an IP is located, for example for analytics or choosing a default region. This locates IP addresses, not postal addresses; to work with a street address use sthan_verify_address, sthan_parse_address, or sthan_geocode. Read-only with no side effects. Requires a sthan.io API key in STHAN_API_KEY; each call counts toward your plan's rate limit (a free tier is available). On failure it returns an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IPv4 (e.g. '8.8.8.8') or IPv6 (e.g. '2001:4860:4860::8888') address |