Skip to content
OSINTtools.io

VPNDetection API

Send an IP address, get flags for VPN, Tor, relay, proxy and hosting use, the VPN provider's name, and the location and network.

Base URL
https://api.vpndetection.io
Sign-in
Bearer token
Free tier
Free tier
Pricing
Subscription
Format
REST, Bulk files
Endpoints
2

Compiled by OSINTtools.io editors from docs.vpndetection.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with VPNDetection and copy your bearer token (free tier). Where to get it

  2. Make your first request

    Look up one IP address.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.vpndetection.io/203.0.113.7' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "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"
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Optional for single lookups. Create keys in the console under API > Keys.

Get a key from VPNDetection

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

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.

Free tier. Pricing: subscription.

Errors

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

Lookup

  • Takes: IP address
  • 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.

Path parameters

ipstringrequiredtakes your ip address

IPv4 or IPv6 address

Example: 203.0.113.7
Response fields · 13Show

ipstring

The address looked up

is_bogonboolean

Bogon address

is_vpnboolean

VPN address

is_relayboolean

Relay address

is_torboolean

Tor address

is_anycastboolean

Anycast address

countrystring

Country code

country_namestring

Country name

timezonestring

Time zone

asninteger

AS number

namestring

AS name

hostnamestring

Reverse hostname

cap_reachedboolean

True when the answer is basics-only because a cap was reached (keyed answers)

curl 'https://api.vpndetection.io/203.0.113.7' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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"
}
  • Passive: the target is not contacted

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

Response fields · 3Show

ipstring

Your address

is_vpnboolean

VPN address

countrystring

Country code

curl 'https://api.vpndetection.io/myip' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "ip": "198.51.100.4",
  "is_vpn": false,
  "location": {
    "country": "ZZ"
  }
}