# Tor Node Detector API

> Tor Node Detector is a Tor exit node checker API: send any IP address and it tells you whether that IP belongs to an active Tor exit node, so you can identify traffic originating from the anonymity network.

**Endpoint:** `GET https://api.apiverve.com/v1/tordetect`  
**Category:** Networking  
**Cost:** 10 credits per call  
**Canonical page:** https://apiverve.com/marketplace/tordetect

## Overview

Use it as a Tor IP checker anywhere you accept untrusted traffic. Tor Detect uses up-to-date exit node lists from the Tor network to verify if the specified IP address is actively being used as a Tor exit node. This is essential for services that wish to restrict access from anonymous sources or monitor traffic.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/tordetect?ip=171.25.193.234" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `ip` | string | Yes | The IP address to check against the Tor exit node list. ip |

## Response fields

- `ipAddress` — string · The IP address being checked for Tor exit node status
- `isTor` — boolean · Whether the IP is a Tor exit node (traffic from it is Tor users browsing). From the Tor Project exit list plus relays with the Exit flag seen in the last 7 days, refreshed every 6 hours
- `ipDetails` — object · Detailed information about the IP geolocation and network · (premium)
  - `ipDetails.country` — string · Two-letter ISO country code of IP location · (premium)
  - `ipDetails.region` — object · Region or state code of IP location within country · (premium)
  - `ipDetails.timezone` — string · IANA timezone identifier for IP location · (premium)
- `parsed` — boolean · Whether the IP address was successfully parsed and validated
- `asn` — string · Autonomous System Number announcing the IP (e.g., AS60729); null if unrouted · (premium)
- `asnName` — string · Registered name of that AS (e.g., TORSERVERS-NET), not always the company name · (premium)
- `isTorRelay` — boolean · Whether the IP runs any Tor relay, exit or not (a guard or middle relay is Tor infrastructure, not Tor users); null if the relay list is unavailable
- `relay` — object · The Tor relay at this IP, or null · (premium)
  - `relay.nickname` — string · Relay nickname · (premium)
  - `relay.isExit` — boolean · Whether the relay is an exit · (premium)
  - `relay.flags` — array · Directory flags (Exit, Guard, Stable, Fast, Running...) · (premium)
  - `relay.firstSeen` — string · When the relay first appeared (ISO 8601) · (premium)
  - `relay.lastSeen` — string · When the relay was last seen running (ISO 8601) · (premium)

## Sample response

```json
{
  "status": "ok",
  "error": null,
  "data": {
    "ipAddress": "204.8.96.141",
    "isTor": true,
    "ipDetails": {
      "country": "US",
      "region": null,
      "timezone": "America/Chicago"
    },
    "parsed": true,
    "asn": "AS62744",
    "asnName": "QUINTEX",
    "isTorRelay": true,
    "relay": {
      "nickname": "Quintex152",
      "isExit": true,
      "flags": [
        "Exit",
        "Fast",
        "Guard",
        "HSDir",
        "Running",
        "Stable",
        "V2Dir",
        "Valid"
      ],
      "firstSeen": "2026-07-03T01:00:00Z",
      "lastSeen": "2026-10-27T01:00:00Z"
    }
  }
}
```

## Use cases

- **Account Registration Screening** — To stop automated credential creation, signup workflows check visitor IPs and require extra verification for sessions originating from exit nodes.
- **Payment Fraud Prevention** — Flag suspicious orders before credit card processing by reviewing whether checkout traffic routes through anonymized exit addresses.
- **Digital Rights Enforcement** — Streaming services prevent geographic licensing evasion during media playback by blocking access requests sent from confirmed exit relays.
- **Session Anomaly Detection** — When an established user logs in from a Tor exit node, identity systems trigger multi-factor authentication to prevent session hijacking.

## SDKs

- **npm** — `npm install @apiverve/tordetect` (https://www.npmjs.com/package/@apiverve/tordetect)
- **NuGet** — `dotnet add package APIVerve.API.TorNodeDetector` (https://www.nuget.org/packages/APIVerve.API.TorNodeDetector)
- **Source** — https://github.com/apiverve/tordetect-api

## More

- Full reference: https://docs.apiverve.com/ref/tordetect
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
