# IP Address Lookup: Location, Company & Proxy Check (`scrapemint/ip-address-lookup`) Actor

Find out where an IP address is and who owns it. For each IP: country, region, city, timezone, the internet company behind it, and flags for proxy, hosting and mobile. Paste one IP or thousands. Great for logs, fraud checks and analytics. No API key needed.

- **URL**: https://apify.com/scrapemint/ip-address-lookup.md
- **Developed by:** [Ken M](https://apify.com/scrapemint) (community)
- **Categories:** Developer tools, Business
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 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.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## IP Address Lookup: Location, Company & Proxy Check

Find out where an IP address is and who owns it. Paste one IP or thousands and get one clean row per IP: country, region, city, timezone, the internet company behind it, and clear flags for proxy/VPN, hosting/datacenter and mobile networks.

Built for **fraud and security teams, analytics, log analysis and ad tech**. Turn a raw list of IPs from your server logs or signups into locations and risk signals in one run, with no signup and no API key.

### What you get for each IP

- **Location**: country, region, city, ZIP and timezone, with latitude and longitude for maps
- **Who owns it**: the internet service provider, the organisation and the network (ASN)
- **Risk and type flags**:
  - **proxy/VPN**: the IP is a known proxy, VPN or Tor exit
  - **hosting/datacenter**: the IP belongs to a server host, not a home connection (often a bot)
  - **mobile**: the IP is on a mobile carrier network

### Example output

```json
{
  "ip": "8.8.8.8",
  "valid": true,
  "country": "United States",
  "countryCode": "US",
  "region": "Virginia",
  "city": "Ashburn",
  "timezone": "America/New_York",
  "latitude": 39.03,
  "longitude": -77.5,
  "isp": "Google LLC",
  "organization": "Google Public DNS",
  "asn": "AS15169 Google LLC",
  "isProxyOrVpn": false,
  "isHostingOrDatacenter": true,
  "isMobile": false
}
```

### Pricing

**$0.001 per IP located**, and IPs that cannot be located (bad input) are **free**. The first 2 rows of every run are free. Checking 10,000 IPs costs about $10, versus the monthly minimums of commercial IP intelligence APIs.

### How to run it via API

```bash
curl -X POST "https://api.apify.com/v2/acts/scrapemint~ip-address-lookup/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"ips": ["8.8.8.8", "1.1.1.1", "140.82.112.3"]}'
```

### Frequently asked questions

**How accurate is the city?** IP location is accurate to the country almost always, and usually to the region or city. It is an estimate, not a street address, which is normal for all IP location data.

**What are the proxy and hosting flags for?** They help spot traffic that is probably not a real local visitor: VPNs, proxies and datacenter IPs are common signs of bots and fraud.

**IPv6 too?** Yes, both IPv4 and IPv6 addresses work.

### More tools from Scrapemint

- [DNS Records Checker](https://apify.com/scrapemint/dns-records-checker): full DNS report for any domain.
- [SSL Certificate & Subdomain Finder](https://apify.com/scrapemint/ssl-subdomain-finder): find subdomains and check SSL certificates.
- [Email List Checker](https://apify.com/scrapemint/email-list-checker): clean email lists in bulk.

# Actor input Schema

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

One IP address per line (IPv4 or IPv6). You can paste thousands, they are looked up in bulk.

## `maxRows` (type: `integer`):

Cap on IPs looked up. Controls total cost. First 2 rows per run are free; invalid IPs are always free.

## Actor input object example

```json
{
  "ips": [
    "8.8.8.8",
    "1.1.1.1",
    "140.82.112.3",
    "208.67.222.222"
  ],
  "maxRows": 1000
}
```

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

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

# Run the Actor and wait for it to finish
run = client.actor("scrapemint/ip-address-lookup").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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",
    "140.82.112.3",
    "208.67.222.222"
  ]
}' |
apify call scrapemint/ip-address-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapemint/ip-address-lookup",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/OXsPN7jpWDy2lkhLp/builds/cpEfwLbUobxUMCNxN/openapi.json
