Constructor
new GetIPIntel(optionsopt)
Example
// create a session, do a quick test an IP address
const GetIPIntel = require('getipintel');
const intel = new GetIPIntel({ contact: 'youremail@real.address' });
async function getIntel(IP, flags, oflags) {
try {
const result = await intel.getIntel(IP, flags, oflags);
console.log(result);
} catch (error) {
console.log(error);
}
}
getIntel('185.94.111.1');
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
options |
sessionOptions |
<optional> |
configurable session options |
Methods
(async) getIntel(IP, flagsopt, oflagsopt) → {Promise.<IPintel>}
Check an IP address.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
IP |
string | The IP address under investigation ,e.g. '185.94.111.1' |
||
flags |
flags |
<optional> |
''
|
Flags, see https://getipintel.net/free-proxy-vpn-tor-detection-api/#flags_compare |
oflags |
flags |
<optional> |
'bc'
|
Output Flags, see https://getipintel.net/free-proxy-vpn-tor-detection-api/#oflagsb |
Returns:
Intel on the IP address.
- Type
- Promise.<IPintel>