# Tor Exit Nodes List Scraper (`kawsar/tor-exit-nodes-list-scraper`) Actor

Download the complete list of active Tor exit nodes or check specific IPs, CIDRs, and hostnames for matches. Simply choose your mode, run the actor, and export your clean, deduplicated results in JSON, CSV, or Excel format.

- **URL**: https://apify.com/kawsar/tor-exit-nodes-list-scraper.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 $2.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

## Tor Exit Nodes List Scraper

![Tor Exit Nodes List Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/tor-exit-nodes-list-scraper-cover.png)

Collect current Tor exit node IP addresses from The Tor Project's public exit node list. Download the available list or check individual IP addresses, CIDR ranges, and hostnames against known Tor exit nodes. Export structured results for network monitoring, security analysis, and research.

### What It Does

This actor collects Tor exit node IP addresses and organizes them into individual dataset records. You can retrieve the full list or use lookup mode to check supplied IP addresses, CIDR ranges, and hostnames against the collected records.

### Key Features

- **Full Exit Node List:** Collect publicly available Tor exit IP addresses.
- **IP Lookup:** Check individual IP addresses against known Tor exit nodes.
- **CIDR Lookup:** Identify listed exit IPs within a specified network range.
- **Hostname Lookup:** Check hostnames against the collected exit node list.
- **Structured Results:** Receive consistent IP records with source information.
- **Dataset Exports:** Export results in JSON, CSV, Excel, and other supported formats.

### Modes

- **`full_list`:** Collects the available Tor exit node IP addresses.
- **`lookup`:** Checks supplied IP addresses, CIDR ranges, or hostnames against the collected 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": ["171.25.193.25", "8.8.8.8"],
  "maxItems": 20
}
```

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | String | `full_list` | Selects `full_list` or `lookup` mode. |
| `lookupValues` | Array | `[]` | IP addresses, CIDRs, or hostnames to check in lookup mode. |
| `maxItems` | Integer | `100` | Maximum number of result rows to return. |
| `userAgent` | String | `BigiByteActorResearch/1.0` | User-Agent used for requests. |
| `requestDelaySecs` | Number | `1` | Delay before downloading the exit node list, in seconds. |
| `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
{
  "ip": "171.25.193.25",
  "source": "The Tor Project",
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Type | Description |
|---|---|---|
| `ip` | String | Tor exit node IP address returned by The Tor Project. |
| `source` | String | Source identifier: `The Tor Project`. |
| `scrapedAt` | String | Timestamp when the record was collected. |

### Use Cases

- **Firewall Management:** Collect Tor exit IP addresses for network monitoring and access-control rules.
- **Log Analysis:** Check whether IP addresses in application or server logs match known Tor exits.
- **Security Research:** Build datasets of Tor exit node addresses for network analysis.
- **CIDR Analysis:** Identify Tor exit nodes that belong to specific network ranges.
- **Scheduled Monitoring:** Refresh exit node records regularly and maintain updated datasets.

### Frequently Asked Questions

**What does this actor collect?**

It collects publicly available Tor exit node IP addresses published by The Tor Project.

**Can I check a specific IP address?**

Yes. Use `lookup` mode and provide the address in `lookupValues`.

**Does lookup mode support CIDR ranges?**

Yes. You can provide CIDR ranges to check for listed Tor exit IP addresses within those networks.

**Can I check hostnames?**

Yes. Hostnames can be provided in `lookupValues` for lookup against the collected exit node list.

**What export formats are supported?**

You can export results as JSON, CSV, Excel, and other formats supported by Apify.

**Can I schedule automatic updates?**

Yes. Configure Apify schedules to refresh the Tor exit node list regularly.

**Why might I receive fewer records than requested?**

The available list may contain fewer unique records than your configured `maxItems`, or some lookup inputs may not match any listed exit IP.

### Trademark Notice

The Tor Project is a trademark of its respective owner. This independent actor uses the name only to identify the data source and does not imply affiliation, sponsorship, or endorsement.

### Is Web Scraping Legal?

This actor collects publicly accessible Tor exit node information without bypassing login screens, paywalls, or technical security measures. These records describe network infrastructure, but their collection and use should follow applicable laws and source policies.

- **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 source's applicable terms and reuse conditions before redistributing or incorporating collected information into other products.
- **Platform Terms and Request Policies:** Respect The Tor Project's policies, source 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 every exit IP. Lookup checks your values against the cached list.

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

IPs, CIDRs, or hostnames to check. Empty in full_list (or lookup) emits the whole list up to maxItems.

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

Stop after this many rows. Hard max is 1000.

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

Identify your scraper

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

Seconds to wait before the bulk list download. Single download per run.

## `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 Tor Project bulk list usually works without a proxy.

## Actor input object example

```json
{
  "mode": "full_list",
  "lookupValues": [],
  "maxItems": 100,
  "userAgent": "ActorResearch/1.0",
  "requestDelaySecs": 1,
  "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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/tor-exit-nodes-list-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("kawsar/tor-exit-nodes-list-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 '{}' |
apify call kawsar/tor-exit-nodes-list-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/tor-exit-nodes-list-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/Qa0RgHQTaOqbaCXS3/builds/77N750yapGYgiDoDg/openapi.json
