IP to ASN Database

The IP to ASN Database contains every Autonomous System (AS) of the Internet: 83,158 active ASNs and 375,593 inactive ones, each with its organization, domain, type, country, abuse contact, registration dates and all IPv4 and IPv6 prefixes it announces. It maps every routed IP address to the AS that announces it, by combining live BGP routing data with the WHOIS data of all five Regional Internet Registries.

  • The organization, website domain and abuse contact behind every ASN
  • A type for every organization: hosting, isp, business, education, government or banking
  • An abuse score per ASN, from the share of its address space reported for abuse
  • 1,091,569 IPv4 and 256,391 IPv6 routes
  • CSV and MMDB for IP lookups, JSON for ASN lookups with all prefixes
  • Rebuilt every day

IP to ASN Database

Price $49 per month
File size 279 MB
Formats CSV, MMDB and JSON
Active ASNs 83,158
Inactive ASNs 375,593
IPv4 routes 1,091,569
IPv6 routes 256,391
Updates Daily
Last updated November 27, 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 (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"
}

# Use Cases

Traffic classification

The ASN type tells hosting networks from ISPs at a glance: traffic from a cloud ASN is usually a server, traffic from an ISP usually a person.

Risk scoring

Weigh logins, signups and payments by the type and abuse score of the network they come from.

Firewall rules

Block, rate-limit or allow whole networks with the complete list of prefixes of an ASN, for IPv4 and IPv6.

Abuse handling

Send abuse reports to the network that is responsible, with the abuse contact of every ASN.

Analytics

Group traffic, errors and latency by network and see which ISPs and clouds your users and attackers come from.

Routing research

Analyze the prefixes, registrations and growth of every AS, with all registries in a single dataset.

# Purchase Database

Create a free account, subscribe in your dashboard with a card or PayPal, and download the database right away, in every format it comes in. The subscription is billed monthly and can be canceled at any time. Updates are included: your personal download link always serves the latest release, so one scheduled command keeps your copy current. See pricing and the terms.

Need more than one database? The Business plan includes all seven databases ($563 per month if bought separately), the largest standard API plan and the right to run the API on your own servers, for $200 per month.

# ASN Database Format

The database comes in two shapes. The CSV and MMDB files have one record per announced IP range, for lookups by IP address. The JSON file has one record per ASN with all its prefixes, for lookups by ASN. The CSV file has these columns:

Column Description Example
startIp, endIp First and last IP address of the announced range 1.0.0.0, 1.0.0.255
ipVersion 4 for IPv4, 6 for IPv6 4
asn The Autonomous System Number that announces this range 13335
abuser_score Abuse score of the ASN: the share of its address space reported for abuse, with a label from Very Low to Very High 0.001 (Low)
route The announced prefix (CIDR) covering this range 1.0.0.0/24
descr Description of the AS from WHOIS CLOUDFLARENET - Cloudflare, Inc., US
country ISO 3166-1 alpha-2 code of the country the AS is registered in. Its addresses can be used in other countries. us
active true if the ASN currently announces at least one prefix true
org The organization the ASN is registered to Cloudflare, Inc.
domain The website domain of the organization cloudflare.com
abuse Email address for abuse complaints abuse@cloudflare.com
type Type of the organization, see below hosting
created, updated When the ASN was registered and when its record was last updated 2010-07-14, 2017-02-17
rir The Regional Internet Registry responsible for the ASN ARIN

The type is one of:

In the JSON file, every ASN is a key with the same fields, plus prefixes and prefixesIPv6, the lists of all IPv4 and IPv6 prefixes the ASN announces. Inactive ASNs have no prefixes and often less metadata. This is the record of AS12:

{
  "asn": "12",
  "descr": "NYU-DOMAIN - New York University, US",
  "abuser_score": "0 (Very Low)",
  "country": "US",
  "active": true,
  "org": "New York University",
  "domain": "nyu.edu",
  "abuse": "abuse@nyu.edu",
  "type": "education",
  "created": "1984-07-05",
  "updated": "2023-05-25",
  "rir": "ARIN",
  "prefixes": [
    "128.122.0.0/16",
    "128.238.0.0/16",
    "192.76.177.0/24",
    "192.86.139.0/24",
    "216.165.0.0/18",
    "216.165.64.0/19",
    "216.165.88.0/24",
    "216.165.89.0/24",
    "216.165.96.0/20",
    "216.165.102.0/24",
    "216.165.103.0/24",
    "216.165.112.0/21",
    "216.165.120.0/22"
  ],
  "prefixesIPv6": [
    "2607:f600::/32"
  ]
}

# How to Use the ASN Database

Download the sample in JSON format:

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

and read it with Node.js:

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

To look up IP addresses, download the sample in MMDB format and read it with mmdbctl:

curl -O https://ipapi.is/data/samples/asnSample.mmdb
mmdbctl read -f json-pretty 1.6.191.77 asnSample.mmdb

which outputs:

{
  "abuse": "abuse@sifycorp.com",
  "abuser_score": "0 (Very Low)",
  "active": "true",
  "asn": "9583",
  "country": "in",
  "created": "",
  "descr": "SIFY-AS-IN - Sify Limited, IN",
  "domain": "sify.com",
  "ip": "1.6.191.77",
  "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"
}

The MMDB format can be read by the MaxMind DB reader library of every major programming language. In Python:

import maxminddb  # pip install maxminddb

reader = maxminddb.open_database('asnSample.mmdb')
record = reader.get('1.0.0.1')
print('AS' + record['asn'], record['org'], record['type'])

# What is an Autonomous System?

An Autonomous System is a group of IPv4 and IPv6 networks (routes, or prefixes) operated by a single administrative entity, such as an Internet Service Provider, a cloud provider or a large company, under one routing policy.

Autonomous systems exchange routes with the Border Gateway Protocol (BGP): each AS announces its own prefixes to its neighbors, and BGP spreads the information on which AS can reach which network across the Internet. IP is the protocol that carries data between hosts; BGP is the protocol that tells routers which way to send it.

The current version is BGP-4, first specified in 1994 and today defined by RFC 4271 (2006). BGP-4 introduced support for Classless Inter-Domain Routing (CIDR) and route aggregation into supernetworks, which reduced the size of routing tables considerably.

# What is an Autonomous System Number (ASN)?

An ASN is the number that uniquely identifies an Autonomous System. ASNs used to be 16-bit numbers, which allows for at most 65,536 of them. Because the Internet kept growing, the regional Internet registries have also assigned 32-bit ASNs since 2007. One of the earliest ASNs is AS12 of New York University. According to its WHOIS record, AS12 was registered on July 5, 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

New ASNs are registered every day, and 83,158 of them announce prefixes today. The growth is slower than in the 1990s and early 2000s, though: Figure 1 shows the number of unique ASes announced on the Internet, and its slope decreases from 2021 on.

The number of unique autonomous systems announced on the Internet, 1997 to 2023
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 supply of IPv4 addresses has been progressively constrained since 2011, and the address pools of the Regional Internet Registries are exhausted. Yet, as the APNIC authors conclude, this had no visible impact on the growth of the number of announced prefixes, which Figure 2 shows clearly.

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

# Frequently Asked Questions

How do I find the ASN of an IP address?

Look the IP address up in the CSV or MMDB file of the IP to ASN Database, or use the ipapi.is API: its asn object contains the ASN, route, organization and type.

How do I get all IP ranges of an ASN?

The JSON file lists all IPv4 and IPv6 prefixes of every ASN. With an API key, the API returns the same for a single ASN: https://api.ipapi.is?q=AS4851&key=YOUR_API_KEY.

How many ASNs are there?

The database contains 83,158 active ASNs, which announce at least one prefix, and 375,593 inactive ones, which are registered but announce nothing.

What is the difference between the IP to ASN and the IP to Company Database?

The IP to ASN Database names the network that routes an address. The IP to Company Database names the organization the address is registered to. For an address that an ISP has assigned to a business customer, the ASN is the ISP's, while the company is the customer.

How often is the database updated?

Every day. Your download link always serves the latest release.

# ASN Table

The table below lists the 100 largest active ASNs by IPv4 address space. All 10,000 largest are in the list of active ASNs, each with a page of its own. To look up any other ASN, use the API with an API key: https://api.ipapi.is?q=AS4851&key=YOUR_API_KEY


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
37963 Hangzhou Alibaba Advertising Co.,Ltd. CN alibabacloud.com hosting APNIC
17858 POWERVIS AS KR KR lguplus.co.kr business 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 British Telecommunications Limited GB bt.com isp RIPE
6167 Verizon Business US verizon.com isp ARIN
2516 KDDI CORPORATION JP kddi.com isp JPNIC
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
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
4808 China Unicom Beijing Province Network CN chinaunicom.cn isp APNIC
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
45090 Shenzhen Tencent Computer Systems Company Limited CN tencent.com hosting APNIC
33915 Vodafone Libertel B.V. NL vodafone.nl isp RIPE
7029 Windstream Communications LLC US windstream.com isp ARIN
45102 Alibaba (US) Technology Co., Ltd. CN alibaba.com hosting APNIC
26615 TIM S/A BR tim.com.br isp LACNIC
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
3257 GTT Communications Inc. US gtt.net isp RIPE
4804 SingTel Optus Pty Ltd AU optus.com.au isp APNIC
1540 Headquarters, USAISC US army.mil government ARIN
25019 Saudi Telecom Company JSC SA stc.com.sa isp RIPE
2907 Authoritative information regarding AS Number JP - education 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
36947 Telecom Algeria DZ algerietelecom.dz isp AFRINIC
56 United States Department of Defense (DoD) US defense.gov government ARIN
17557 Pakistan Telecommuication company limited PK ptcl.com.pk isp APNIC
680 Verein zur Foerderung eines Deutschen Forschungsnetzes e.V. DE dfn.de isp RIPE
7713 Telekomunikasi Indonesia (PT) ID telkom.co.id isp APNIC
56046 China Mobile Communications Corporation CN chinamobile.com isp APNIC
20001 Charter Communications Inc US charter.com isp ARIN
55836 Reliance Jio Infocomm Limited IN jio.com isp APNIC
36925 MEDITELECOM MA iam.ma isp AFRINIC
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
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
13489 UNE EPM TELECOMUNICACIONES S.A. CO tigo.com.co isp LACNIC

All seven databases are also part of the Business plan, together with the API.