ASN Info API Reference
Get details about an Autonomous System Number (ASN): organization, country, abuse contacts, allocation date, and the announced IPv4 and IPv6 prefixes.
Service details and pricing: ASN Info API
Request example
Query the endpoint via an HTTPS POST request (replace YOUR_API_KEY_HERE with your API key):
curl -X POST "https://api.apivoid.com/v2/asn-info" \
-H "Content-Type: application/json" \
-H "X-API-Key: YOUR_API_KEY_HERE" \
-d '{"asn": "AS14061"}'The same request in PHP:
$asn = 'AS14061';
$apiKey = 'YOUR_API_KEY_HERE';
$curl = curl_init('https://api.apivoid.com/v2/asn-info');
curl_setopt($curl, CURLOPT_HTTPHEADER, ['Content-Type: application/json', 'X-API-Key: ' . $apiKey]);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode(['asn' => $asn]));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($curl);
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
curl_close($curl);
if ($httpCode === 200) {
$responseData = json_decode($response, true);
print_r($responseData);
} else {
print_r('An error occurred: '.$response);
}Request parameters
Required
ASN to submit, e.g. AS14061.
Response example
A successful request returns HTTP 200 with a JSON body:
{
"asn": "AS14061",
"asname": "DIGITALOCEAN-ASN",
"status": "active",
"org": "DigitalOcean, LLC",
"country_code": "US",
"created": "2012-09-25",
"days_since_created": 4754,
"months_since_created": 156,
"years_since_created": 13,
"updated": "2025-03-04",
"days_since_updated": 211,
"months_since_updated": 6,
"years_since_updated": 0,
"address": "105 Edgeview Drive, Suite 425, Broomfield, CO, 80021, United States",
"abuse_email": "abuse@digitalocean.com",
"domain": "digitalocean.com",
"type": "hosting",
"routes": {
"ipv4": {
"total_prefixes": 821,
"total_ips": 3021312,
"prefixes": [
"103.253.144.0/22",
"104.131.0.0/18",
"104.131.128.0/20",
...
]
},
"ipv6": {
"total_prefixes": 17,
"total_ips": "328827822935179135520079872",
"prefixes": [
"2400:6180:100::/40",
"2400:6180:10::/48",
"2400:6180::/48",
...
]
}
},
"rir": "ARIN"
}Response fields
The fields returned in the JSON response:
asnstring
Autonomous System Number (ASN) submitted, e.g. AS14061.
asnamestring
Name assigned to the autonomous system.
statusstring
Registration status of the ASN, e.g. active.
orgstring
Organization that owns the ASN.
country_codestring
Country code (e.g. US) where the ASN is registered.
createdstring
Date the ASN was registered, format is Y-m-d.
days_since_createdinteger
ASN age shown in number of days.
months_since_createdinteger
ASN age shown in number of months.
years_since_createdinteger
ASN age shown in number of years.
updatedstring
Date the ASN record was last updated, format is Y-m-d.
days_since_updatedinteger
Time since the last record update shown in number of days.
months_since_updatedinteger
Time since the last record update shown in number of months.
years_since_updatedinteger
Time since the last record update shown in number of years.
addressstring
Registered postal address of the organization.
abuse_emailstring
Email address to report abuse related to the ASN.
domainstring
Website domain of the organization.
typestring
Type of the ASN, e.g. hosting, isp, business.
routes → ipv4 → total_prefixesinteger
Number of IPv4 prefixes announced by the ASN.
routes → ipv4 → total_ipsinteger
Total number of IPv4 addresses announced by the ASN.
routes → ipv4 → prefixesarray
List of IPv4 prefixes (CIDR notation) announced by the ASN.
routes → ipv6 → total_prefixesinteger
Number of IPv6 prefixes announced by the ASN.
routes → ipv6 → total_ipsstring
Total number of IPv6 addresses announced by the ASN (returned as string due to size).
routes → ipv6 → prefixesarray
List of IPv6 prefixes (CIDR notation) announced by the ASN.
rirstring
Regional Internet Registry that assigned the ASN, e.g. ARIN, RIPE.