# VPNDetection API reference

> The VPNDetection API returns what it knows about an IP address: whether it belongs to a VPN, relay, Tor exit, hosting or other flagged range, plus location and ASN. It also serves the databases behind those answers and manages organization keys. The base URL is https://api.vpndetection.io and a…

Source: https://osinttools.io/apis/vpndetection/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/vpndetection/

- Base URL: https://api.vpndetection.io
- Authentication: Bearer token in the `Authorization` header. Get a key: https://app.vpndetection.io/auth/signin Optional for single lookups. Create keys in the console under API > Keys.
- Free tier: yes
- Pricing: Subscription
- Rate limits: No key: 100 lookups per address per UTC day. Free key: first 1,000 full lookups per organization per UTC day, then basic fields. Paid: monthly quota.
- Vendor docs: https://docs.vpndetection.io/
- OpenAPI spec: https://s3.vpndetection.io/vpndetection-public/openapi/openapi.yaml

## Overview

The VPNDetection API returns what it knows about an IP address: whether it belongs to a VPN, relay, Tor exit, hosting or other flagged range, plus location and ASN. It also serves the databases behind those answers and manages organization keys.

The base URL is `https://api.vpndetection.io` and a lookup is a GET with the address in the path. A lookup needs no account or key: each calling address gets 100 lookups per UTC day with basic fields. A free key returns every field on an organization's first 1,000 lookups each UTC day; paid plans return every field. A field your plan does not include is absent, never `false`.

`POST /batch` (up to 1,000 addresses, paid plan) and the database, account and OAuth endpoints exist but are not documented here.

## Errors

| Status | Meaning |
| --- | --- |
| 403 | A key was sent over plain http:// |
| 429 | Rate limit exceeded; wait for Retry-After if present, otherwise the no-key daily limit is spent |

## Lookup

### Look up one IP address.

`GET /{ip}`

- Takes: IP address
- Footprint: passive (the target is not contacted)
- Plan: No key needed for basic fields

Returns flags and details for the address. Fields outside your plan are absent. Keyed answers carry cap_reached.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip` | path | string | yes | IPv4 or IPv6 address Example: 203.0.113.7 |

Response fields:

- `ip` (string): The address looked up
- `is_bogon` (boolean): Bogon address
- `is_vpn` (boolean): VPN address
- `is_relay` (boolean): Relay address
- `is_tor` (boolean): Tor address
- `is_anycast` (boolean): Anycast address
- `location.country` (string): Country code
- `location.country_name` (string): Country name
- `location.timezone` (string): Time zone
- `asn.asn` (integer): AS number
- `asn.name` (string): AS name
- `hostname` (string): Reverse hostname
- `cap_reached` (boolean): True when the answer is basics-only because a cap was reached (keyed answers)

```bash
curl 'https://api.vpndetection.io/203.0.113.7' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "ip": "203.0.113.7",
  "is_bogon": false,
  "is_vpn": false,
  "is_relay": false,
  "is_tor": false,
  "is_anycast": false,
  "relay": {},
  "tor": {},
  "location": {
    "country": "ZZ",
    "country_name": "Example Land",
    "timezone": "UTC"
  },
  "asn": {
    "asn": 64496,
    "name": "EXAMPLE-AS"
  },
  "hostname": "host.example.com"
}
```

### Look up the address your request comes from.

`GET /myip`

- Footprint: passive (the target is not contacted)

Same answer as a lookup, for the caller's own address.

Response fields:

- `ip` (string): Your address
- `is_vpn` (boolean): VPN address
- `location.country` (string): Country code

```bash
curl 'https://api.vpndetection.io/myip' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "ip": "198.51.100.4",
  "is_vpn": false,
  "location": {
    "country": "ZZ"
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
