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.
/v1/network/asnAPI referenceASN Lookup: Get AS number, organization, and network type
/v1/network/asn/prefixesAPI referenceASN Prefixes: Get all IPv4/IPv6 prefixes announced by an ASN
/v1/ip/rangeAPI referenceIP Range: Get CIDR range details and ownership info
/v1/ip/whoisAPI referenceIP WHOIS: Get WHOIS registration data for an IP
/v1/network/macAPI referenceMAC Vendor: Identify vendor, VM, and randomized MAC detection
/v1/ip/geolocationAPI referenceIP 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
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.
Hurricane Electric BGP Toolkit
Widely used BGP looking glass and ASN/prefix analysis toolkit for network research
RIPEstat - Internet Data Analytics
RIPE NCC's platform for IP, ASN, and routing data analysis with comprehensive APIs
Team Cymru: IP to ASN Mapping
Industry-standard IP to ASN mapping service used by security researchers worldwide
Ready to build ASN & Network Intelligence?
Get started with 200 free API requests per month. No credit card required.
Other Use Cases
SOC Alert Enrichment
Add domain and IP context to incident alerts
Threat Intelligence Analyst / SOC ManagerIP Threat Intelligence & Abuse Management
Combine IP reputation, privacy classification, and ownership context
Product Engineer / International Growth TeamIP Geolocation for Content Localization
Suggest a regional experience while keeping the visitor in control