API: HostingHistory

This API call returns the IP/DNS history for a specific domain. The following records are supported: A, AAAA, MX, NS and SPF. This is a Premium API call, you have to buy API credits here (https://dnslytics.com/api).

API request and parameters

https://api.dnslytics.net/v1/hostinghistory/<domain>?apikey=<apikey>

Parameter:

domain:The requested domain name
apikey:Your API key

API response

A JSON object with the following fields:

status:Status of API call: succeed or error.
question:The requested AS number.
typeinfo:Data type returned, always ‘hostinghistory’.
ipv4:Array of IPv4 history records with IPv4 and lastseen date.
ipv6:Array of IPv6 history records with IPv6 and lastseen date.
mx:Array of MX history records with MX record and lastseen date.
ns:Array of NS history records with NS record and lastseen date.
spf:Array of SPF history records with SPF record and lastseen date.

A maximum of 2,500 history records per type are returned.

Example

$ https://api.dnslytics.net/v1/hostinghistory/dnslytics.com?apikey=<apikey>
{
        "status": "succeed",
        "data":
        {
                "question": "dnslytics.com",
                "typeinfo": "hostinghistory",
                "ipv4":[
                        {
                          "ip": "104.27.179.200",
                          "updatedate": "2018-04-29"
                        },
                        {"..."}
                ],
                "ipv6":[
                        {
                          "ip": "2400:cb00:2048:1::681b:b2c8",
                          "updatedate": "2018-04-29"
                        },
                        {"..."}
                ],
                "dns":[
                        {
                          "dns": "cody.ns.cloudflare.com",
                          "updatedate": "2018-04-29"},
                        {"..."}
                ],
                "mx":[
                        {
                          "mx": "mx1.emailowl.com",
                          "updatedate": "2018-04-29"},
                        {"..."}
                ],
                "spf":[
                        {
                          "record": "v=spf1 ip4:5.45.109.92 include:smtp1.uservoice.com ~all",
                          "updatedate":"2018-04-29"
                        },
                        {"..."}
                ]
        }
}