ASN Classification (Deprecated) API
developer/v1/network/asn-reputationDeprecated 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
Legacy Integration Migration
Recognize the deprecation response and move to IP Privacy.
Avoid treating static classification as live reputation evidence.
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
asn | query | string | Required | Digits 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.
| Field | Type | Description |
|---|---|---|
asn | number | Queried ASN. |
classification | string | hosting, vpn, mixed, isp or unknown. |
provider | string|null | Provider from a static table, if known. |
reputation_label | string | Static classification label; not an abuse measurement. |
signals | object | is_known_hosting and is_known_vpn flags. |
policy_recommendations | string[] | Generic classification-based suggestions. |
deprecated | boolean | Always true. |
see_instead | string | Always /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 --request GET 'https://api.edgedns.dev/v1/network/asn-reputation?asn=13335' \
--header "Authorization: Bearer YOUR_API_KEY"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);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.