IPtoASN Legacy Lookup

This page contains discontinued features. Please use the downloadable databases instead.

Public API Discontinued

The public API was discontinued on December 31, 2020.

Please download the databases and run your own server for production use.

Return to Current Site

Online Lookup (Discontinued)

Former API Endpoint:

URL Pattern:
https://api.iptoasn.com/v1/as/ip/<ip_address>
Example Response:
{
  "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"
}

Available Downloads

IPv4 to ASN

Format:
range_start range_end AS_number country_code AS_description

IPv4 to Country

Format:
range_start range_end country_code

IPv6 to ASN

Format:
range_start range_end AS_number country_code AS_description

IPv6 to Country

Format:
range_start range_end country_code

Combined IPv4+IPv6 to ASN ALL-IN-ONE

Format:
range_start range_end AS_number country_code AS_description