Skip to main content

ASN Classification (Deprecated) API

developer
GET/v1/network/asn-reputation

Deprecated compatibility endpoint backed by static hosting and VPN ASN lookup tables. It does not measure current ASN-wide abuse or aggregate IP reputation. Use IP Privacy for IP-level classification.

What It Does

Accepts a numeric ASN and returns classification, provider, a table-derived reputation label, signals and policy recommendations. The response explicitly includes deprecated=true and see_instead=/v1/ip/privacy. The label is not evidence that an ASN or its customers are malicious.

Why It's Useful

Maintain an existing integration while migrating classification checks to the supported IP Privacy endpoint.

Use Cases

Developer

Legacy Integration Migration

Recognize the deprecation response and move to IP Privacy.

Avoid treating static classification as live reputation evidence.

Parameters

NameLocationTypeRequiredDescription
asnquerystringRequiredDigits only, without an AS prefix.Example: 13335

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
asnnumberQueried ASN.
classificationstringhosting, vpn, mixed, isp or unknown.
providerstring|nullProvider from a static table, if known.
reputation_labelstringStatic classification label; not an abuse measurement.
signalsobjectis_known_hosting and is_known_vpn flags.
policy_recommendationsstring[]Generic classification-based suggestions.
deprecatedbooleanAlways true.
see_insteadstringAlways /v1/ip/privacy.

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the developer plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/network/asn-reputation?asn=13335' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/network/asn-reputation?asn=13335",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/network/asn-reputation?asn=13335",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Related Endpoints

External References

Learn more about the standards and protocols behind this endpoint.

ASN Classification (Deprecated) API Reference | EdgeDNS