IP and Host Geolocation
ip_lookupResolve an IP address or domain name to its network operator and approximate location: ASN, organization, country, region, city, coordinates, and timezone. Domains are resolved to their first IPv4 address before lookup. Location is IP-level and approximate; it is not the address of the site owner.
Related: dns, whois, ns_reverse.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | Yes | IP address or domain name. Scheme, port, path, and a leading www. are stripped automatically |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | Zero or one record | |
| error | No | ||
| total | No | 1 when the address is in the database, 0 when it is not | |
| success | Yes |