ip_lookup
Geolocate an IP address to get country, city, ISP, and detect VPN, Tor, or datacenter usage for fraud detection and access control.
Instructions
Geolocate an IP address and detect VPN, Tor, and datacenter usage.
Returns geolocation data (country, city, coordinates, timezone, ISP) plus
threat intelligence signals: whether the IP is a known VPN exit node, Tor
relay, or datacenter/hosting provider. Includes a composite threat score.
Use for fraud detection, access control, personalising content by region,
or investigating suspicious traffic in server logs.
Args:
ip: IPv4 or IPv6 address to look up (e.g. '8.8.8.8', '2001:4860:4860::8888').
Returns:
ip: The queried IP.
country, country_code: Full country name and ISO-3166 code.
region, city: Geographic subdivision and city name.
latitude, longitude: Approximate coordinates (city-level precision).
timezone: IANA timezone (e.g. 'America/New_York').
isp: Internet Service Provider name.
is_vpn (bool): Known VPN exit node.
is_tor (bool): Tor exit relay.
is_datacenter (bool): Hosted in a cloud/datacenter AS.
threat_score: 0.0–1.0 composite risk score.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | Yes |