# Vpn Datacenter Ip Detector (`kawsar/vpn-datacenter-ip-detector`) Actor

Detect VPN and datacenter IPv4 ranges using X4BNet lists_vpn on GitHub. Download the full CIDR list or check your own IPs, CIDRs, and domains, then export results to JSON, CSV, or Excel.

- **URL**: https://apify.com/kawsar/vpn-datacenter-ip-detector.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.99 / 1,000 results

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

## VPN and Datacenter IP Detector

![VPN and Datacenter IP Detector cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/vpn-datacenter-ip-detector-cover.png)

Identify IP addresses associated with known VPN and datacenter networks using public IPv4 ranges from the X4BNet lists_vpn project. collect the available CIDR list or check individual IPs, CIDRs, and domains, then export structured results for analysis.

### What It Does

This actor provides two ways to work with VPN and datacenter IP ranges. You can collect the available IPv4 CIDR entries or check your own IP addresses, CIDRs, and domains against the list. Domain inputs are resolved locally to IPv4 addresses before matching.

### Key Features

- **Full CIDR List:** Collect public VPN and datacenter IPv4 ranges.
- **IP Lookup:** Check individual IPv4 addresses against listed networks.
- **CIDR Lookup:** Match network ranges against the source list.
- **Domain Lookup:** Resolve domains locally to IPv4 addresses before checking.
- **Structured Results:** Receive matching information in a consistent dataset.
- **Dataset Exports:** Export results in JSON, CSV, Excel, and other supported formats.

### Modes

- **`full_list`:** Collects the available VPN and datacenter IPv4 CIDR entries.
- **`lookup`:** Checks supplied IP addresses, CIDRs, or domains against the list.

If `lookupValues` is empty, the actor returns the full list up to the configured `maxItems` value.

### Input Examples

**Full list mode**

```json
{
  "mode": "full_list",
  "maxItems": 50,
  "requestDelaySecs": 1
}
```

**Lookup mode**

```json
{
  "mode": "lookup",
  "lookupValues": ["8.8.8.8", "1.1.1.1"],
  "maxItems": 20
}
```

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `full_list` | Selects `full_list` or `lookup` mode. |
| `lookupValues` | Array | `[]` | IP addresses, CIDRs, or domains to check. An empty array returns the full list. |
| `maxItems` | Integer | `100` | Maximum number of result rows to return. |
| `requestDelaySecs` | Number | `1` | Delay before downloading the source list, in seconds. |
| `userAgent` | String | `BigiByteActorResearch/1.0` | User-Agent used for requests. |
| `timeoutSecs` | Integer | `300` | Overall actor timeout in seconds. |
| `requestTimeoutSecs` | Integer | `30` | Individual request timeout in seconds. |
| `proxyConfiguration` | Object | No proxy | Optional proxy configuration. |

### Output Example

```json
{
  "cidr": "2.26.157.0/24",
  "source": "X4BNet lists_vpn (GitHub)",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Type | Description |
|---|---|---|
| `cidr` | String | CIDR network from the source list or matching network in lookup mode. |
| `source` | String | Source identifier: `X4BNet lists_vpn (GitHub)`. |
| `scrapedAt` | String | Timestamp when the record was collected. |
| `lookupValue` | String | Original value checked in lookup mode. |
| `matched` | Boolean | Indicates whether the input matched a listed CIDR. |
| `resolvedIp` | String | First IPv4 address resolved when the input is a domain. |

### Use Cases

- **VPN Detection:** Check whether IP addresses from signup or activity records belong to known VPN ranges.
- **Traffic Analysis:** Identify traffic originating from listed datacenter networks.
- **Bulk IP Enrichment:** Check IP collections from SIEM, CDN, or application logs.
- **Network Research:** Compare IP addresses and CIDR blocks against public VPN and datacenter ranges.
- **Scheduled Updates:** Refresh the collected range list and maintain an updated dataset.

### Frequently Asked Questions

**What is this actor used for?**

It checks IP addresses and network ranges against publicly available VPN and datacenter IPv4 ranges.

**Can I check domain names?**

Yes. Provide domains in `lookupValues`. The actor resolves them locally to IPv4 addresses before checking for a match.

**What happens if an IP matches a listed range?**

The lookup result includes `matched: true` and the corresponding CIDR information.

**Can I export the results?**

Yes. Apify supports JSON, CSV, Excel, and other dataset export formats.

**Can I schedule regular checks?**

Yes. You can use Apify schedules to refresh the range list or check a predefined collection of IP addresses.

**Why might lookup results contain no matches?**

An input may not fall within any listed CIDR range. Domain lookups may also return no match if the resolved IPv4 address is not included in the source list.

### Trademark Notice

X4BNet and lists_vpn are names associated with their respective owners. This independent actor uses these names only to identify its data source and does not imply affiliation, sponsorship, or endorsement.

### Is Web Scraping Legal?

This actor collects publicly accessible IP range information without bypassing login screens, paywalls, or technical security measures. Although IP range records are technical network data, how they are used may be subject to applicable laws and the source project's licence.

- **Personal Data:** IP addresses may qualify as personal data in certain contexts. Follow applicable privacy requirements, including GDPR and CCPA where relevant.
- **Copyright and Licensing:** Review the X4BNet project's licence and attribution requirements before redistributing or incorporating its data into other products.
- **Platform Terms and Request Policies:** Respect GitHub's applicable policies, source project conditions, and reasonable request practices.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified professional about your intended use.

For more information, read Apify's article: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

What to scrape. Full list downloads VPN/datacenter IPv4 CIDRs. Lookup checks your IPs, CIDRs, or domains against that list.

## `lookupValues` (type: `array`):

IPs, CIDRs, or domains to check. Leave empty to emit the whole list (capped by maxItems).

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

Stop after this many result rows. Hard max is 1000.

## `requestDelaySecs` (type: `number`):

Seconds to wait before the list download. The source is a single file, so this usually runs once.

## `userAgent` (type: `string`):

Identify your scraper

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it. The GitHub raw list usually works without a proxy.

## Actor input object example

```json
{
  "mode": "full_list",
  "lookupValues": [
    "8.8.8.8",
    "1.1.1.1"
  ],
  "maxItems": 100,
  "requestDelaySecs": 1,
  "userAgent": "ActorResearch/1.0",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# 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 = {
    "lookupValues": [
        "8.8.8.8",
        "1.1.1.1"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/vpn-datacenter-ip-detector").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 = { "lookupValues": [
        "8.8.8.8",
        "1.1.1.1",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/vpn-datacenter-ip-detector").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 '{
  "lookupValues": [
    "8.8.8.8",
    "1.1.1.1"
  ]
}' |
apify call kawsar/vpn-datacenter-ip-detector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/vpn-datacenter-ip-detector"
        }
    }
}
```

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/Y4wQoHyqFKEa7z5T0/builds/FauDwitiRXdFqe6Cp/openapi.json
