Get started

ASNLookup API provides an easy, fast and reliable programmatic way to quickly look up information about ASN, organization, CIDR, or registered IP addresses (IPv4 and IPv6) among other relevant data in a simple and effective manner.

To use this API, you need an API key. Please sign up to get your own API key.

If you run into an issue, kindly reach out to us: [email protected]

Get ASN Data

# Here is a curl example
curl -i -s -k -X 'GET' '' \
-H 'Host:' \
-H 'X-Rapidapi-Host:' \
-H 'X-Rapidapi-Key: 1234184324abc1d88bfe2f60b28bp16e349jsncc0a5f92df8c'

To get ASN data you need, make a GET call to the following url :

Only one query parameter is allowed in an API call.

HTTP response is returned in JSON format.

Result example :
    "asnHandle": 13414,
    "asnName": "TWITTER",
    "orgID": "TWITT-ARIN",
    "orgName": "TWITTER",
    "orgCountry": "US",
    "ipv4_prefix": [
    "ipv6_prefix": [


Field Type Description
asn String AS number (e.g: AS32934 or 32934)
orgname String Organization name (e.g: Facebook)
cidr String IPv4/IPv6 CIDR (e.g: or 2620:0:1c00::/40)
ip String IPv4/IPv6 address (e.g: or 2400:6180:0:d1::79b:1)


The ASNLookup API uses the following error codes:

Error Code Meaning
404 The resource was not found.
403 GET parameter is invalid.
403 Only one query parameter is allowed in a GET call.
403 Parameter value is not valid.
403 Invalid API key - You're not subscribed to this API.