home
home

API Documentation: ASInfo

ASInfo

The ASInfo API call retrieves information about an AS number. It is based on the AS/BGP report displayed on the website, see for example https://search.dnslytics.com/bgp/as15169. This is a Premium API call, you have to buy API credits.

API request

https://api.dnslytics.net/v1/asinfo/<asn>/summary?apikey=<apikey>

API response

Example

URL

$ curl https://api.dnslytics.net/v1/asinfo/15169/summary?apikey=<apikey>

Output

{
  "status": "succeed",
  "data":
  {
        "question": 15169,
        "typeinfo": "asinfo",
        "shortname": "Google LLC",
        "country": "US",
        "rir": "arin",
        "rirdate": "2000-03-30",
        "ndomains": 6139894,
        "nadultdomains": 21061,
        "nmxrecords": 148455,
        "nnsrecords": 8724,
        "nopenproxies": 6,
        "nspamhosts": 17,
        "rank": 124,
        "prefixesv4":[
                {
                  "prefix": "8.8.4.0/24",
                  "shortname": "Google LLC",
                  "country": "US"
                },
                {"......."}
          ],
        "prefixesv6":[
                {
                  "prefix": "2001:4860::/32",
                  "shortname": "Google LLC",
                  "country": "US"
                },
                {"......."}
          ],
        "peersv4":[
                {
                  "aspeer": 24482,
                  "shortname": "SG.GS",
                  "country": "SG"
                },
                {"......."}
          ],
        "peersv6":[
                {
                  "aspeer": 6939,
                  "shortname": "Hurricane Electric LLC",
                  "country": "US"
                },
                {"......."}
          ],
        "mxrecords":[
                {
                  "mxrecord": "aspmx.l.google.com",
                  "ipv4": "173.194.76.27",
                  "ndomains": 9082074
                },
                {"......."}
          ],
        "nsrecords":[
                {
                  "nsrecord": "ns8.wixdns.net",
                  "ipv4": "216.239.32.101",
                  "ndomains": 415274
                },
                {"......."}
          ],
        "topips":[
                {
                  "ipv4": "23.236.62.147",
                  "ndomains": 3662167,
                  "examples": "number3.co,yamahacostarica.com"
                },
                {"......."}
          ],
        "domains":[
                {
                  "domain": "aaanetworking.net",
                  "ipv4": "8.8.4.1"
                },
                {"......."}
          ]
  }
}