# Bulk IP Geolocation & ASN Lookup: Country, City, ISP, IPv6 (`plotpointtech/bulk-ip-geolocation`) Actor

Geolocate IPv4 and IPv6 addresses in bulk: country, region, city, coordinates, ASN and network owner (ISP, host, cloud), optional reverse DNS. Runs offline on the DB-IP database, so your IPs never leave your run. $0.30 per 1,000 IPs.

- **URL**: https://apify.com/plotpointtech/bulk-ip-geolocation.md
- **Developed by:** [Plot Point Technologies](https://apify.com/plotpointtech) (community)
- **Categories:** Developer tools, Automation, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.19 / 1,000 ip looked ups

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

## Bulk IP Geolocation & ASN Lookup: Country, City, ISP, IPv6

**Geolocate IP addresses in bulk for $0.30 per 1,000.** Paste IPv4 or IPv6 addresses (or hostnames) and get each one's **country, region, city, coordinates, continent, EU membership, ASN and network owner** (ISP, hosting or cloud provider), with optional reverse DNS. Lookups run offline against the DB-IP database built into the tool, so a list of 20,000 IPs finishes in about 10 seconds and your IP addresses are never sent to a third-party API.

### What can this IP geolocation tool do?

- **IPv4 and IPv6**, from a handful of addresses to a million per run.
- **Location:** continent, country and ISO code, region/state, city, latitude and longitude, EU membership.
- **Network:** autonomous system number (ASN) and organisation, which tells you the ISP, mobile carrier, hosting company or cloud provider (Google, Amazon, Cloudflare...).
- **Hostnames too:** `example.com` is resolved and every IP behind it is geolocated.
- **Reverse DNS** (PTR record) on request.
- **Private and reserved addresses** (10.x, 192.168.x, loopback...) are recognised and listed free.
- **Place names in 8 languages:** English, German, Spanish, French, Japanese, Portuguese, Russian and Chinese.

### What data do you get?

| Field | Description |
|---|---|
| `input`, `hostname`, `ip`, `ipVersion` | What you gave and the IP that was looked up |
| `continent`, `continentCode`, `country`, `countryCode`, `isEuMember` | Country-level location |
| `region`, `city`, `latitude`, `longitude` | Local location (approximate) |
| `asn`, `asOrganization` | Network number and owner (ISP, carrier, host) |
| `reverseDns` | PTR hostname, when requested |
| `databaseMonth`, `status`, `attribution`, `checkedAt` | Data version and result |

### Who uses it?

- **Security and fraud teams** checking where logins, signups and orders come from.
- **Marketing and analytics teams** adding country and city to server logs and leads.
- **Developers** enriching IPs in pipelines without paying per-call API fees.
- **Network and compliance teams** identifying hosting providers, VPN-style traffic sources and countries for geo-restrictions.

### How to use it

1. Click **Try for free** (or **Start**).
2. Paste **IP addresses or hostnames**, one per line.
3. Turn on **Reverse DNS** if you need it, and choose the **Place name language**.
4. Run it and download the results as CSV, Excel or JSON from the **Output** tab.

### Input example

```json
{
  "ips": ["8.8.8.8", "1.1.1.1", "2a00:1450:4001:80b::200e", "example.com"],
  "reverseDns": true,
  "language": "en"
}
```

### Output example

From a real run with the default input:

```json
{
  "input": "8.8.8.8",
  "ip": "8.8.8.8",
  "ipVersion": 4,
  "continent": "North America",
  "country": "United States",
  "countryCode": "US",
  "isEuMember": false,
  "region": "California",
  "city": "Mountain View",
  "latitude": 37.422,
  "longitude": -122.085,
  "asn": 15169,
  "asOrganization": "Google LLC",
  "databaseMonth": "2026-11",
  "status": "found",
  "attribution": "IP Geolocation by DB-IP (https://db-ip.com), CC BY 4.0"
}
```

### How much does it cost?

**$0.30 per 1,000 IP addresses** ($0.0003 each), plus a $0.00005 start fee per run. Private, reserved and invalid addresses and hostnames that do not resolve are listed free.

| You look up | You pay |
|---|---|
| 5 demo addresses | about $0.005 |
| 10,000 IPs from a log file | $3.00 |
| 1 million IPs | $300.00 |

**Volume discounts on higher Apify plans.** The prices above are for the Apify Free plan. On paid plans the price drops automatically: about 15% lower on Bronze, 25% lower on Silver and 38% lower on Gold and above.

### Use it via API, Make, Zapier, n8n or an AI agent

**Apify API.** Look up IPs and get the results back in one HTTP request (replace `YOUR_API_TOKEN` with the token from Apify Console > Settings > Integrations):

```bash
curl -X POST "https://api.apify.com/v2/acts/plotpointtech~bulk-ip-geolocation/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ips": ["8.8.8.8", "203.0.113.7"]}'
```

Official `apify-client` libraries exist for Python and JavaScript; the **API** tab on this page has ready-made code.

**No-code automation.** Connect the tool to **Make, Zapier, n8n, Google Sheets, HubSpot, Slack** or any webhook with Apify integrations.

**AI agents (MCP).** Give Claude, ChatGPT, Cursor or any MCP-compatible agent direct access through the hosted Apify MCP server:

```
https://mcp.apify.com?tools=plotpointtech/bulk-ip-geolocation
```

### FAQ

**How accurate is IP geolocation?**
Country is right for the vast majority of IPs; city is an approximation (often the ISP's nearest hub) and coordinates point to the city, not a street address. Mobile, satellite and VPN traffic can show the provider's location rather than the user's. Never use IP location to identify a person.

**Where does the data come from and how fresh is it?**
From the DB-IP Lite databases (Creative Commons Attribution 4.0), updated monthly; the tool is rebuilt each month and every record shows `databaseMonth`. If you republish the data, keep the attribution "IP Geolocation by DB-IP".

**Does it detect VPNs, proxies or Tor?**
Not directly. The ASN organisation shows when an IP belongs to a hosting or cloud provider, which often indicates a server, VPN or proxy rather than a home connection.

**Are my IPs private?**
Yes. Lookups run inside your own Apify run against a local database; only hostname resolution and reverse DNS (when you ask for them) use normal DNS queries.

### Related tools from Plot Point Technologies

- [WHOIS & Domain Lookup: Bulk RDAP, DNS, SSL and Email Provider](https://apify.com/plotpointtech/bulk-domain-lookup): registration, DNS and SSL for domains.
- [Website Tech Stack Detector - CMS, Analytics & 290+ Techs](https://apify.com/plotpointtech/website-technology-detector): the tech stack behind a website.
- [Sanctions Screening: OFAC, UN & UK Lists Name Check (Bulk)](https://apify.com/plotpointtech/sanctions-screening): compliance checks on names.

Plot Point Technologies is not affiliated with DB-IP. IP Geolocation by DB-IP (https://db-ip.com), licensed under CC BY 4.0. Questions: support@plotpoint.tech.

***

If this tool saved you time, we would be grateful for a short review on this page; it helps other people find it. If something did not work as expected, please open an issue on the **Issues** tab and we will look into it quickly.

# Actor input Schema

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

IPv4 or IPv6 addresses (or hostnames such as example.com), one per line. Up to a million per run.

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

Look up the IP addresses of hostnames and geolocate each one.

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

Also return the hostname each IP points back to. Slower for large lists.

## `language` (type: `string`):

Language of country, region and city names where available.

## Actor input object example

```json
{
  "ips": [
    "8.8.8.8",
    "1.1.1.1",
    "2a00:1450:4001:80b::200e",
    "81.2.69.142",
    "apify.com"
  ],
  "resolveHostnames": true,
  "reverseDns": false,
  "language": "en"
}
```

# Actor output Schema

## `results` (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",
        "2a00:1450:4001:80b::200e",
        "81.2.69.142",
        "apify.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("plotpointtech/bulk-ip-geolocation").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",
        "2a00:1450:4001:80b::200e",
        "81.2.69.142",
        "apify.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("plotpointtech/bulk-ip-geolocation").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",
    "2a00:1450:4001:80b::200e",
    "81.2.69.142",
    "apify.com"
  ]
}' |
apify call plotpointtech/bulk-ip-geolocation --silent --output-dataset

```

## MCP server setup

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

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/XLBeehJQVleaoCKa4/builds/tN8Oes5nODASvX0N1/openapi.json
