IP Lookup
ip_lookupLook up a public IP: AS, country, cloud provider, CDN, datacenter, Tor exit, crawler, DROP listing and PTR name. A Pro key with its own Shodan or AbuseIPDB key adds exposure and reputation. For every prefix of the AS, call asn_lookup.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"ip_address": "<ip_address>"
},
"name": "ip_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip_address | Yes | Public IPv4 or IPv6 address, such as 8.8.8.8 or 2001:4860:4860::8888 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | Yes | The AS of the IPtoASN prefix that holds the address. null when no prefix holds it or the list is not loaded. asn_name and asn_country are then null too. | |
| ptr | Yes | A PTR name of the address. It is the first of the first 10 names whose A or AAAA record holds the address. When none does, it is the first name. null when there is none or the question failed. | |
| is_cdn | Yes | true when the cloud range that holds the address belongs to a CDN, false when it does not. null when no range holds it or the ranges are not loaded. An address of no range can still be a CDN edge. | |
| crawler | Yes | The crawler list whose range holds the address, such as googlebot. null when no list holds it or the lists are not loaded. | |
| credits | Yes | ||
| asn_name | Yes | The name IPtoASN gives the AS. | |
| listed_on | Yes | DROP prefixes that hold the address, the longest first. [] when none holds it. null while the list is not loaded. | |
| ip_address | Yes | The address in canonical form. | |
| reputation | Yes | The AbuseIPDB slot, filled with the caller's own stored key. available true adds source and the report members. available false adds reason and the members that reason names. | |
| asn_country | Yes | The two-letter country where the AS is registered. null when IPtoASN names none. | |
| geo_country | Yes | The two-letter country of the address, from DB-IP Lite. null when no prefix holds the address or the list is not loaded. | |
| is_tor_exit | Yes | true when the Tor Project's exit list holds the address, false when it does not. null while the list is not loaded. | |
| unavailable | Yes | Each key names a part that could not be answered. A list that is not loaded gets not_synced under the first field of its group. asn also stands for asn_name and asn_country, and cloud_provider for cloud_service and is_cdn. {} when every part answered. | |
| cloud_service | Yes | The service of that range, such as ec2 or cloudfront. | |
| is_datacenter | Yes | true when a cloud range or a datacenter AS holds the address. false only when IPtoASN and the cloud ranges are both loaded and neither matches. null when it is not true and either is not loaded. | |
| cloud_provider | Yes | The cloud or CDN provider whose published range holds the address, such as aws. null when no range holds it or the ranges are not loaded. | |
| internet_exposure | Yes | The Shodan slot, filled with the caller's own stored key. Its forms are as in reputation. available true adds source and the members from ports to last_update. | |
| is_ptr_forward_confirmed | Yes | true when an A or AAAA record of ptr holds the address. false when every forward question was answered and none of the first 10 PTR names maps back. null when ptr is null or a forward question failed. |