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


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

The public API has been phased out on December 31, 2020.

In spite of the dataset being freely downloadable, the public API was receiving a growing and significant amount of traffic.

Please understand that this is a benevolent service, and that the primary purpose of the public API is testing, not serving your production traffic for free.

As a result, the public API has been disabled. You can still run a local server while the database remains available for download.