# IP Geolocation Lookup — Bulk IP to Location (`hipersoft/ip-geolocation-scraper`) Actor

Look up IP addresses in bulk: country, region, city, ZIP, latitude/longitude, timezone, ISP, organization and ASN, plus proxy/hosting/mobile flags. Just paste a list of IPs. Great for analytics, log enrichment, fraud checks and personalization. One row per IP as JSON, CSV or Excel.

- **URL**: https://apify.com/hipersoft/ip-geolocation-scraper.md
- **Developed by:** [hiper soft](https://apify.com/hipersoft) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.0001 / ip scraped

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 Geolocation Lookup — Bulk IP to Location

Turn **IP addresses into locations** in bulk with the **IP Geolocation Lookup**. Paste a list of IPs and export each one's **country, region, city, ZIP, latitude/longitude, timezone, ISP, organization and ASN** — plus **proxy, hosting and mobile flags** — one clean row per IP as **JSON, CSV or Excel**.

Built for **web analytics, log enrichment, fraud and abuse checks, personalization and security research**, it processes IPs in fast batches so large lists are quick.

### What it does

- 🌍 **Geolocation** — country, region, city, ZIP and latitude/longitude for each IP.
- 🕑 **Timezone** — the IP's timezone.
- 🏢 **Network** — ISP, organization, ASN and AS name.
- 🕵️ **Risk flags** — proxy/VPN, hosting/datacenter and mobile indicators.
- ⚡ **Fast batches** — many IPs looked up per request for speed at scale.
- 📤 **Export anywhere** — JSON, CSV or Excel, or straight into analytics, a CRM or a security tool.

### Example output

```json
{
  "ip": "8.8.8.8",
  "country": "United States",
  "city": "Ashburn",
  "latitude": 39.03,
  "longitude": -77.5,
  "isp": "Google LLC",
  "asn": "AS15169 Google LLC",
  "isProxy": false,
  "isHosting": true
}
```

### How to use it

1. Paste a list of **IP addresses**.
2. Set **Max IPs** if you want a cap.
3. Run, and download the results as **JSON, CSV or Excel**.

### Input fields

| Field | Description |
|-------|-------------|
| **IP addresses** | IPv4 or IPv6 addresses to look up. |
| **Max IPs** | Maximum IPs to process (0 = no limit). |

### Output fields

`ip`, `found`, `error`, `country`, `countryCode`, `region`, `regionCode`, `city`, `zip`, `latitude`, `longitude`, `timezone`, `isp`, `organization`, `asn`, `asName`, `isMobile`, `isProxy`, `isHosting`.

### Popular use cases

- **Analytics** — enrich visitor logs with country, city and network.
- **Fraud & abuse** — flag proxies, VPNs and datacenter IPs on sign-ups and orders.
- **Personalization** — tailor content by a visitor's country or timezone.
- **Security research** — map IPs to organizations and ASNs.
- **Data enrichment** — add location and network columns to an IP list.

### FAQ

**Do I need an account or key?**
No. Paste your IPs and run.

**Does it handle large lists?**
Yes — IPs are processed in batches for speed; paste as many as you need.

**Which risk signals are included?**
Proxy/VPN, hosting/datacenter and mobile flags alongside the geolocation and network data.

**Can I export to Excel or Google Sheets?**
Yes — results download as JSON, CSV or Excel and integrate with analytics, CRMs and security tools.

***

Bulk **IP-to-location lookup** — country, city, ISP, ASN and proxy/hosting flags — clean and export-ready for analytics, fraud checks and enrichment.

# Actor input Schema

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

IPv4 or IPv6 addresses to look up — e.g. '8.8.8.8', '1.1.1.1'. Paste as many as you like; they are processed in fast batches.

## `maxItems` (type: `integer`):

Maximum number of IPs to process (0 = no limit).

## Actor input object example

```json
{
  "ips": [
    "8.8.8.8",
    "1.1.1.1"
  ],
  "maxItems": 0
}
```

# Actor output Schema

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

The results as dataset items.

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

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

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

```

## MCP server setup

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

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/XLUbp2quSUO019gZ6/builds/wQAFcau32i7bAKrDt/openapi.json
