Free IP address to ASN database
Downloadable, easy to parse, updated hourly.


Online lookup

IPv4 to ASN map

Format:
range_start range_end AS_number country_code AS_description

IPv6 to ASN map

Format:
range_start range_end AS_number country_code AS_description

Combined IPv4+IPv6 to ASN map

Format:
range_start range_end AS_number country_code AS_description

IPv4 to country code map

Format:
range_start range_end country_code

IPv6 to country code map

Format:
range_start range_end country_code

Public API

Subnet & ASN information about an IP:
https://api.iptoasn.com/v1/as/ip/<ip address>
Returns:
A JSON object:
{
  "announced": true,
  "as_country_code": "US",
  "as_description": "LEVEL3 - Level 3 Communications, Inc.",
  "as_number": 3356,
  "first_ip": "4.0.0.0",
  "last_ip": "4.23.87.255"
}