Whois Nmmapper Api

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.

import requests
headers= {"X-Auth-Email":"youremail@something-here-re.com"}

# or if you want to use api X-AUTH-KEY and api X-AUTH-SECRET
headers = {"X-AUTH-SECRET":"", "X-AUTH-KEY":""}
   
url="https://api.nmmapper.com/api/v1/whois/?domain=nmmapper.com"
res = requests.get(url, headers=headers)
#
res.json()

{'domain_name': 'NMMAPPER.COM',
 'registrar': 'NameCheap, Inc.',
 'whois_server': 'whois.namecheap.com',
 'referral_url': None,
 'updated_date': '2022-03-01T07:15:53',
 'creation_date': '2018-10-24T12:08:16',
 'expiration_date': '2024-10-24T12:08:16',
 'name_servers': ['ADI.NS.CLOUDFLARE.COM', 'GORDON.NS.CLOUDFLARE.COM'],
 'status': 'clientTransferProhibited https://icann.org/epp#clientTransferProhibited',
 'emails': 'abuse@namecheap.com',
 'dnssec': 'signedDelegation',
 'name': None,
 'org': None,
 'address': None,
 'city': None,
 'state': None,
 'registrant_postal_code': None,
 'country': None}
#