home
home

API Documentation: IPInfo

IPInfo

The IPInfo API call retrieves information about an IPv4 address. It is based on the IPv4 address report displayed on the website, see for example https://search.dnslytics.com/ip/188.114.97.3. This is a Premium API call, you have to buy API credits.

API request

https://api.dnslytics.net/v1/ipinfo/<ip or hostname>?apikey=<apikey>

API response

Example

URL

$ curl https://api.dnslytics.net/v1/ipinfo/104.27.179.200?apikey=<apikey>

Output

{
        "status": "succeed",
        "data":
        {
                "question": "104.27.179.200",
                "typeinfo": "ipinfo",
                "asinfo":
                {
                        "asn": 13335,
                        "ip_start": "104.27.176.0",
                        "ip_end": "104.27.191.255",
                        "subnet": 20,
                        "cidr": "104.27.176.0/20",
                        "shortname": "Cloudflare, Inc."
                },
                "shortname":"Cloudflare, Inc.",
                "ptr":"",
                "ndomains":138,
                "domains":[
                        "dnslytics.com",
                        "..."
                ],
                "nmxrecords": 0,
                "mxrecords": [],
                "nnsrecords": 0,
                "nsrecords": [],
                "hostinghistory":
                {
                        "ndomains": 201,
                        "nmxrecords": 19,
                        "nnsrecords": 0
                },
                "subnethosting":
                {
                        "ips": [
                        {
                                "ip": "104.27.179.0",
                                "count": 1,
                                "example": "example.com"
                        },
                        {"..."}
                        ]
                },
                "blocklist":
                {
                        "dnsblcountsubnet": 0,
                        "dnsbl": false,
                        "adulthosting": false,
                        "mthreats": false,
                        "openproxy": false
                },
                "geoinfo":
                {
                        "country_code": "US",
                        "country_name": "United States",
                        "capital": "Washington",
                        "areainsqkm": "9629091",
                        "population": 310232863,
                        "continent": "NA",
                        "currency": "USD",
                        "currencyname": "Dollar",
                        "tldn": ".us"
                }
        }
}