Getting Reverse IP data use case.
Very often for Webmasters or SEO professionals it is needed to check Reverse IP information for given IP address or even automate the process and there is a very useful online service for web developers and SEO professionals
on "WhoisXML API" that
provides Domain & IP Data Intelligence for Greater Enterprise Security and RESTful APIs that we will use.
Using it's APIs you can perform many handy data requests, for example you can get Reverse IP details - don't forget to get your API KEY.
With one API call you will obtain ready to use parsed JSON file with all domains associated with specified IP address via API.
You can determine which domains might be using the same IP to host your websites’ contents and allows you to check if your IP address is shared or dedicated and serves several purposes.
Python Knowledge Base: Make coding great again.
- Updated:
2024-12-01 by Andrey BRATUS, Senior Data Analyst.
Python code to obtain Reverse IP data using API:
Reverse IP data output:
This Python script below will use information from "WhoisXML API" and provide you a result in a JSON format without the need to use web a browser.
The process of getting Reverse IP detais can be easily automated now !
# Reverse IP API USE
import requests
# IP = '40.81.94.43'
IP = '5.255.255.5'
APIKEY ='at_ZUVkrukr4UHznQq2j6dyv2VhhhWYV'
ReverseIPURL = f'https://dns-history.whoisxmlapi.com/api/v1?apiKey={APIKEY}&ip={IP}&outputFormat=JSON'
r = requests.get(ReverseIPURL)
ReverseIP = r.json()
print(f'Reverse IP info for {IP} .\n')
ReverseIP
Reverse IP info for 5.255.255.5 .
{'current_page': '0',
'size': 10,
'result': [{'name': '04r.kz',
'first_seen': 1627430400,
'last_visit': 1661644800},
{'name': 'lortimes.com', 'first_seen': 1658016000, 'last_visit': 1662336000},
{'name': 'tel.yandex.ru',
'first_seen': 1658966400,
'last_visit': 1661040000},
{'name': 'xn--d1acpjx3f.xn--p1ai',
'first_seen': 1570752000,
'last_visit': 1662163200},
{'name': 'yandex.by', 'first_seen': 1570147200, 'last_visit': 1662163200},
{'name': 'yandex.kz', 'first_seen': 1570147200, 'last_visit': 1661731200},
{'name': 'yandex.ru', 'first_seen': 1570147200, 'last_visit': 1663113600},
{'name': 'yandsearch.yandex.by',
'first_seen': 1634774400,
'last_visit': 1661990400},
{'name': 'yandsearch.yandex.kz',
'first_seen': 1636675200,
'last_visit': 1661990400},
{'name': 'yandsearch.yandex.ru',
'first_seen': 1635724800,
'last_visit': 1661990400}]}