Get detailed Autonomous System Number data for any IP address or ASN. Uncover network ownership, routing prefixes, peer relationships, and organization details in one API call.
100K+
ASNs tracked
BGP
Real routing data
4.2B
IPs covered
<100ms
Response time
Overview
An Autonomous System Number (ASN) is a unique identifier assigned to a network or group of IP prefixes operated by a single organization with a unified routing policy. ASNs are fundamental to how the internet routes traffic using BGP (Border Gateway Protocol).
HostInfo's ASN API maps any IP address or ASN number to rich organizational data — who owns the network, what IP ranges they control, what peers they have, and whether it's an ISP, hosting provider, or educational institution.
{ "ip": "8.8.8.8", "asn": "AS15169", "asn_name": "GOOGLE", "asn_type": "hosting", "route": "8.8.8.0/24", "country": "US", "domain": "google.com", "num_ips": 4718592 }
Capabilities
Deep BGP and network intelligence for every ASN on the internet.
Access complete BGP routing tables including announced prefixes, route origins, and AS path data sourced from global route collectors.
See upstream and downstream BGP peers for any ASN. Understand connectivity and identify transit providers or potential network dependencies.
Every ASN is classified as ISP, hosting provider, educational, government, or enterprise — enabling intelligent routing decisions and fraud logic.
Get all IP prefixes (CIDR ranges) announced by an ASN. Useful for building firewall rules, blocklists, or monitoring specific networks.
Access historical prefix announcements and ownership changes — invaluable for incident response and threat research investigations.
Full organization name, country, registered domain, abuse contact, and RIR (Regional Internet Registry) for every ASN.
Reference
Every field available in the ASN Lookup API response.
| Field | Type | Description | Free | Pro | Max |
|---|---|---|---|---|---|
| asn | string | ASN in "AS#####" format (e.g. "AS15169") | ✓ | ✓ | ✓ |
| asn_name | string | Organization name registered with the RIR | ✓ | ✓ | ✓ |
| asn_type | string | Classification: isp / hosting / edu / gov / enterprise | ✓ | ✓ | ✓ |
| route | string | BGP route/prefix the queried IP belongs to | ✓ | ✓ | ✓ |
| country | string | Country where the ASN is registered | ✓ | ✓ | ✓ |
| domain | string | Primary domain associated with the organization | — | ✓ | ✓ |
| num_ips | integer | Total number of IP addresses in the AS | — | ✓ | ✓ |
| peers | array | List of BGP peer ASNs | — | — | ✓ |
| prefixes | array | All announced IPv4 and IPv6 CIDR prefixes | — | — | ✓ |
Try It Now
Enter any IP address or ASN to see network data instantly.
// Click "Lookup" to see results here...
Applications
How security and infrastructure teams use ASN data every day.
Identify which ASN originates suspicious traffic. Block entire provider networks when abuse patterns emerge, and track threat actors by their infrastructure ASN.
Instantly tell whether traffic comes from a residential ISP, a cloud datacenter, or a CDN — critical for distinguishing real users from bots and scrapers.
Map competitor infrastructure by tracing their IP ranges and ASN relationships. Understand scale, geographic footprint, and hosting partnerships from public routing data.
Developer
Query any IP or ASN and get structured network data back instantly.
curl -X GET \ "https://api.hostinfo.com/v1/ip/8.8.8.8/asn" \ -H "Authorization: Bearer YOUR_API_KEY" # Response: { "ip": "8.8.8.8", "asn": "AS15169", "asn_name": "GOOGLE", "asn_type": "hosting", "route": "8.8.8.0/24", "domain": "google.com" }
Pricing
No hidden fees. Cancel any time.
Lite
Personal & testing
Plus
Scaling businesses
Max
Full BGP visibility
Need more? View all plans including Enterprise
Free forever. No credit card required.