ASN Details
lookup_asnRetrieve comprehensive ASN information including peers, downstreams, upstreams, route prefixes, and WHOIS data by querying an AS number or IP address.
Instructions
Read-only ASN enrichment via GET /v3/asn. Paid only. Cost: 1 credit. Query by asn or ip; asn takes priority over ip. Use for ASN relationships, route prefixes, allocation details, or WHOIS; use lookup_ip for basic ASN with geolocation.
Returns { asn } core fields plus included peers, downstreams, upstreams, routes, or whois_response. include accepts those five values. fields/excludes accept full asn.* paths or root-relative paths such as upstreams.as_number. force_refresh bypasses cache only when the user asks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ip | No | IPv4 or IPv6 address to find the ASN for. Used only if asn is not provided. | |
| asn | No | AS number to look up (e.g. AS13335 or just 13335). Takes priority over ip if both are provided. | |
| fields | No | Comma-separated dot-path fields to return (e.g. asn.as_number,asn.organization or upstreams.as_number). Paths can be full (asn.upstreams.as_number) or relative to the asn root (upstreams.as_number). Use include for optional datasets (peers/downstreams/upstreams/routes/whois_response), then use fields to keep only required paths. | |
| include | No | Comma-separated extra data to include: peers, downstreams, upstreams, routes, whois_response. No additional credit cost. | |
| excludes | No | Comma-separated dot-path fields to exclude (e.g. asn.date_allocated,asn.rir or upstreams.description). Paths can be full or relative to the asn root. | |
| force_refresh | No | Default false. Set true only when the user asks to refresh cached ASN data; a successful refresh makes a new upstream request and can consume credits. |