All URIs are relative to https://api.whoisfreaks.com
| Method | HTTP request | Description |
|---|---|---|
| bulk_whois | POST /v2.0/bulkwhois/live | Bulk WHOIS Lookup |
| whois_history | GET /v2.0/whois/history | Historical WHOIS records for a domain |
| whois_live | GET /v2.0/whois/live | Live WHOIS Lookup |
| whois_reverse | GET /v2.0/whois/reverse | Reverse WHOIS lookup by keyword |
BulkWhoisResponse bulk_whois(bulk_whois_request, format=format)
Bulk WHOIS Lookup
Up to 100 domains in one request. 1 credit per successful domain.
- Api Key Authentication (ApiKeyAuth):
import whoisfreaks
from whoisfreaks.models.bulk_whois_request import BulkWhoisRequest
from whoisfreaks.models.bulk_whois_response import BulkWhoisResponse
from whoisfreaks.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.whoisfreaks.com
# See configuration.py for a list of all supported configuration parameters.
configuration = whoisfreaks.Configuration(
host = "https://api.whoisfreaks.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with whoisfreaks.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = whoisfreaks.WHOISApi(api_client)
bulk_whois_request = whoisfreaks.BulkWhoisRequest() # BulkWhoisRequest |
format = json # str | (optional) (default to json)
try:
# Bulk WHOIS Lookup
api_response = api_instance.bulk_whois(bulk_whois_request, format=format)
print("The response of WHOISApi->bulk_whois:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WHOISApi->bulk_whois: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| bulk_whois_request | BulkWhoisRequest | ||
| format | str | [optional] [default to json] |
- Content-Type: application/json
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful response | - |
| 4XX | Error response (4XX) | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WhoisHistoricalResponse whois_history(domain_name, page=page, format=format)
Historical WHOIS records for a domain
- Api Key Authentication (ApiKeyAuth):
import whoisfreaks
from whoisfreaks.models.whois_historical_response import WhoisHistoricalResponse
from whoisfreaks.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.whoisfreaks.com
# See configuration.py for a list of all supported configuration parameters.
configuration = whoisfreaks.Configuration(
host = "https://api.whoisfreaks.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with whoisfreaks.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = whoisfreaks.WHOISApi(api_client)
domain_name = 'domain_name_example' # str | Domain to fetch historical WHOIS records for
page = 56 # int | Page number (optional)
format = 'format_example' # str | (optional)
try:
# Historical WHOIS records for a domain
api_response = api_instance.whois_history(domain_name, page=page, format=format)
print("The response of WHOISApi->whois_history:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WHOISApi->whois_history: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| domain_name | str | Domain to fetch historical WHOIS records for | |
| page | int | Page number | [optional] |
| format | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Historical WHOIS records | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
WhoisResponse whois_live(domain_name, format=format)
Live WHOIS Lookup
Real-time WHOIS lookup from authoritative servers. Cost 1 credit.
- Api Key Authentication (ApiKeyAuth):
import whoisfreaks
from whoisfreaks.models.whois_response import WhoisResponse
from whoisfreaks.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.whoisfreaks.com
# See configuration.py for a list of all supported configuration parameters.
configuration = whoisfreaks.Configuration(
host = "https://api.whoisfreaks.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with whoisfreaks.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = whoisfreaks.WHOISApi(api_client)
domain_name = 'whoisfreaks.com' # str |
format = json # str | (optional) (default to json)
try:
# Live WHOIS Lookup
api_response = api_instance.whois_live(domain_name, format=format)
print("The response of WHOISApi->whois_live:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WHOISApi->whois_live: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| domain_name | str | ||
| format | str | [optional] [default to json] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Successful response | - |
| 401 | Invalid API key | - |
| 404 | Not found | - |
| 429 | Too many requests | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ReverseWhoisResponse whois_reverse(keyword, page=page, format=format)
Reverse WHOIS lookup by keyword
- Api Key Authentication (ApiKeyAuth):
import whoisfreaks
from whoisfreaks.models.reverse_whois_response import ReverseWhoisResponse
from whoisfreaks.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://api.whoisfreaks.com
# See configuration.py for a list of all supported configuration parameters.
configuration = whoisfreaks.Configuration(
host = "https://api.whoisfreaks.com"
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'
# Enter a context with an instance of the API client
with whoisfreaks.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = whoisfreaks.WHOISApi(api_client)
keyword = 'keyword_example' # str | Keyword to search across WHOIS records
page = 56 # int | Page number (optional)
format = 'format_example' # str | (optional)
try:
# Reverse WHOIS lookup by keyword
api_response = api_instance.whois_reverse(keyword, page=page, format=format)
print("The response of WHOISApi->whois_reverse:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling WHOISApi->whois_reverse: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| keyword | str | Keyword to search across WHOIS records | |
| page | int | Page number | [optional] |
| format | str | [optional] |
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Reverse WHOIS results (paginated) | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]