Whois Nmmapper Api WHOIS is a query and response protocol
WHOIS is a query and response protocol that is widely used for querying databases that store the registered users or assignees of an Internet resource, such as a domain name, an IP address block or an autonomous system.
Nmmapper offers whois lookup.
1import requests
2headers= {"X-Auth-Email":"youremail@something-here-re.com"}
3
4 # or if you want to use api X-AUTH-KEY and api X-AUTH-SECRET
5headers = {"X-AUTH-SECRET":"", "X-AUTH-KEY":""}
6
7url="https://api.nmmapper.com/api/v1/whois/?domain=nmmapper.com"
8res = requests.get(url, headers=headers)
9res.json()
10
11{'domain_name': 'NMMAPPER.COM',
12'registrar': 'NameCheap, Inc.',
13'whois_server': 'whois.namecheap.com',
14'referral_url': None,
15'updated_date': '2022-03-01T07:15:53',
16'creation_date': '2018-10-24T12:08:16',
17'expiration_date': '2024-10-24T12:08:16',
18'name_servers': ['ADI.NS.CLOUDFLARE.COM', 'GORDON.NS.CLOUDFLARE.COM'],
19'status': 'clientTransferProhibited https://icann.org/epp#clientTransferProhibited',
20'emails': 'abuse@namecheap.com',
21'dnssec': 'signedDelegation',
22'name': None,
23'org': None,
24'address': None,
25'city': None,
26'state': None,
27'registrant_postal_code': None,
28'country': None
29}
30#