IP Geolocation
ip_geolocationGeolocate any IP address to get country, region, city, coordinates, time zone, and hostname using an offline database. No external API required.
Instructions
Geolocate an IP address (country, region, city, coordinates, time zone) using an offline database, plus its reverse-DNS hostname. No external API.
Args:
ip (string): IPv4 or IPv6 address.
response_format ('markdown' | 'json'): output format (default 'markdown').
Returns: { ip, country_iso, country_name, region, city, latitude, longitude, time_zone, hostname }.
Example: "Where is 151.101.1.69 located?" -> ip_geolocation(ip="151.101.1.69"). Note: geolocation is approximate (city-level at best) and offline data may lag reality.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | IPv4 or IPv6 address, e.g. '1.1.1.1'. | |
| response_format | No | Output format: 'markdown' for a human-readable summary (default) or 'json' for the full structured payload. | markdown |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes | ||
| country_iso | No | ||
| country_name | No | ||
| region | No | ||
| city | No | ||
| latitude | No | ||
| longitude | No | ||
| time_zone | No | ||
| hostname | No |