# IP Intelligence Aggregator 🌍 (`easyapi/ip-intelligence-aggregator`) Actor

Comprehensive IP address intelligence tool that aggregates data from 7 different IP information services, providing detailed geolocation, ISP, timezone, and threat intelligence data for any IPv4 address.

- **URL**: https://apify.com/easyapi/ip-intelligence-aggregator.md
- **Developed by:** [EasyApi](https://apify.com/easyapi) (community)
- **Categories:** Developer tools, Integrations
- **Stats:** 32 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#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 Intelligence Aggregator 🌍

Get comprehensive information about IP addresses by combining data from multiple trusted IP intelligence services into a single, enriched dataset.

### Features 🚀

- Aggregates data from 7 different IP intelligence services
- Provides detailed geolocation data (country, region, city, coordinates)
- Includes ISP and organization information
- Shows timezone and connection details
- Offers threat intelligence data
- Supports batch processing of multiple IP addresses
- Automatic rate limiting to prevent API throttling
- Handles API failures gracefully

### Use Cases 💡

- Cybersecurity analysis and threat detection
- User location verification
- Traffic analysis and monitoring
- Fraud prevention
- Network diagnostics
- Compliance and regulatory requirements
- Marketing and analytics

### Output Dataset 📊

The actor provides a rich dataset for each IP address, including:

- Geographic information (continent, country, region, city, postal code)
- Network details (ASN, ISP, organization)
- Connection characteristics
- Timezone information
- Currency and language data
- Threat intelligence indicators
- Various country-specific details (calling codes, flags, etc.)

### Input Parameters ⚙️

The actor accepts a simple JSON input with an array of IP addresses to process:

```json
{
	"ipAddresses": ["103.21.244.22", "8.8.8.8"]
}
```

#### Output sample

The results will be wrapped into a dataset which you can always find in the **Storage** tab. Here's an excerpt from the data you'd get if you apply the input parameters above:

And here is the same data but in JSON. You can choose in which format to download your data: JSON, JSONL, Excel spreadsheet, HTML table, CSV, or XML.

```json
[
	{
		"queriedIp": "103.21.244.22",
		"status": "0",
		"country": "CA",
		"countryCode": "CA",
		"region": "Ontario",
		"regionName": "Ontario",
		"city": "Toronto",
		"zip": "M5A",
		"lat": 43.6532,
		"lon": -79.3832,
		"timezone": "America/Toronto",
		"isp": "Cloudflare Hong Kong, LLC",
		"org": "CLOUDFLARENET",
		"as": "AS13335 Cloudflare, Inc.",
		"query": "103.21.244.22",
		"ip": "103.21.244.22",
		"success": true,
		"type": "IPv4",
		"continent": "North America",
		"continent_code": "NA",
		"country_code": "CA",
		"region_code": "ON",
		"latitude": 43.6561,
		"longitude": -79.3406,
		"is_eu": false,
		"postal": "M4M",
		"calling_code": "+1",
		"capital": "Washington D.C.",
		"borders": "CA,MX",
		"flag": null,
		"connection": {
			"asn": 13335,
			"org": "Cloudflare, Inc.",
			"isp": "Cloudflare, Inc.",
			"domain": "cloudflare.com"
		},
		"region_type": null,
		"country_name": "Canada",
		"continent_name": "North America",
		"emoji_flag": null,
		"emoji_unicode": null,
		"asn": "AS13335",
		"languages": "en-CA,fr-CA,iu",
		"currency": "CAD",
		"time_zone": {
			"name": "America/Los_Angeles",
			"offset": -8,
			"offset_with_dst": -8,
			"current_time": "2024-12-05 23:55:21.770-0800",
			"current_time_unix": 1733471721.77,
			"is_dst": false,
			"dst_savings": 0,
			"dst_exists": true,
			"dst_start": {
				"utc_time": "2024-03-10 TIME 10",
				"duration": "+1H",
				"gap": true,
				"dateTimeAfter": "2024-03-10 TIME 03",
				"dateTimeBefore": "2024-03-10 TIME 02",
				"overlap": false
			},
			"dst_end": {
				"utc_time": "2024-11-03 TIME 09",
				"duration": "-1H",
				"gap": false,
				"dateTimeAfter": "2024-11-03 TIME 01",
				"dateTimeBefore": "2024-11-03 TIME 02",
				"overlap": true
			}
		},
		"threat": {
			"is_tor": false,
			"is_icloud_relay": false,
			"is_proxy": false,
			"is_datacenter": false,
			"is_anonymous": false,
			"is_known_attacker": false,
			"is_known_abuser": false,
			"is_threat": false,
			"is_bogon": false,
			"blocklists": []
		},
		"count": "21",
		"loc": "39.0437,-77.4875",
		"country_code2": "US",
		"country_code3": "USA",
		"country_name_official": "United States of America",
		"country_capital": "Ottawa",
		"state_prov": "California",
		"state_code": "US-CA",
		"district": "China Basin",
		"zipcode": "94107-1907",
		"country_tld": ".ca",
		"country_flag": "https://ipgeolocation.io/static/flags/us_64.png",
		"geoname_id": "7288594",
		"connection_type": "",
		"organization": "Cloudflare, Inc.",
		"country_emoji": "🇺🇸",
		"network": "103.21.244.0/24",
		"version": "IPv4",
		"country_code_iso3": "CAN",
		"in_eu": false,
		"utc_offset": "-0500",
		"country_calling_code": "+1",
		"currency_name": "Dollar",
		"country_area": 9984670,
		"country_population": 37058856,
		"Srcid": "5809",
		"ResultCode": "0",
		"QueryID": "2493356444",
		"Result": [
			{
				"DisplayData": {
					"strategy": {
						"tempName": "ip",
						"precharge": "0",
						"ctplOrPhp": "1"
					},
					"resultData": {
						"tplData": {
							"arrData": [],
							"intStatus": "1",
							"errmsg": "",
							"data_source": "AE"
						},
						"extData": {
							"tplt": "ip",
							"resourceid": "5809",
							"OriginQuery": "103.21.244.22"
						}
					}
				},
				"ResultURL": "http://www.ip138.com/",
				"Weight": "2",
				"Sort": "1",
				"SrcID": "5809",
				"ClickNeed": "0",
				"SubResult": [],
				"SubResNum": "0",
				"ar_passthrough": [],
				"RecoverCacheTime": "0"
			}
		],
		"data": [
			{
				"arrData": [],
				"intStatus": "1",
				"errmsg": ""
			}
		],
		"ResultNum": "1"
	},
	{
		"queriedIp": "8.8.8.8",
		"status": "0",
		"country": "US",
		"countryCode": "US",
		"region": "California",
		"regionName": "Virginia",
		"city": "Mountain View",
		"zip": "20149",
		"lat": 39.03,
		"lon": -77.5,
		"timezone": "America/Los_Angeles",
		"isp": "Google LLC",
		"org": "GOOGLE",
		"as": "AS15169 Google LLC",
		"query": "8.8.8.8",
		"ip": "8.8.8.8",
		"success": true,
		"type": "IPv4",
		"continent": "North America",
		"continent_code": "NA",
		"country_code": "US",
		"region_code": "CA",
		"latitude": 37.42301,
		"longitude": -122.083352,
		"is_eu": false,
		"postal": "94043",
		"calling_code": "+1",
		"capital": "Washington D.C.",
		"borders": "CA,MX",
		"flag": "https://ipdata.co/flags/us.png",
		"connection": {
			"asn": 15169,
			"org": "Google LLC",
			"isp": "Google LLC",
			"domain": "google.com"
		},
		"region_type": null,
		"country_name": "United States",
		"continent_name": "North America",
		"emoji_flag": "🇺🇸",
		"emoji_unicode": "U+1F1FA U+1F1F8",
		"asn": "AS15169",
		"languages": "en-US,es-US,haw,fr",
		"currency": "USD",
		"time_zone": {
			"name": "America/Los_Angeles",
			"offset": -8,
			"offset_with_dst": -8,
			"current_time": "2024-12-05 23:55:23.753-0800",
			"current_time_unix": 1733471723.753,
			"is_dst": false,
			"dst_savings": 0,
			"dst_exists": true,
			"dst_start": {
				"utc_time": "2024-03-10 TIME 10",
				"duration": "+1H",
				"gap": true,
				"dateTimeAfter": "2024-03-10 TIME 03",
				"dateTimeBefore": "2024-03-10 TIME 02",
				"overlap": false
			},
			"dst_end": {
				"utc_time": "2024-11-03 TIME 09",
				"duration": "-1H",
				"gap": false,
				"dateTimeAfter": "2024-11-03 TIME 01",
				"dateTimeBefore": "2024-11-03 TIME 02",
				"overlap": true
			}
		},
		"threat": {
			"is_tor": false,
			"is_icloud_relay": false,
			"is_proxy": false,
			"is_datacenter": false,
			"is_anonymous": false,
			"is_known_attacker": false,
			"is_known_abuser": false,
			"is_threat": false,
			"is_bogon": false,
			"blocklists": [
				{
					"name": "myip.ms",
					"site": "https://myip.ms/",
					"type": "bots"
				}
			]
		},
		"count": "21",
		"hostname": "dns.google",
		"loc": "37.4056,-122.0775",
		"anycast": true,
		"country_code2": "US",
		"country_code3": "USA",
		"country_name_official": "United States of America",
		"country_capital": "Washington",
		"state_prov": "California",
		"state_code": "US-CA",
		"district": "Santa Clara",
		"zipcode": "94043-1351",
		"country_tld": ".us",
		"country_flag": "https://ipgeolocation.io/static/flags/us_64.png",
		"geoname_id": "6301403",
		"connection_type": "",
		"organization": "Google LLC",
		"country_emoji": "🇺🇸",
		"network": "8.8.8.0/24",
		"version": "IPv4",
		"country_code_iso3": "USA",
		"in_eu": false,
		"utc_offset": "-0800",
		"country_calling_code": "+1",
		"currency_name": "Dollar",
		"country_area": 9629091,
		"country_population": 327167434,
		"Srcid": "5809",
		"ResultCode": "0",
		"QueryID": "1771466653",
		"Result": [
			{
				"DisplayData": {
					"strategy": {
						"tempName": "ip",
						"precharge": "0",
						"ctplOrPhp": "1"
					},
					"resultData": {
						"tplData": {
							"arrData": [],
							"intStatus": "1",
							"errmsg": "",
							"data_source": "AE"
						},
						"extData": {
							"tplt": "ip",
							"resourceid": "5809",
							"OriginQuery": "8.8.8.8"
						}
					}
				},
				"ResultURL": "http://www.ip138.com/",
				"Weight": "2",
				"Sort": "1",
				"SrcID": "5809",
				"ClickNeed": "0",
				"SubResult": [],
				"SubResNum": "0",
				"ar_passthrough": [],
				"RecoverCacheTime": "0"
			}
		],
		"data": [
			{
				"arrData": [],
				"intStatus": "1",
				"errmsg": ""
			}
		],
		"ResultNum": "1"
	},
    ...
]
```

# Actor input Schema

## `ipAddresses` (type: `array`):

List of IPv4 addresses to analyze

## Actor input object example

```json
{
  "ipAddresses": [
    "8.8.8.8"
  ]
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("easyapi/ip-intelligence-aggregator").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 = {}

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

```

## MCP server setup

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

```

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/diMDOtgXIUJ2qZIeh/builds/Fj0E3fSVGoYPjNAih/openapi.json
