All URIs are relative to https://api.whoisfreaks.com
| Method | HTTP request | Description |
|---|---|---|
| bulk_ip_reputation | POST /v1.0/security | Bulk IP Reputation |
| ip_reputation | GET /v1.0/security | IP Reputation Lookup |
List[IpReputationResponse] bulk_ip_reputation(bulk_geolocation_request)
Bulk IP Reputation
Up to 100 IPs.
- Api Key Authentication (ApiKeyAuth):
import whoisfreaks
from whoisfreaks.models.bulk_geolocation_request import BulkGeolocationRequest
from whoisfreaks.models.ip_reputation_response import IpReputationResponse
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.IPReputationApi(api_client)
bulk_geolocation_request = whoisfreaks.BulkGeolocationRequest() # BulkGeolocationRequest |
try:
# Bulk IP Reputation
api_response = api_instance.bulk_ip_reputation(bulk_geolocation_request)
print("The response of IPReputationApi->bulk_ip_reputation:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling IPReputationApi->bulk_ip_reputation: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| bulk_geolocation_request | BulkGeolocationRequest |
- 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]
IpReputationResponse ip_reputation(ip)
IP Reputation Lookup
Threat intel for IP: VPN, proxy, Tor, bots. 1 credit.
- Api Key Authentication (ApiKeyAuth):
import whoisfreaks
from whoisfreaks.models.ip_reputation_response import IpReputationResponse
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.IPReputationApi(api_client)
ip = '8.8.8.8' # str |
try:
# IP Reputation Lookup
api_response = api_instance.ip_reputation(ip)
print("The response of IPReputationApi->ip_reputation:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling IPReputationApi->ip_reputation: %s\n" % e)| Name | Type | Description | Notes |
|---|---|---|---|
| ip | str |
- Content-Type: Not defined
- 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]