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.
The SDK enables live, historical, and reverse DNS lookups, allowing you to access detailed DNS records essential for network analysis, troubleshooting, and verifying domain configurations. It’s an ideal tool for developers handling DNS data and performing network diagnostics.
This package is for performing any type of DNS lookup, such as live, historical, or reverse lookups.
To utilize the WhoisFreaks Python SDK for DNS Lookups of domain names or IP addresses, 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.
live_dns_lookup performs a live DNS lookup using the WhoisFreaks API. It retrieves real-time DNS information for a specific domain or an IP address.
live_dns_lookup(type='all', api_key='your_api_key', domain_name='example.com', ip_address='1.1.1.1')Parameters:
Returns:
Note: You can enter a domain name, an IPv4 address, or both. For a domain name, all available records of these 8 DNS types will be fetched: A, AAAA, MX, NS, SPF, SOA, TXT, and CNAME. For an IP address, only the PTR record will be fetched.
For complete details on the response fields, please visit the DNS Live Documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.live_dns_lookup(type='all', api_key='your_api_key', domain_name='example.com', ip_address='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 example.com with your specific domain name and 1.1.1.1 with the IP address you wish to query.
bulk_dns_lookup fetches live DNS data for multiple domains or IP addresses at once using WhoisFreaks' DNS Bulk Lookup module. Keep in mind that each request supports up to 100 domains and 100 IPs. To perform lookups for more than 100 domains or IP addresses, you can contact us or sign in and upload a file for bulk processing. Files can contain over 100 entries, with a maximum limit of 3,000,000.
bulk_dns_lookup(type='all', api_key='your_api_key', domain_names=['domain1.com', 'domain2.com'], ip_addresses=['1.1.1.1', '8.8.8.8'])Parameters:
Returns:
Note: You can provide a list of domain names, IPv4 addresses, or both for bulk DNS lookup. For each domain name, all available records of the following 8 DNS types will be retrieved: A, AAAA, MX, NS, SPF, SOA, TXT, and CNAME. For each IPv4 address, only the PTR record will be returned.
For complete details on the response fields, please visit the DNS Bulk Lookup Documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.bulk_dns_lookup(type='all', api_key='your_api_key', domain_names=['domain1.com', 'domain2.com'], ip_addresses=['1.1.1.1', '8.8.8.8'])
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 the domain names and IP addresses with your specific values.
historical_dns_lookup uses the WhoisFreaks Python SDK's historical function to retrieve historical DNS records for a given domain and DNS record type.
historical_dns_lookup(type='all', api_key='your_api_key', domain_name='example.com')Parameters:
Returns:
For a comprehensive details of response fields, you can visit the DNS Historical's documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.historical_dns_lookup(type='all', 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)Replace "example.com" with the domain you wish to query, adjust type as needed, and specify the page number if necessary.
reverse_dns_lookup is used to get data for reverse DNS lookup of any value based on its type.
reverse_dns_lookup(api_key='your_api_key', type='a', value='1.1.1.1')Parameters:
Returns:
Note: The value you enter must correspond to the DNS type. For example, for the aaaa type, the value should be an IPv6 address like 2001:db8::1. For the ns type, the value should be a nameserver such as ns1.google.com.
For detailed info about the response fields, you can visit the Reverse DNS Lookup's documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.reverse_dns_lookup(api_key='your_api_key', type='a', value='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 "1.1.1.1" with the IP address you wish to query, adjust dns type as needed, and specify the page number if necessary.
The WhoisFreaks Python SDK allows you to fetch SSL certificate details for any domain, including the certificate’s validity period, issuing authority, and other essential information. This helps ensure secure communication, verify website authenticity, and is crucial for maintaining web security and protecting online transactions.
This package is for performing any type of SSL lookup.
To utilize the WhoisFreaks Python SDK for SSL Lookup of domain names, 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.
ssl_live_lookup retrieves live SSL information for a specific domain using the Python SDK's SSL endpoint.
ssl_live_lookup(api_key='your_api_key', domain_name='google.com')Parameters:
Returns:
For a comprehensive details of response fields, please visit the SSL Live Lookup Documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.ssl_live_lookup(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 "google.com" with the domain you wish to query.
The WhoisFreaks Python SDK allows developers to check the availability of domain names, making it easier to identify domains that are open for registration. This functionality supports domain acquisition, brand protection, and strategic management of digital assets by uncovering new domain opportunities.
This package is for performing any type of Domain Availability Lookup.
To utilize the WhoisFreaks Python SDK for checking the availability of domain names, 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.
domain_availability_lookup performs a domain availability check using the WhoisFreaks API. It checks whether a specific domain name is available for registration.
domain_availability_lookup(api_key='your_api_key', domain='google.com', sug=True)Parameters:
Returns:
For a comprehensive details of response fields, please visit the Domain Availability Lookup Documentation.
Example Usage:
from whoisfreaks import WhoisfreaksApi
from whoisfreaks.core.api_error import ApiError
client = WhoisfreaksApi()
try:
response = client.domain_availability_lookup(api_key='your_api_key', domain='google.com', sug=True)
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 "whois.com" with the domain you wish to check.