Skip to content

Help center

How to find the ASN of an IP address

Find the autonomous system number and network owner behind an IP address with a free tool, a whois query or the IP API, and read its network type.

Updated 2026-11-23

Enter the IP address in an ASN lookup and read the number, the organization and the network type. With the API, the same data is in the asn object of an IP result. A command-line option is a routing whois query. The number identifies the network, not the person.

What an ASN is

An ASN is the number of an autonomous system, a network that routes traffic as one unit: an internet provider, a cloud platform, a university or a company. Each block of addresses is announced by one. Two uses are common: classifying traffic (home, mobile or data center) and finding which network to contact about abuse.

Free way

  1. Open the ASN lookup and enter an IP address or an AS number such as 15169.
  2. Read the organization, country, network type and the number of ranges announced.
  3. Or use the IP lookup, which shows the ASN next to the location.
  4. Or query a routing database from a terminal. Team Cymru's service accepts an address:
bash
whois -h whois.cymru.com " -v 8.8.8.8"

The output lists the AS number, the announced prefix, the country and the AS name.

With the API

bash
curl https://api.qelka.com/v1/ip \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ip": "8.8.8.8"}'

It costs 1 credit. Read:

json
{
  "asn": { "number": 15169, "org": "Google LLC", "type": "hosting" },
  "flags": { "datacenter": true }
}
Field Meaning
asn.number The autonomous system number.
asn.org The organization that holds it. Null when unknown.
asn.type hosting, isp, mobile, business, education, government or unknown.

asn is null when no known network announces the address. Values are illustrative. Country and ASN data come from IPinfo Lite, credited on the data sources page. See the IP reference.

Read the type

asn.type What it suggests
hosting Servers, cloud or data center. Traffic is usually automated, though cloud desktops and gateways exist.
isp Homes and businesses.
mobile Many users share a few addresses behind carrier-grade NAT. One address says little about one person.
business A company's own network.
education, government Institutions.
unknown Could not be classified.

The type is derived from the network's registered name and a curated list of hosting networks. Treat it as a strong hint. It sits next to flags.datacenter in the result: the flag is set when the type is hosting. See data center IP and Detect VPN and proxy users.

Use it for decisions

  • Rate limiting. Limit a whole hosting network more tightly than home users. See rate limiting.
  • Fraud review. A signup from a hosting network deserves a second step.
  • Abuse reports. The organization is who to contact.
  • Grouping addresses. Attackers often rotate addresses inside one network. The ASN groups them.

Do not block a whole network on one event. You may cut off a university or an office.

Common mistakes

  • Treating the ASN as a person. It identifies a network.
  • Confusing the AS number with the address. An AS announces many ranges.
  • Reading asn: null as an error. No known network announces the address.
  • Querying a private address. It returns 422.
  • Trusting hosting as proof of bad intent. Many legitimate services run there.

Frequently asked questions

What is an ASN?
An autonomous system number identifies a network that routes traffic on the internet as one unit, such as an internet provider, a cloud company or a university. Each IP address block is announced by one. Knowing the number tells you who runs the network, how it is classified and which other addresses sit with it.
How do I find the ASN of an IP address?
Use an ASN lookup tool and enter the address, or query a routing database. The free ASN lookup returns the number, the organization, the country and the network type. With the API, the asn object of an IP result holds the number, organization and type. A whois query to a routing registry gives the same number.
What does the ASN type tell me?
The kind of network: hosting, isp, mobile, business, education, government or unknown. Hosting suggests servers, so traffic from it is probably automated. Isp suggests homes and offices. Mobile means many users share a few addresses. It is classified from the network's registered name and a list of hosting networks, so it is a good hint, not a guarantee.

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