A simple, free utility to find the ASN for any IP address.
To get the ASN for a specific IP address, use the /lookup/:ip
or /api/v1/:ip
endpoint.
Example with curl
:
curl https://ip2asn.ipinfo.app/lookup/1.1.1.1
Example Response:
{
"ip": "1.1.1.1",
"announcedBy": [
{
"asn": 13335,
"name": "CLOUDFLARENET",
"subnet": "1.1.1.0/24"
}
],
"error": null
}
To find the ASN for your own IP address, use the /lookup/@me
endpoint. This will redirect you to the result.
Example with curl
:
curl https://ip2asn.ipinfo.app/lookup/@me
This suite of tools is a one-person operation, crafted to be simple, free, and powerful for everyone. If you find them useful, your support is much appreciated and helps cover server costs, development, and keeps the coffee flowing!
Buy me a coffee ☕