Skip to content

Glossary

ASN: autonomous system number

An ASN identifies a network that announces IP addresses on the internet, per RFC 6996 and RFC 4271 (BGP). What it tells you about an IP and its limits.

Updated 2026-11-23

An autonomous system number (ASN) identifies a network that takes part in internet routing under a single, consistent policy. Each internet service provider, cloud provider, university and many large companies hold one or more. The ASN is how the internet's routers know who announces which IP addresses.

How it works

The internet is a mesh of autonomous systems that exchange routes using the Border Gateway Protocol, BGP, specified in RFC 4271. An autonomous system announces the IP prefixes it can deliver, and neighbors pass those announcements along. The path of ASNs a route has taken is how routers choose where to send traffic.

Item Detail
Format A number such as 15169, originally 16 bits, now 32 bits (RFC 6793)
Assigned by Regional internet registries, such as ARIN, RIPE NCC and APNIC
Private ranges 64512 to 65534 and 4200000000 to 4294967294 for internal use (RFC 6996)
Announces A list of CIDR prefixes

An IP address belongs to the ASN that announces its prefix. A reverse lookup of an address gives that ASN, the organization's name and often the country of registration.

Networks fall in kinds, which is what matters in practice:

Kind What it implies
ISP Home and business customers
Mobile Many users behind shared addresses
Hosting Servers, datacenter IP traffic
Education, government, business The organization's own users

A company can run several ASNs, and organization names change after mergers, so the same network may appear under different names over time.

Why it matters for validation

The ASN is the best single clue about where an IP's traffic comes from. A signup from a hosting network is very unlike one from a home ISP, and a mobile ASN means shared addresses where one IP says little about one person.

In the IP API, asn.number and asn.org name the network, and asn.type classifies it as hosting, isp, mobile, business, education, government or unknown. Qelka reads ASN and country from IPinfo Lite. The flags.datacenter signal is set when the network is classified as hosting. The classification comes from the network's registered name and a curated list of hosting networks, so it is best effort.

Use cases:

  • Flag traffic from hosting ASNs on forms made for people.
  • Group abuse by network and block at that level when one ASN is the source.
  • Skip the signal on mobile ASNs, where it is weak.

The field is null when the address is not announced by a known network. See ASN lookup to explore networks by hand.

Frequently asked questions

What is an ASN?
An autonomous system number is a unique number identifying a network, or group of networks, under one routing policy on the internet. Internet service providers, hosting companies, universities and large businesses each have one. ASNs are used by BGP, the protocol that routes traffic between networks, and are assigned by regional internet registries.
How do I find the ASN of an IP address?
Look the address up in a routing or registry dataset that maps IP prefixes to the autonomous system announcing them. The ASN lookup and the IP lookup do that. The Qelka IP API returns it in the asn object with number, org and type.
Does an ASN identify a person or a company?
It identifies a network operator, not a user. An ISP's ASN covers millions of customers, so the ASN of an address says which network it belongs to, not who uses it. For businesses and hosting providers it points to the organization that runs the network.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time