Skip to content

Latest commit

 

History

History
110 lines (70 loc) · 2.75 KB

File metadata and controls

110 lines (70 loc) · 2.75 KB

WhoisFreaks.IPReputationApi

All URIs are relative to https://api.whoisfreaks.com

Method HTTP request Description
bulkIpReputation POST /v1.0/security Bulk IP Reputation
ipReputation GET /v1.0/security IP Reputation Lookup

bulkIpReputation

[IpReputationResponse] bulkIpReputation(bulkGeolocationRequest)

Bulk IP Reputation

Up to 100 IPs.

Example

import WhoisFreaks from 'whoisfreaks';
let defaultClient = WhoisFreaks.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';

let apiInstance = new WhoisFreaks.IPReputationApi();
let bulkGeolocationRequest = new WhoisFreaks.BulkGeolocationRequest(); // BulkGeolocationRequest | 
apiInstance.bulkIpReputation(bulkGeolocationRequest).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
bulkGeolocationRequest BulkGeolocationRequest

Return type

[IpReputationResponse]

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

ipReputation

IpReputationResponse ipReputation(ip)

IP Reputation Lookup

Threat intel for IP — VPN, proxy, Tor, bots. 1 credit.

Example

import WhoisFreaks from 'whoisfreaks';
let defaultClient = WhoisFreaks.ApiClient.instance;
// Configure API key authorization: ApiKeyAuth
let ApiKeyAuth = defaultClient.authentications['ApiKeyAuth'];
ApiKeyAuth.apiKey = 'YOUR API KEY';
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//ApiKeyAuth.apiKeyPrefix = 'Token';

let apiInstance = new WhoisFreaks.IPReputationApi();
let ip = "ip_example"; // String | 
apiInstance.ipReputation(ip).then((data) => {
  console.log('API called successfully. Returned data: ' + data);
}, (error) => {
  console.error(error);
});

Parameters

Name Type Description Notes
ip String

Return type

IpReputationResponse

Authorization

ApiKeyAuth

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json