1import requests
2
3url = "https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=live&domainName=google.com"
4response = requests.get(url)
5print(response.text)1import requests
2
3url = "https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=historical&domainName=google.com"
4response = requests.get(url)
5print(response.text)1import requests
2
3url = "https://api.whoisfreaks.com/v1.0/whois?apiKey=API_KEY&whois=reverse&keyword=youtube"
4response = requests.get(url)
5print(response.text)1import requests
2
3url = "https://api.whoisfreaks.com/v1.0/bulkwhois?apiKey=API_KEY"
4headers = {
5 "Content-Type": "application/json",
6}
7payload = '{"domainNames": ["amazon.ch","google.com","whoisfreaks.com","nic.dev","news.si"]}'
8response = requests.get(url, data=payload, headers=headers)
9print(response.text)The WhoisFreaks Python SDK offers robust WHOIS lookup functionality, allowing developers to access both real-time and historical WHOIS data. This enables you to retrieve comprehensive domain registration details, monitor ownership history, and analyze domain changes making it an essential resource for domain research and cybersecurity efforts.
The Python WHOIS SDK package enables you to perform a wide range of WHOIS lookups, including live, historical, reverse, and bulk live lookup queries.
To use the WhoisFreaks Python SDK for WHOIS lookups, follow these steps:
First, ensure that Python and the WhoisFreaks Python SDK are installed on your system. To install the necessary modules, please visit the Installation Steps page.
In all lookups, replace "your_api_key" with your actual API key.
whois_lookup (with whois='live' as param) fetches real-time WHOIS information for a specific domain using the WhoisFreaks WHOIS Lookup service.
whois_lookup(whois='live', api_key='your_api_key', domain_name='example.com')Parameters:
Returns:
For a comprehensive details of response fields, please refer to the WHOIS Live documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.whois_lookup(whois='live', api_key='your_api_key', domain_name='example.com')
response = {k: v for k, v in response.dict().items() if v is not None} # Filtering the Null values
print(response)
except ApiError as e:
print(e.body)bulk_domain_lookup bulk_domain_lookup retrieves live WHOIS data for multiple domains simultaneously using WhoisFreaks' WHOIS Bulk Lookup module. Please note that the maximum limit is 100 domains per request. If you need to perform a live DNS lookup for more than 100 domains, you can contact us or sign in to submit a bulk request via file upload. You may upload a file containing over 100 domains, up to a maximum of 3,000,000.
bulk_domain_lookup(api_key='your_api_key', domain_names=['google.es', 'hey.com', 'jfreaks.com', 'ss.ssss'])Parameters:
Returns:
For a comprehensive details of response fields, please refer to the Bulk WHOIS Live documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.bulk_domain_lookup(api_key='your_api_key', domain_names=['google.es', 'hey.com', 'jfreaks.com', 'ss.ssss'])
response = {k: v for k, v in response.dict().items() if v is not None} # Filtering the Null values
print(response)
except ApiError as e:
print(e.body)whois_lookup (with whois='historical' as param) retrieves historical WHOIS information for a domain using WhoisFreaks' Historical Lookup service.
.whois_lookup(whois='historical', api_key='your_api_key', domain_name='example.com')Parameters:
Returns:
For a comprehensive details of response fields, you can visit the WHOIS Historical's documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.whois_lookup(whois='historical', api_key='your_api_key', domain_name='google.com')
response = {k: v for k, v in response.dict().items() if v is not None} # Filtering the Null values
print(response)
except ApiError as e:
print(e.body)Replace "example.com" with the domain you wish to query.
whois_lookup (with whois='reverse' as param) performs a reverse whois lookup using the WhoisFreaks' reverse lookup module from Python SDK.
whois_lookup(whois='reverse', api_key='your_api_key', keyword='example')Parameters:
Returns:
For detailed info about the response fields, you can visit the Reverse Whois Lookup's documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.whois_lookup(whois='reverse', api_key='your_api_key', keyword='example')
response = {k: v for k, v in response.dict().items() if v is not None} # Filtering the Null values
print(response)
except ApiError as e:
print(e.body)Replace keyword, email, owner, company, and page with the desired keyword, email address, owner name, company name, and page number, respectively.
ip_whois_lookup fetches real-time WHOIS information for a specific domain using the WhoisFreaks WHOIS Lookup service.
ip_whois_lookup(api_key='your_api_key', ip='1.1.1.1')Parameters:
Returns:
For a more details related to the response fields, you can visit the IP Lookup's documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.ip_whois_lookup(api_key='your_api_key', ip='1.1.1.1')
response = {k: v for k, v in response.dict().items() if v is not None} # Filtering the Null values
print(response)
except ApiError as e:
print(e.body)Replace "fe80::200:5aee:feaa:20a2" with the IPv4 or IPv6 you wish to query.
asn_lookup fetches real-time ASN information for a specific Autonomous System Number using the WhoisFreaks ASN Lookup tool.
asn_lookup(api_key='your_api_key', asn='1213')Parameters:
Returns:
For a comprehensive details of response fields, please refer to the ASN Lookup's documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.asn_lookup(api_key='your_api_key', asn='1213')
response = {k: v for k, v in response.dict().items() if v is not None} # Filtering the Null values
print(response)
except ApiError as e:
print(e.body)Replace "AS1213" with the ASN you wish to query.
Offers live, reverse, historical, IP, ASN, and bulk domain WHOIS lookups.
Provides live, reverse, historical, and bulk DNS lookup services.
Checks domain availability across TLDs and suggests alternatives.
Performs SSL lookup and shows certificate chain from start to present.

Use this powerful Python-based SDK to easily integrate, interact with, and manage data from the WhoisFreaks API seamlessly.
whoisfreaks.docs.buildwithfern.com