# Bulk IP Lookup: Geolocation, ASN, Hosting, Tor & Abuse Contact (`latamdatatools/ip-intelligence-bulk`) Actor

Analyse thousands of IP addresses (or raw log lines): country, city, ASN and network, reverse DNS, cloud/hosting provider (AWS, Google Cloud, Cloudflare...), Tor exit node, RDAP owner and abuse email, and a risk score. Open data only.

- **URL**: https://apify.com/latamdatatools/ip-intelligence-bulk.md
- **Developed by:** [Julian Genuario](https://apify.com/latamdatatools) (community)
- **Categories:** Developer tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 ip lookups

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bulk IP Lookup: Geolocation, ASN, Hosting, Tor & Abuse Contact

Paste thousands of **IP addresses** (or whole **log lines**) and get one row per IP with:

- **Geolocation**: country, region, city, continent, latitude/longitude, EU flag.
- **Network**: ASN, network owner, announced prefix, **reverse DNS**.
- **Hosting / cloud detection**: AWS, Google Cloud, Cloudflare, Oracle Cloud, DigitalOcean, Fastly and Linode ranges (with **service and region**, e.g. AWS `EC2` `us-east-1`), plus a list of known datacenter ASNs (Hetzner, OVH, Vultr, Contabo, Azure, Alibaba...).
- **Tor exit node** check against the official Tor Project list.
- **RDAP** (the official WHOIS successor): registry, network name and range, organization and **abuse contact email**.
- A simple **risk score** (0-100, low/medium/high) with the reasons.

No API keys, no paid databases: open data only, refreshed at every run (DB-IP Lite monthly).

### What does Bulk IP Lookup do?

Bulk IP Lookup analyses thousands of IP addresses (or raw log lines): IP geolocation (country, city), ASN and network, reverse DNS, cloud / hosting provider (AWS, Google Cloud, Cloudflare...), Tor exit node flag, RDAP owner and abuse contact email, and a risk score, from open data only.

### How to use Bulk IP Lookup

1. Click **Try for free** on this page (a free Apify account is enough to start).
2. Fill in the input (see the examples below) or keep the prefilled example.
3. Click **Start** and wait for the run to finish.
4. Download the results from the **Output** tab as JSON, CSV, Excel or HTML, or read them with the Apify API.
5. Optional: create a **Schedule** to run it daily or weekly, and connect a webhook or an integration (Make, Zapier, n8n, Slack).

### Who uses it

- **Fraud and risk teams**: flag sign-ups, payments or reviews coming from datacenters, cloud servers and Tor.
- **Security / SOC**: enrich firewall, SSH or web-server logs; find who to send an abuse report to.
- **Ad-tech and analytics**: separate human traffic from hosting traffic, geolocate visitors.
- **Sales and marketing ops**: country/city and company network for IPs in your CRM or analytics exports.

### Input example

```json
{
  "ips": [
    "8.8.8.8",
    "2a03:2880:f12f:83:face:b00c:0:25de",
    "Oct 26 10:01:02 sshd[123]: Failed password for root from 185.220.101.1 port 22"
  ],
  "reverseDns": true,
  "cloudRanges": true,
  "torCheck": true,
  "rdapLookup": true
}
```

You can also read IPs from an **Apify dataset** (`datasetId` + `ipField`) or a **CSV / Google Sheet** (`csvUrl`). Duplicates are removed, `ip:port` and IPv4-mapped IPv6 are normalized.

### Output

```json
{
  "ip": "185.220.101.1",
  "version": 4,
  "isPublic": true,
  "countryCode": "DE",
  "country": "Germany",
  "region": "Hamburg",
  "city": "Hamburg (Hamburg-Nord)",
  "latitude": 53.5735,
  "longitude": 10.0548,
  "asn": 60729,
  "asnOrganization": "Stiftung Erneuerbare Freiheit",
  "asnNetwork": "185.220.101.0/24",
  "reverseDns": "berlin01.tor-exit.artikel10.org",
  "isHosting": false,
  "hostingProvider": null,
  "cloudProvider": null,
  "cloudService": null,
  "cloudRegion": null,
  "isTorExit": true,
  "rdapRegistry": "RIPE NCC",
  "rdapNetworkName": "ARTIKEL10",
  "rdapNetworkRange": "185.220.101.0/27",
  "rdapOrganization": null,
  "abuseEmail": "abuse@artikel10.org",
  "riskScore": 85,
  "riskLevel": "high",
  "riskReasons": ["Tor exit node", "Reverse DNS suggests a server, VPN or proxy"],
  "attribution": "IP geolocation and ASN by DB-IP (https://db-ip.com), CC BY 4.0"
}
```

Private and reserved addresses (10.x, 192.168.x, loopback...) and values without an IP get a free row with an `error` field (turn off with `includeInvalid`).

### Pricing

Pay per event: **USD 1 per 1,000 IPs** analysed (USD 0.001 each) + **USD 0.002 per run**. Duplicates, invalid values and private/reserved IPs are free. Your "max charge per run" is respected.

### Accuracy and limits

- City-level geolocation from a free database is approximate (often the ISP's city); country is usually right. Mobile and satellite IPs can show the carrier's location.
- "Hosting" means the IP belongs to a datacenter / cloud network; it does **not** prove a VPN or proxy. Residential proxies and commercial VPNs on residential ranges are not detected.
- RDAP is queried slowly (about one request per second per registry) and reused for all IPs of the same network; `maxRdapLookups` caps it per run. LACNIC is slower.
- Organization names from RDAP are only shown for organizations, never for private persons.

### Data sources and attribution

- IP geolocation and ASN: **[DB-IP](https://db-ip.com) Lite** databases, licensed under [Creative Commons Attribution 4.0](https://creativecommons.org/licenses/by/4.0/). Each row carries the `attribution` field; keep it when you republish the data.
- Cloud ranges published by [AWS](https://ip-ranges.amazonaws.com/ip-ranges.json), [Google Cloud](https://www.gstatic.com/ipranges/cloud.json), [Cloudflare](https://www.cloudflare.com/ips/), [Oracle Cloud](https://docs.oracle.com/en-us/iaas/tools/public_ip_ranges.json), [DigitalOcean](https://digitalocean.com/geo/google.csv), [Fastly](https://api.fastly.com/public-ip-list) and [Linode](https://geoip.linode.com/).
- Tor exit nodes: [Tor Project bulk exit list](https://check.torproject.org/torbulkexitlist).
- RDAP from the regional internet registries via the [IANA bootstrap](https://data.iana.org/rdap/).

Not affiliated with or endorsed by any of these providers.

### Cost examples

Prices at the current pay-per-event rate: USD 0.002 per run and USD 1.00 per 1,000 IPs analysed (duplicates, invalid values and private/reserved IPs are free). You can set a maximum charge per run in the run options.

| Job | Approximate cost |
|---|---|
| Test run: 4 IPs, IPv4 + IPv6, with RDAP and Tor check (measured: 6 s) | about $0.006 |
| 1,000 IPs from a signup or login log | about $1.00 |
| Daily fraud check of ~200 new IPs | about $0.20 per run |
| 100,000 IPs from server logs | about $100 |

### Use it from your code, an integration or an AI agent

**Python** (`pip install apify-client`):

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("latamdatatools/ip-intelligence-bulk").call(run_input={
  "ips": [
    "8.8.8.8",
    "1.1.1.1",
    "185.220.101.1"
  ],
  "reverseDns": True,
  "torCheck": True,
  "rdapLookup": True
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["ip"], item["country"], item["asnOrganization"], item["riskScore"])
```

**JavaScript / Node.js** (`npm install apify-client`):

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('latamdatatools/ip-intelligence-bulk').call({
  ips: [
    '8.8.8.8',
    '1.1.1.1',
    '185.220.101.1'
  ],
  reverseDns: true,
  torCheck: true,
  rdapLookup: true
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.map((i) => [i.ip, i.countryCode, i.asnOrganization, i.riskScore]));
```

**No code:**

- **Schedules:** save your input as a Task and run it daily or after each export of your logs from Apify Console (Schedules).
- **Integrations:** send the results to Google Sheets, Slack, email, Make, Zapier, n8n or Airbyte from the Integrations tab, or call your own webhook when a run finishes.
- **AI agents:** add it as a tool in Claude, Cursor, VS Code and other MCP clients through the Apify MCP server (`https://mcp.apify.com`), so the agent can look up where an IP address comes from and whether it is a datacenter or Tor exit.

### FAQ

**Can I call it from my own code or from an AI agent?** Yes. Start runs and fetch results with the Apify API or the JavaScript / Python clients, or use it as a tool from Claude, Cursor and other MCP clients through the Apify MCP server (`mcp.apify.com`).

**Can I run it automatically?** Yes. Create a Schedule in Apify Console (for example every morning) and add a webhook or an integration to get the results where you need them.

**Which export formats are available?** JSON, JSONL, CSV, Excel (XLSX), XML, RSS and HTML table, from the Output tab or the API.

**What does it cost?** See the Pricing section above. You only pay for the events listed there.

# Actor input Schema

## `ips` (type: `array`):

One per line: IPv4, IPv6, ip:port, or whole log lines (every IP found in the text is analysed). Duplicates are removed.

## `datasetId` (type: `string`):

ID of an Apify dataset (for example from another Actor) with an IP field.

## `csvUrl` (type: `string`):

Public CSV link or a Google Sheets link shared as "Anyone with the link" (max 50 MB).

## `ipField` (type: `string`):

Name of the field or CSV column with the IP (or a text that contains it).

## `extractFromText` (type: `boolean`):

On = every IPv4/IPv6 found in each value is analysed (useful for logs). Off = each value must be exactly one IP.

## `reverseDns` (type: `boolean`):

Hostname of each IP.

## `cloudRanges` (type: `boolean`):

Match against the IP ranges published by AWS, Google Cloud, Cloudflare, Oracle Cloud, DigitalOcean, Fastly and Linode (downloaded fresh at every run), with service and region.

## `torCheck` (type: `boolean`):

Match against the official Tor Project exit list (downloaded fresh at every run).

## `rdapLookup` (type: `boolean`):

Asks the regional internet registry (ARIN, RIPE, APNIC, LACNIC, AFRINIC) who holds the network: network name and range, organization and abuse email. Results are reused for all IPs of the same network.

## `maxRdapLookups` (type: `integer`):

Registries are queried slowly (about 1 request per second each) out of respect for their limits. IPs beyond this number of distinct networks are returned without RDAP fields.

## `includeInvalid` (type: `boolean`):

Adds free rows for values with no IP, invalid IPs and private/reserved ranges (10.x, 192.168.x, loopback...).

## `maxIps` (type: `integer`):

Unique public IPs analysed (and charged).

## Actor input object example

```json
{
  "ips": [
    "8.8.8.8",
    "1.1.1.1",
    "185.220.101.1",
    "2a03:2880:f12f:83:face:b00c:0:25de"
  ],
  "ipField": "ip",
  "extractFromText": true,
  "reverseDns": true,
  "cloudRanges": true,
  "torCheck": true,
  "rdapLookup": true,
  "maxRdapLookups": 300,
  "includeInvalid": true,
  "maxIps": 100000
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "ips": [
        "8.8.8.8",
        "1.1.1.1",
        "185.220.101.1",
        "2a03:2880:f12f:83:face:b00c:0:25de"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("latamdatatools/ip-intelligence-bulk").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "ips": [
        "8.8.8.8",
        "1.1.1.1",
        "185.220.101.1",
        "2a03:2880:f12f:83:face:b00c:0:25de",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("latamdatatools/ip-intelligence-bulk").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "ips": [
    "8.8.8.8",
    "1.1.1.1",
    "185.220.101.1",
    "2a03:2880:f12f:83:face:b00c:0:25de"
  ]
}' |
apify call latamdatatools/ip-intelligence-bulk --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,latamdatatools/ip-intelligence-bulk"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/5gs2wIzB2Gidi1V3h/builds/J2K5G29BKVdh0vtYA/openapi.json
