Skip to main content
Telecommunications|Network Security Analyst / Threat Researcher

ASN & Network Intelligence

Inspect ASN ownership, announced prefixes, and available routing evidence

Inspect ASN ownership, announced prefixes, and available routing evidence. Use the API workflow below to collect dated findings, review their scope, and decide which follow-up checks your team needs.

Implementation example by the EdgeDNS team · Updated

The Challenge

IP ownership and routing context can change, and bounded data-source coverage leaves gaps.

The Solution

Use ASN, prefix, IP range, WHOIS, and geolocation endpoints to investigate a network. Inspect RPKI coverage and unknown results; prefix validation may be capped. These snapshots do not provide a continuous BGP event stream or guarantee detection of hijacks.

Endpoints Used

Combine these EdgeDNS endpoints to build this solution.

GET
/v1/network/asnAPI reference

ASN Lookup: Get AS number, organization, and network type

GET
/v1/network/asn/prefixesAPI reference

ASN Prefixes: Get all IPv4/IPv6 prefixes announced by an ASN

GET
/v1/ip/rangeAPI reference

IP Range: Get CIDR range details and ownership info

GET
/v1/ip/whoisAPI reference

IP WHOIS: Get WHOIS registration data for an IP

GET
/v1/network/macAPI reference

MAC Vendor: Identify vendor, VM, and randomized MAC detection

GET
/v1/ip/geolocationAPI reference

IP Geolocation: Get location, ASN, and org for an IP

What this workflow helps you do

Map addresses to networks

Review available ASN and ownership context.

Inspect prefix and RPKI coverage

Distinguish checked prefixes from unknown or untested entries.

Corroborate routing incidents

Use routing telemetry and operator evidence alongside snapshots.

Code Example

Inspect ASN ownership, announced prefixes, and available routing evidence

javascript
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const checks = [
  {
    "path": "/v1/network/asn",
    "params": {
      "ip": "8.8.8.8"
    }
  },
  {
    "path": "/v1/network/asn/prefixes",
    "params": {
      "asn": "13335"
    }
  },
  {
    "path": "/v1/ip/range",
    "params": {
      "ip": "8.8.8.0/24"
    }
  }
];

// Run sequentially to keep concurrency bounded. API tier restrictions apply.
for (const { path, params } of checks) {
  const url = new URL(path, 'https://api.edgedns.dev');
  url.search = new URLSearchParams(params).toString();
  const response = await fetch(url, { headers });
  const result = await response.json();
  if (!response.ok) {
    throw new Error(`${path}: ${response.status} ${result.error?.message ?? 'Request failed'}`);
  }
  // Keep the response metadata and any partial/unknown findings for review.
  console.log(path, result);
}

Learn More

Explore industry standards and best practices related to this use case.

Ready to build ASN & Network Intelligence?

Get started with 200 free API requests per month. No credit card required.

Other Use Cases

ASN & Network Intelligence Lookup | EdgeDNS