IP to ASN Database

The IP to ASN Database contains all known Autonomous Systems (AS) of the Internet. The database is continuously updated and new ASNs are added as soon as they are allocated.

The IP to ASN database is mainly used to determine ASN meta data for every public IP address that is used in the Internet. The most interesting fields are the org, domain and type fields of the ASN database, since they give insights into the organization and help you to make better traffic classification decisions.

IP to ASN Database

Price 49$ per month
Filesize 274MB
Format JSON, CSV and MMDB
Number of active ASNs 82,283
Number of inactive ASNs 376,468
Number of IPv4 Routes 1,083,373
Number of IPv6 Routes 247,831
Last Updated October 21, 2026

Demo for IP to ASN Database

Enter any IP address to obtain the IP to ASN data associated with this IP address.

Examples: AS7018 - AS16509 - AS714 - AS749 - AS7377 - AS10995
{
  "asn": 7018,
  "abuser_score": "0.0001 (Very Low)",
  "descr": "ATT-INTERNET4 - AT&T Enterprises, LLC, US",
  "country": "us",
  "active": true,
  "org": "AT&T Enterprises, LLC",
  "domain": "att.com",
  "abuse": "abuse@att.net",
  "type": "isp",
  "created": "1996-07-30",
  "updated": "2025-03-18",
  "rir": "ARIN"
}

# Purchase Database

To purchase the database, you need to create a free account. Database subscriptions are billed monthly and can be canceled at any time. Learn more about the pricing and the terms. If you purchase the database, you will receive a download link to the database file for all formats.

# ASN Database Format

Each entry of the IP to ASN Database has the metadata listed below. If the ASN is inactive, there is less metadata for the ASN. For example, inactive ASNs have no prefixes or prefixesIPv6 fields.

  • asn - The field asn is a unique identifier assigned to each autonomous system (AS) on the Internet. As of March 2024, there were over 81,000 active Autonomous System Numbers (ASNs) registered (ASN Statistics).
  • descr - The field descr is a short informal descriptive name of the autonomous system (AS) in free format.
  • country - The ISO 3166-1 alpha-2 country code to which the AS belongs administratively. This is the country-specific location of the autonomous system (AS). This does not necessarily mean that all routes (IP addresses) assigned to this AS must originate from the same country.
  • active - The field active determines if the ASN is active or inactive. Active means that at least one route is assigned to the ASN. Put differently, this means that there is at least one entry in the prefixes or prefixesIPv6 array.
  • org - The field org contains the organization that owns the ASN. It is crucial to understand that not every IP address assigned to an AS must belong to the organization contained in org. Put differently: The IP addresses included in the prefixes or prefixesIPv6 array might be owned by a different organization than the one from the autonomous system (AS) itself.
  • domain - The field domain is the domain of the organization's website that owns the ASN.
  • abuse - The field abuse contains the abuse email address that can be used to direct abuse complaints to the owner of the ASN.
  • type - The field type contains the type of the ASN. The following ASN types exist:
    • hosting - The AS is owned by a hosting provider (Example: as396982)
    • education - The AS belongs to a university or other kind of educational institution (Example: AS1111)
    • government - The AS belongs to a governmental institution (Example: AS1701)
    • banking - The AS belongs to a banking/financial institution (Example: AS2134)
    • isp - The AS belongs to an Internet Service Provider (ISP) (Example: AS3222)
    • business - If the type is not one of the above, the type is the generic business type (Example: AS3271)
  • created - The field created specifies the date when this ASN was first registered.
  • updated - The field updated specifies the date when this ASN was last updated.
  • rir - The field rir contains the Regional Internet Registry (RIR) responsible for this ASN.
  • whois - The field whois contains a URL pointing to the raw WHOIS record for this ASN.
  • prefixes - The field prefixes contains all the IPv4 networks assigned to this ASN. This is a list of IPv4 networks in CIDR format.
  • prefixesIPv6 - The field prefixesIPv6 contains all the IPv6 networks assigned to this ASN. This is a list of IPv6 networks in CIDR format.

The database contains key / value entries such as the following example for AS61018:

{
  "asn": 61018,
  "descr": "PVH-AS, NL",
  "country": "nl",
  "active": true,
  "org": "PVH B.V.",
  "domain": "www.pvh.com",
  "abuse": "abuse@gtt.net",
  "type": "business",
  "created": "2013-03-13",
  "updated": "2022-01-12",
  "rir": "RIPE",
  "whois": "https://api.ipapi.is/?whois=AS61018",
  "prefixes": [
    "64.250.22.0/24",
    "64.250.23.0/24",
    "185.19.103.0/24"
  ],
  "elapsed_ms": 0.49
}

# How to use the ASN Database?

Download the ASN database sample in JSON format:

curl -O https://ipapi.is/data/samples/ASN-Database-Sample.json

And parse with NodeJS:

let asnDatabase = require('./ASN-Database-Sample.json');
for (const asn in asnDatabase) {
  console.log(asn, asnDatabase[asn]);
}

In case of MMDB format, the usage looks as follows:

Download the ASN database sample in MMDB format and parse with mmdbctl:

# Download the Database
curl -O https://ipapi.is/data/asnSample.mmdb
# Read the Database
mmdbctl read -f json-pretty 1.6.191.77 asnSample.mmdb

This command produces the following output:

{
  "active": "true",
  "asn": "9583",
  "country": "in",
  "created": "",
  "descr": "SIFY-AS-IN Sify Limited, IN",
  "domain": "sifycorp.com",
  "ipVersion": "4",
  "network": "1.6.191.0-1.6.191.255",
  "org": "Sify Limited",
  "rir": "APNIC",
  "route": "1.6.191.0/24",
  "type": "isp",
  "updated": "2013-04-07"
}

# What is an Autonomous System?

An Autonomous System is a collection of IPv4 and IPv6 networks (routes or prefixes) controlled by a single administrative entity such as a Internet Service Provider or other organization. This administrative entity defines a clear routing policy for its Autonomous System.

The Border Gateway Protocol (BGP) is the communication protocol used by autonomous systems. It is responsible for establishing the routing policies between autonomous systems and to provide reachability information. Put differently, the IPv4 and IPv6 protocol suites is the communication protocol between hosts in the Internet and the BGB is the protocol suite responsible for exchanging network reachability information with other BGP systems.

The current version of BGP is version Border Gateway Protocol 4 (BGP-4), which was published as RFC 4271 in 2006. BGP-4 also introduced the usage of the Classless Inter-Domain Routing (CIDR) notation and supernetworks, which reduced the size of routing tables considerably.

# What is an Autonomous System Number (ASN)?

An ASN is a 32 bit number that identifies Autonomous Systems uniquely. Before 2007, it used to be a 16 bit number, which allowed for a maximum of 65536 different AS numbers. Due to the ever growing Internet, IANA has begun to also assign 32-bit AS numbers to regional Internet registries. For example, one of the early ASN's is AS12 from New York University. Based on its WHOIS record, AS12 was created on July 15th, 1984.

ASNumber:       12
ASName:         NYU-DOMAIN
ASHandle:       AS12
RegDate:        1984-07-05
Updated:        2011-10-10    
Ref:            https://rdap.arin.net/registry/autnum/12


OrgName:        New York University
OrgId:          NYU
Address:        726 Broadway, 8th Floor - ITS
City:           New York
StateProv:      NY
PostalCode:     10003
Country:        US
RegDate:        1984-07-05
Updated:        2017-11-27
Ref:            https://rdap.arin.net/registry/entity/NYU

The Internet is constantly growing. Therefore, new ASN's are created each day. For example, the following ASN's are all rather new:

However, the growth of the Internet is not as fast as it used to be in the 90s and early 2000s. Figure 1 below plots the number of unique ASN's announced on the Internet. It can be seen that the curve slope is decreasing starting from 2021.

Figure 1 — The number of unique ASes announced on the Internet between 1997 and 2023. Source: CIDR-Report ASN Graph

Figure 2 shows the growth of the IPv4 routing table (APNIC Blog: BGP in 2022 - the routing table). The blog post mentions that the supply of IPv4 addresses has been progressively constrained since 2011 and that the available address pools of the various Regional Internet Registries (RIRs) have been exhausted. The APNIC authors conclude that there is no visible impact on the rate of growth of the number of announced prefixes in the global routing system since 2011. This can also be clearly seen in Figure 2.

Figure 2 — IPv4 routing table since 1994. Source: APNIC blog - BGP in 2022

# ASN Table

The table below lists the 100 largest active AS numbers by IPv4 address space. All 10,000 largest are in the list of active ASNs. If you want to query any autonomous system, use the API by specifying the ASN you want.
Example: https://api.ipapi.is?q=as4851


ASN Organization Country Domain Type RIR
749 United States Department of Defense (DoD) US defense.gov government ARIN
16509 Amazon.com, Inc. US amazon.com hosting ARIN
7018 AT&T Enterprises, LLC US att.com isp ARIN
4134 CHINANET BACKBONE CN chinatelecom.com.cn isp APNIC
8075 Microsoft Corporation US microsoft.com hosting ARIN
721 United States Department of Defense (DoD) US defense.gov government ARIN
4766 Korea Telecom KR kt.com isp APNIC
7922 Comcast Cable Communications, LLC US comcast.com isp ARIN
4837 CHINA UNICOM China169 Backbone CN chinaunicom.cn isp APNIC
9808 China Mobile Communications Group Co., Ltd CN chinamobile.com isp APNIC
396982 Google LLC US google.com hosting ARIN
17676 SoftBank Mobile Corp. JP softbank.jp isp APNIC
714 Apple Inc. US apple.com business ARIN
701 Verizon Business US verizon.com isp ARIN
4538 China Education and Research Network Center CN cernet.edu.cn isp APNIC
174 Cogent Communications, LLC US cogentco.com isp ARIN
3320 Deutsche Telekom AG DE telekom.de isp RIPE
3356 Level 3 Parent, LLC US level3.com isp ARIN
22394 Verizon Business US verizon.com isp ARIN
4713 NTT DOCOMO BUSINESS,Inc. JP ntt.com isp JPNIC
209 CenturyLink Communications, LLC US centurylink.com isp ARIN
9318 SK Broadband Co Ltd KR skbroadband.com isp APNIC
22773 Cox Communications Inc. US cox.com isp ARIN
14618 Amazon.com, Inc. US amazon.com hosting ARIN
8151 Uninet S.A. de C.V. MX telmex.com isp LACNIC
3269 Telecom Italia S.p.A. IT telecomitalia.it isp RIPE
17858 POWERVIS AS KR KR lguplus.co.kr business APNIC
37963 Hangzhou Alibaba Advertising Co.,Ltd. CN alibabacloud.com hosting APNIC
3215 Orange S.A. FR orange.com isp RIPE
26599 TELEFÔNICA BRASIL S.A. BR telefonica.com.br isp LACNIC
7552 Viettel Group VN viettel.com.vn isp APNIC
7303 Telecom Argentina S.A. AR telecom.com.ar isp LACNIC
2856 BT-UK-AS - British Telecommunications Limited, GB GB - - -
2516 KDDI CORPORATION JP kddi.com isp JPNIC
6167 Verizon Business US verizon.com isp ARIN
5089 Virgin Media Limited GB virginmedia.com isp RIPE
12389 PJSC Rostelecom RU rostelecom.ru isp RIPE
31399 Mercedes-Benz Group AG DE mercedes-benz.com business RIPE
3462 Chunghwa Telecom Co., Ltd. TW cht.com.tw isp APNIC
6713 Office National des Postes et Telecommunications ONPT (Maroc Telecom) / IAM MA iam.ma isp AFRINIC
3209 Vodafone GmbH DE vodafone.de isp RIPE
15557 Societe Francaise Du Radiotelephone - SFR SA FR sfr.fr isp RIPE
12322 Free SAS FR free.fr isp RIPE
45899 VNPT Corp VN vnpt.com.vn isp APNIC
20940 Akamai International B.V. NL akamai.com hosting RIPE
8452 TE AS EG te.eg isp RIPE
36992 ETISALAT MISR EG etisalat.eg isp AFRINIC
12479 Orange Espagne SA ES orange.es isp RIPE
4808 China Unicom Beijing Province Network CN chinaunicom.cn isp APNIC
9121 Turk Telekomunikasyon Anonim Sirketi TR turktelekom.com.tr isp RIPE
21928 T-Mobile USA, Inc. US t-mobile.com isp ARIN
4812 China Telecom (Group) CN chinatelecom.com.cn isp APNIC
6327 Shaw Communications CA shaw.ca isp ARIN
1221 Telstra Limited AU telstra.com.au isp APNIC
37069 The Egyptian Company for Mobile Services (Mobinil) EG orange.eg isp AFRINIC
20115 Charter Communications LLC US charter.com isp ARIN
5650 Verizon Business US verizon.com isp ARIN
7377 University of California, San Diego US ucsd.edu education ARIN
7029 Windstream Communications LLC US windstream.com isp ARIN
45090 Shenzhen Tencent Computer Systems Company Limited CN tencent.com hosting APNIC
33915 Vodafone Libertel B.V. NL vodafone.nl isp RIPE
26615 TIM S/A BR tim.com.br isp LACNIC
45102 Alibaba (US) Technology Co., Ltd. CN alibaba.com hosting APNIC
3352 TELEFONICA DE ESPANA S.A.U. ES telefonica.es isp RIPE
9824 JCOM Co., Ltd. JP jcom.co.jp isp APNIC
812 Rogers Communications Canada Inc. CA rogers.com isp ARIN
4788 TM TECHNOLOGY SERVICES SDN BHD MY tm.com.my isp APNIC
28573 Claro NXT Telecomunicacoes Ltda BR claro.com.br isp LACNIC
10796 Charter Communications Inc US charter.com isp ARIN
1267 WIND TRE S.P.A. IT windtre.it isp RIPE
4804 SingTel Optus Pty Ltd AU optus.com.au isp APNIC
3257 GTT Communications Inc. US gtt.net isp RIPE
25019 Saudi Telecom Company JSC SA stc.com.sa isp RIPE
2907 Authoritative information regarding AS Number JP - business APNIC
18881 TELEFÔNICA BRASIL S.A. BR telefonica.com.br isp LACNIC
3786 LG DACOM Corporation KR lgdacom.net isp APNIC
5617 Orange Polska Spolka Akcyjna PL orange.pl isp RIPE
6805 Telefonica Germany GmbH & Co.OHG DE telefonica.de isp RIPE
20001 Charter Communications Inc US charter.com isp ARIN
36925 MEDITELECOM MA iam.ma isp AFRINIC
36947 Telecom Algeria DZ algerietelecom.dz isp AFRINIC
56 United States Department of Defense (DoD) US defense.gov government ARIN
680 Verein zur Foerderung eines Deutschen Forschungsnetzes e.V. DE dfn.de isp RIPE
17557 Pakistan Telecommuication company limited PK ptcl.com.pk isp APNIC
56046 China Mobile Communications Corporation CN chinamobile.com isp APNIC
7713 Telekomunikasi Indonesia (PT) ID telkom.co.id isp APNIC
55836 Reliance Jio Infocomm Limited IN jio.com isp APNIC
1540 Headquarters, USAISC US army.mil government ARIN
3561 CenturyLink Communications, LLC US centurylink.com isp ARIN
5384 EMIRATES TELECOMMUNICATIONS GROUP COMPANY (ETISALAT GROUP) PJSC AE etisalat.ae isp RIPE
577 Bell Canada CA bell.ca isp ARIN
1136 KPN B.V. NL kpn.com isp RIPE
4249 Eli Lilly and Company US lilly.com business ARIN
9644 SKTELECOM NET AS KR sktelecom.com isp APNIC
6128 Cablevision Systems Corp. US optimum.com isp ARIN
1103 SURF B.V. NL surf.nl isp RIPE
9829 Bharat Sanchar Nigam Ltd IN bsnl.co.in isp APNIC
30722 Fastweb SpA IT fastweb.it isp RIPE
5410 Bouygues Telecom SA FR bouyguestelecom.fr isp RIPE
786 Jisc Services Limited GB jisc.ac.uk isp RIPE