# IP Address Lookup: ASN, Geo, Cloud & Tor Check (`hydrocore/ip-address-intelligence`) Actor

Bulk IP lookup: country and city, ASN and network owner, prefix, abuse contact, RPKI status, reverse DNS, cloud provider with service and region (AWS, Google Cloud, Cloudflare, Fastly, Oracle, DigitalOcean), hosting and Tor exit flags and a risk level. IPv4, IPv6 or hostnames. No API keys.

- **URL**: https://apify.com/hydrocore/ip-address-intelligence.md
- **Developed by:** [Hydrocore Data](https://apify.com/hydrocore) (community)
- **Categories:** Developer tools, AI, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.70 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## IP Address Lookup: ASN, Geo, Cloud & Tor Check

Look up a list of IP addresses (IPv4 or IPv6) or hostnames in one run and get one clean row per IP: **country and city, ASN and network owner, announced prefix, abuse contact, RIR, RPKI status and reverse DNS**, plus **which cloud it belongs to** (AWS, Google Cloud, Cloudflare, Fastly, Oracle Cloud, DigitalOcean, with service and region from the providers' own range lists), a **hosting / data-center flag**, a **Tor exit flag** and a simple **risk level**. Filter to hosting IPs, Tor exits or countries and sort by risk. No API keys, no rate-limited free-tier geolocation APIs.

### ✅ What you get

- Country, city, latitude and longitude
- ASN, network owner, announced prefix, BGP announced flag
- Abuse contact email and RIR
- RPKI status (valid, invalid, unknown)
- Cloud provider, service and region; hosting / data-center flag
- Tor exit flag and risk level (high, medium, low)
- Reverse DNS (PTR) and hostname resolution

### 🏆 Why this Actor

- **Cloud service and region, not just "Amazon":** IPs are matched against the official AWS, Google Cloud, Cloudflare, Fastly, Oracle and DigitalOcean range files (over 20,000 ranges), longest prefix wins, so you get "Amazon AWS, EC2, us-east-1".
- **Network facts from the source:** ASN, prefix, abuse contact, RIR and RPKI validity come from RIPEstat, the open data API of the RIPE NCC (an internet registry).
- **Tor exits checked at run time** against the Tor Project's bulk exit list.
- **Fair billing:** invalid, private, unresolved, duplicate and filtered inputs are free and counted in the run summary.
- **Agent-ready:** one IP in, one flat row out, a summaryText sentence and field descriptions for ChatGPT, Claude, n8n or MCP tools.

### 💡 Use cases

**Apify Store use cases:** Developer & security tooling · Compliance & risk checks · Enrich company profiles

- Fraud and sign-up screening: flag sign-ups, payments or logins from data centers and Tor
- Security and log triage: enrich firewall, WAF or server log IPs with owner, cloud and abuse contact
- Abuse reports: find the right abuse email for an attacking IP
- Bot and scraper analysis: separate cloud traffic from home users
- AI agents (ChatGPT, Claude, n8n, MCP): "who owns this IP and is it a cloud server?"

### 🚀 How to use

1. Paste **IP addresses, hostnames or URLs** (one per line).
2. Optional: keep only hosting IPs, Tor exits or some countries, and choose the sort.
3. Run, then open **Overview**, **Network & abuse** or **Cloud & hosting**, or export the data.

### ⚙️ Input

| Field | What it does |
|---|---|
| `ips` | IPs, hostnames or URLs (default example: 8.8.8.8, 52.94.236.248, 185.220.101.1). |
| `resolveHostnames` | Resolve hostnames and URLs to an IP (default true). |
| `includeReverseDns` | Add the PTR hostname (default true). |
| `onlyHosting` | Only cloud and hosting IPs (default false). |
| `onlyTorExits` | Only Tor exit nodes (default false). |
| `countries` | 2-letter country codes to keep (default all). |
| `sortBy` | input (default), risk, country, asn. |
| `maxResults` | Most IPs to save, default 100, up to 10,000. |

Example input:

```json
{
  "ips": [
    "8.8.8.8",
    "52.94.236.248",
    "185.220.101.1",
    "github.com"
  ],
  "sortBy": "risk",
  "maxResults": 100
}
```

### ⬆️ Output

One row per public IP. Invalid, private and unresolved inputs get a free row with `recordType` = `status` and the reason in `summaryText`. Every row has the same 25 keys in the same order; missing values are `null`. The example is a real row from a test run of the current build.

Overview fields:

| Field | Type | Example | Description |
|---|---|---|---|
| `ip` | string | "52.94.236.248" | The IP address checked (IPv4 or IPv6). |
| `country` | string | "US" | Country code from the GeoLite2 data published by RIPEstat. null when unknown. |
| `asn` | integer | 16509 | Origin autonomous system number announcing the prefix. |
| `asName` | string | "AMAZON-02 - Amazon.com, Inc." | AS holder name. |
| `isHosting` | boolean | true | true when the IP is in an official cloud range or a known hosting/data-center network (not a home or mobile ISP). |
| `cloudProvider` | string | "Amazon AWS" | Provider from official range lists (AWS, Google Cloud, Cloudflare, Fastly, Oracle Cloud, DigitalOcean) or from the hosting ASN list. |
| `isTorExit` | boolean | false | true when the IP is on the Tor Project bulk exit list at run time. null if the list could not be loaded. |
| `riskLevel` | string | "medium" | high (Tor exit), medium (hosting/cloud) or low (other networks). A simple network signal, not a fraud verdict. |
| `reverseDns` | string | null | PTR hostname. null when none. |
| `inputValue` | string | "52.94.236.248" | Your input line. |
| `summaryText` | string | "52.94.236.248 is in Ashburn, US, announced by AS16509 AMAZO… | Plain-English summary of the IP; on status rows, why it was not looked up. |

All 25 fields (in order): `recordType`, `ip`, `country`, `city`, `asn`, `asName`, `isHosting`, `cloudProvider`, `isTorExit`, `riskLevel`, `reverseDns`, `prefix`, `cloudService`, `cloudRegion`, `abuseEmail`, `rir`, `rpkiStatus`, `isAnnounced`, `ipVersion`, `latitude`, `longitude`, `summaryText`, `inputValue`, `resolvedFrom`, `scrapedAt`.

Real row from a test run of the current build:

```json
{
  "recordType": "ip",
  "ip": "52.94.236.248",
  "country": "US",
  "city": "Ashburn",
  "asn": 16509,
  "asName": "AMAZON-02 - Amazon.com, Inc.",
  "isHosting": true,
  "cloudProvider": "Amazon AWS",
  "isTorExit": false,
  "riskLevel": "medium",
  "reverseDns": null,
  "prefix": "52.94.224.0/20",
  "cloudService": null,
  "cloudRegion": "us-east-1",
  "abuseEmail": "trustandsafety@support.aws.com",
  "rir": "arin",
  "rpkiStatus": "valid",
  "isAnnounced": true,
  "ipVersion": 4,
  "latitude": 39.0469,
  "longitude": -77.4903,
  "summaryText": "52.94.236.248 is in Ashburn, US, announced by AS16509 AMAZON-02 - Amazon.com, Inc. Hosting/cloud network (Amazon AWS, us-east-1). Risk: medium.",
  "inputValue": "52.94.236.248",
  "resolvedFrom": null,
  "scrapedAt": "2026-11-13T21:26:11.326Z"
}
```

Views: **Overview**, **Network & abuse**, **Cloud & hosting**, **Detailed (all fields)**. Export as JSON, CSV, Excel, XML or HTML from the Storage tab or the API (`/datasets/{id}/items?format=csv&view=overview`). The run summary (`OUTPUT` record in the key-value store) counts inputs, invalid, private, unresolved and duplicate inputs, IPs looked up, lookup errors, rows filtered out, over the cap and saved, plus how many cloud ranges and Tor exits were loaded.

### 💰 Pricing

Competitive pricing, pay per result: **$0.00085 per IP** on the Free plan, less on higher plans, plus the $0.0005 Actor start. 1,000 IPs cost about $0.85 on Free. Invalid, private, unresolved, duplicate and filtered inputs are never charged.

| Event | What it is | Free | Bronze | Silver | Gold+ |
|---|---|---|---|---|---|
| IP lookup | One public IP looked up and saved. Invalid, private, unresolved, duplicate and filtered inputs are free. | $0.00085 | $0.0008 | $0.00075 | $0.0007 |
| Actor start | Once per run (Apify standard start event, per GB of memory; the default 256 MB = one fee) | $0.0005 | $0.0005 | $0.0005 | $0.0005 |

### 🔁 Integrations

Works with the Apify API, MCP (AI agents), Make, n8n, Zapier, Google Sheets and webhooks. Field names are stable camelCase, so mappings do not break between runs.

### ❓ FAQ

**Where does the data come from?**

Network data (ASN, prefix, abuse contact, RIR, RPKI, location) comes from RIPEstat, the public data API of the RIPE NCC; location there is based on MaxMind GeoLite2. Cloud ranges come from the providers' official published lists, and Tor exits from the Tor Project's bulk exit list. No keys or logins.

**How accurate is the location?**

Country is usually right; city is often missing or approximate, as with all IP geolocation. Do not use it to find a person or a street address.

**What does isHosting mean?**

The IP is in a published cloud range or in a network we list as hosting or data center (for example Hetzner, OVH, Linode). Home and mobile ISPs are false. Unknown small hosts may be missed.

**What does riskLevel mean?**

high = Tor exit node, medium = hosting/cloud, low = other networks. It is a simple network signal for screening, not a fraud verdict about a person.

**Which clouds are covered by name and region?**

Amazon AWS, Google Cloud, Cloudflare, Fastly, Oracle Cloud and DigitalOcean from their official range files. Other providers (Azure, Hetzner, OVH, Linode and more) are detected by ASN and named, without region.

**Can I send hostnames or URLs?**

Yes. With Resolve hostnames on, the first A record (or AAAA) is checked and resolvedFrom shows the hostname. Hostnames that do not resolve get a free status row.

**What about private IPs like 10.0.0.1?**

Private, loopback, link-local, documentation and other reserved addresses are not on the public internet, so they get a free status row.

**How fast is it?**

About 0.5 to 2 seconds per IP, four at a time. 1,000 IPs usually take a few minutes.

**Is it legal to use?**

Yes. It reads public network registry data and published range lists, and contains no personal data beyond the abuse contacts that networks publish for this purpose.

**Is it good for AI agents?**

Yes. One IP is enough as input, every row has the same flat keys, a summaryText sentence and field descriptions in the dataset schema.

### Ready-made examples

- [Which cloud or network owns these IPs](https://apify.com/hydrocore/ip-address-intelligence/examples/which-cloud-owns-this-ip-aws-google-cloudflare-tor)

### 🛟 Support

Found a problem or need a field? Open an issue on the Issues tab; we read every issue.

### Changelog

- 1.0 (2026-11-13): first release.

# Actor input Schema

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

IPv4 or IPv6 addresses, hostnames or URLs, one per line (8.8.8.8, 2606:4700:4700::1111, api.example.com). Hostnames are resolved to their first address. Duplicates are skipped for free; private and reserved addresses get a free status row.

## `resolveHostnames` (type: `boolean`):

Look up the A (or AAAA) record of hostnames and URLs and check that address. Default on.

## `includeReverseDns` (type: `boolean`):

Add the PTR hostname of each IP (for example ec2-...compute.amazonaws.com). Default on.

## `onlyHosting` (type: `boolean`):

Keep only IPs in a cloud range or a known hosting network. Other IPs are free.

## `onlyTorExits` (type: `boolean`):

Keep only IPs on the Tor Project's current exit list.

## `countries` (type: `array`):

Keep IPs located in these countries (2-letter codes such as US, DE). Empty = all.

## `sortBy` (type: `string`):

Order of the saved rows. Sorting happens before Max results.

## `maxResults` (type: `integer`):

Most IPs to save (default 100, up to 10,000).

## Actor input object example

```json
{
  "ips": [
    "8.8.8.8",
    "52.94.236.248",
    "185.220.101.1"
  ],
  "resolveHostnames": true,
  "includeReverseDns": true,
  "onlyHosting": false,
  "onlyTorExits": false,
  "sortBy": "input",
  "maxResults": 100
}
```

# Actor output Schema

## `overview` (type: `string`):

IP, location, network owner, cloud, Tor and risk.

## `network` (type: `string`):

Routing, RPKI and abuse contact.

## `cloud` (type: `string`):

Cloud provider, service and region.

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

Every field for each row.

## `summary` (type: `string`):

Run summary: inputs, invalid, private, unresolved and duplicate inputs, IPs looked up, lookup errors, filtered out, over the cap, saved, cloud ranges and Tor exits loaded, and source warnings.

# 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",
        "52.94.236.248",
        "185.220.101.1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("hydrocore/ip-address-intelligence").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",
        "52.94.236.248",
        "185.220.101.1",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("hydrocore/ip-address-intelligence").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",
    "52.94.236.248",
    "185.220.101.1"
  ]
}' |
apify call hydrocore/ip-address-intelligence --silent --output-dataset

```

## MCP server setup

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

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/RQD0qrQTXJprWCg6i/builds/GAPVwkDU9giozhcp4/openapi.json
