Bots-ips API client
NodeJS client to access the bot IPs API.
Install
npm install bots-ips
Usage
Recent bot IPs
Get a list of recent bots IPs:
const {BotApiClient} = require('bots-ips');
(async () => {
const client = new BotApiClient();
const recentBotIps = await client.getRecentBotIps();
console.log(recentBotIps);
})();
Verify one IP addresses
Verify if an IP address has been used by a bot:
const {BotApiClient} = require('bots-ips');
(async () => {
const client = new BotApiClient();
const testIp = await client.verifyIp("67.203.60.76");
console.log(testIp);
})();
Verify a batch of IP addresses
Verify if several IP addresses have been used by bots:
const {BotApiClient} = require('bots-ips');
(async () => {
const client = new BotApiClient();
const infoIps = await client.verifyIps(["185.82.126.222", "202.74.73.51", "202.74.73.53"]);
console.log(infoIps);
})();