Ipinfo Asn
ipinfo_asnRetrieve autonomous system (ASN) and network ownership details for IPv4 or IPv6 addresses, with optional network type, pagination, and session caching.
Instructions
Get autonomous system (network ownership) information for IP addresses.
By default queries the IPinfo Lite endpoint, which returns ASN, name, and domain. Set detailed=True to query the full lookup endpoint, which also includes the network type (e.g. isp, hosting, business, education).
Results are paginated.
If the API reports an error for specific IPs, those IPs are listed in errors with the reason and left out of results.
Results are cached in memory for the session, so repeat lookups of the same IP are served from cache without consuming API quota. You do not need to maintain your own cache or deduplicate IPs before calling this tool. The _meta field reports api_calls_made and from_cache counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ips | Yes | Public IP addresses to query, IPv4 or IPv6, e.g. ["8.8.8.8", "2001:4860:4860::8888"]. Private, loopback, reserved, multicast, and bogon addresses are rejected: they are reported under validation_errors and left out of results. | |
| page | No | Page of the result set to return, 1-based. Values below 1 are clamped to 1, and a page past the last one returns no results. | |
| detailed | No | Which IPinfo endpoint to query. Leave false to use the Lite endpoint, which returns the ASN, name, and domain. Set to true to use the full lookup endpoint, which also returns the network type (isp, hosting, business, education) and when the AS record last changed; it requires a token whose plan includes that data, otherwise the call fails with ACCESS_DENIED. | |
| page_size | No | How many IPs to resolve and return per page. Clamped to a maximum of 1000, the API batch limit. Only the IPs on the requested page are fetched, so a smaller page size consumes less quota per call. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |