IP Detection
ASN lookup API
The autonomous system an IP belongs to and what kind of network it is.
Get the ASN
GET/v1/asn/{ip}
API key
Parameters
- ipstringpathRequired
IPv4 or IPv6 address.
Response fields
- ipstring
IP address that was checked.
- asnstring
Autonomous system number, such as AS15169.
- namestring
Name of the organisation that runs the network.
- typestring
hosting, isp, vpn, education, government, mobile or unknown.
- countrystring
Country the ASN is registered in.
curl https://ipscanner.io/v1/asn/1.1.1.1 \
-H "Authorization: Bearer YOUR_API_KEY"Response
{
"ip": "1.1.1.1",
"asn": "AS13335",
"name": "CLOUDFLARENET",
"type": "hosting",
"country": "US"
}