Skip to main content
Guides/Network & IP

ASN Lookup: Understand and Use the Results

Get AS number, organization, and network type

EdgeDNS Team·Updated ·6 min read

ASNs: the postcodes of the internet's network map

An ASN (Autonomous System Number) is a unique number assigned to every "network" on the public internet. An autonomous system is a chunk of the internet that is run as a single administrative unit — a single ISP, a single big company's network, a single cloud provider, a single university. The internet is, structurally, a network of about 100,000 of these autonomous systems all exchanging traffic with each other through a routing protocol called BGP (Border Gateway Protocol). Every IP address on the public internet "belongs" to exactly one ASN, and the ASN is the answer to the question, "who actually runs the network this address sits on?"

You should care because the ASN is the most stable, useful identity an IP address has. Individual IPs change hands all the time (a hosting provider sells one to a customer, a customer migrates to a new ISP, a corporate office moves), but the ASN tells you the organization that controls the network. That is the answer to many practical questions: which cloud provider hosts this competitor? Which ISP serves my customers in Berlin? Is this attacking IP address coming from a residential network or a known bad-actor data center? Is the country a particular IP block is geolocated in actually consistent with the ASN's known coverage area?

The six things every ASN check looks at:

  • The ASN itself. A number, e.g. `AS13335` (Cloudflare) or `AS15169` (Google).

  • The organization name. Cloudflare, Google, Amazon, Microsoft, Comcast, BT, etc.

  • The network type. Hosting, ISP, enterprise, education, or government — and whether that classification came from a curated database or was inferred from the AS description (a useful trust signal).

  • The country of registration. The country the ASN was registered in (which may differ from where its IPs actually serve traffic).

  • The IP prefix the ASN currently announces. The CIDR block that contains the queried IP, plus the BGP-advertised range.

  • The prefix's RPKI status. A `valid` / `invalid_asn` / `invalid_length` / `unknown` verdict against published Route Origin Authorizations — the canonical way to detect prefix hijacks and route leaks (RFC 6811).

Three questions an ASN check answers:

  • Who actually runs the network behind this IP address?

  • For a sales call, is this prospect on AWS, Google Cloud, Azure, or somewhere more obscure?

  • For an abuse investigation, which ISP do I need to contact to file a complaint?

The cost of skipping ASN data is making decisions about traffic without knowing who is responsible for it. The fix is one lookup per IP. ASNs and their underlying routing data are publicly available through services like bgp.he.net and the regional internet registries. The BGP protocol itself is defined in RFC 4271.

The ASN Lookup endpoint, in plain language

Get AS number, organization, and network type

ASN (Autonomous System Number) data reveals the organization behind an IP (Internet Protocol address) address, which is more reliable than reverse DNS (Domain Name System) or WHOIS (who is). It's essential for threat intelligence enrichment, abuse reporting, traffic segmentation, and understanding whether visitors come from residential ISPs, cloud hosting, or enterprise networks. Network type classification helps distinguish legitimate users from potential automated threats originating from hosting infrastructure. RPKI status flags prefixes that are being announced by an unauthorized AS — the bedrock signal for BGP hijack and route-leak detection (RFC (Request for Comments) 6811).

What is actually happening when you call it

Identifies the Autonomous System Number (ASN) responsible for routing traffic for an IP (Internet Protocol address) address. Returns the AS number, AS name (e.g., CLOUDFLARENET), organization (e.g., Cloudflare, Inc.), registration country, network type classification (ISP, hosting provider, enterprise, education, or government), `type_source` so callers know whether the type came from a curated list or was inferred from the AS description, and the prefix's RPKI ROA validity (valid / invalid_asn / invalid_length / unknown) — the canonical signal for detecting BGP hijacks. Cloudflare edge-level ASN data is supplemented with a curated database of major global networks plus a Team Cymru fallback that covers every allocated AS.

Why this specific tool matters

Choose a task: Threat Intelligence Enrichment. Enrich IOCs (Indicators of Compromise) with ASN (Autonomous System Number) data to identify malicious hosting providers, bulletproof hosters, and attacker infrastructure patterns across autonomous systems.

Run the ASN Lookup request below and retain the input and observed result. Before changing configuration, compare the relevant fields with the value or policy you expected. Use the ASN Lookup reference to check the field definitions and supported options.

Info:

Available on the free plan. The technical details: `GET /v1/network/asn`.

When would I actually use this?

Threat Intelligence Enrichment

Enrich IOCs (Indicators of Compromise) with ASN (Autonomous System Number) data to identify malicious hosting providers, bulletproof hosters, and attacker infrastructure patterns across autonomous systems.

Use the finding: Build comprehensive threat profiles with network ownership context and identify clusters of malicious activity by ASN (Autonomous System Number).

Bot & Fraud Detection

Classify traffic by ASN (Autonomous System Number) type to detect automated requests originating from hosting/cloud providers vs legitimate user traffic from residential ISPs.

Use the finding: Reduce false positives in bot detection by combining ASN (Autonomous System Number) type with behavioral signals.

Traffic Analysis & Segmentation

Analyze website traffic by ASN (Autonomous System Number) to identify visitor organizations (B2B enterprise visitors vs residential consumers vs cloud crawlers).

Use the finding: Segment traffic by organization type for account-based marketing, lead scoring, and accurate analytics.

The easiest way: just ask your AI assistant

Connect the MCP server. Just ask in plain English:

Use network_asn with ip=8.8.8.8. Show the returned findings, identify unavailable evidence, and explain a useful next check.

Confirm the tool and inputs in the client before accepting its summary. For ASN Lookup, use the response fields below to separate observations from recommendations.

Tip:

The dedicated MCP server is available on every plan. Individual tool access and request limits depend on your plan. Management categories and endpoints disabled for the tool catalog are not exposed through MCP.

The technical way: call it from code

This ASN Lookup request uses the example inputs from its API contract. Replace YOUR_API_KEY with a key on the free plan or higher; adapt the target to your task.

bash
curl --request GET 'https://api.edgedns.dev/v1/network/asn?ip=8.8.8.8' \
  --header "Authorization: Bearer YOUR_API_KEY"

Prepare inputs for ASN Lookup

Start with the inputs below. Keep the same hostname, path, and options when comparing ASN Lookup observations. The API reference contains the complete parameter contract, optional settings, and access requirements.

FieldTypeRequired?What it meansExample

ip

string

Yes

The IPv4 (Internet Protocol version 4) or IPv6 (Internet Protocol version 6) address to lookup ASN (Autonomous System Number) for

8.8.8.8

Interpret ASN Lookup findings

Read these fields alongside the full response from your ASN Lookup check. A missing value or failed lookup is different from a passing result. Keep returned errors and confidence or cache metadata when available; do not replace missing evidence with a successful default. See the complete response reference for additional fields.

FieldTypeWhat you'll see in it

ip

string

The queried IP (Internet Protocol address) address

ip_version

number

IP (Internet Protocol address) version (4 or 6)

asn.number

number

Autonomous System Number (e.g., 13335)

Words you might be wondering about

DNS (Domain Name System) — The internet's address book. When you type a website name, DNS turns it into the actual numeric address computers use to find each other.

IP (Internet Protocol address) — A unique number that identifies a computer on the internet, like a phone number for a server.

ASN (Autonomous System Number) — A unique number assigned to a big network operator (like an ISP or cloud provider). Tells you who owns a chunk of the internet.

WHOIS (who is) — A public record that tells you who registered a domain name, when, and through which company. Modern WHOIS is now called RDAP but most people still say 'WHOIS'.

RFC (Request for Comments) — The official internet standards documents. When someone says 'RFC 8484' they mean a specific numbered standards document — in that case, the one defining DNS over HTTPS.

Need Programmatic Access?

Automate domain intelligence with 100+ API endpoints and a free MCP server for AI integration.

ASN Lookup: Results Guide | EdgeDNS