ASN Lookup
asn_lookupLook up an autonomous system by number, such as AS15169, or by an IP address it holds: name, country and one page of its IPv4 and IPv6 prefixes, derived from IPtoASN.
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": {
"target": "<target>"
},
"name": "asn_lookup"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Prefixes per page, in each address family | |
| offset | No | Prefixes to skip in each family; pass next_offset of the previous page | |
| target | Yes | AS number, such as AS15169 or 15169, or a public IPv4 or IPv6 address, such as 8.8.8.8 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asn | Yes | ||
| limit | Yes | Most prefixes of each family on this page: the limit argument, 50 by default. | |
| offset | Yes | Items skipped: the offset argument, 0 by default. | |
| prefix | Yes | The IPtoASN prefix that holds the address. null for an AS target. | |
| target | Yes | The target in canonical form: the address, or AS and the number. | |
| credits | Yes | ||
| asn_name | Yes | The name IPtoASN gives the AS. | |
| asn_country | Yes | The two-letter country where the AS is registered. null when IPtoASN names none. | |
| next_offset | Yes | offset plus the length of the longer list on this page. The next page starts there. When it is not below the larger of ipv4_prefix_count and ipv6_prefix_count, this page is the last. | |
| ipv4_prefixes | Yes | This page of IPv4 prefixes in CIDR form, in address order. | |
| ipv6_prefixes | Yes | This page of IPv6 prefixes in CIDR form, in address order. | |
| ipv4_prefix_count | Yes | All IPv4 prefixes of the AS, before paging. | |
| ipv6_prefix_count | Yes | All IPv6 prefixes of the AS, before paging. |