Skip to content

Network

Detect VPN, proxy and Tor traffic

Send an IP address and get four flags, Tor, data center, VPN and proxy, plus a risk score you can act on.

What one lookup returns

The fields this product reads from the response. The full schema is in the API reference.

FieldTypeMeaning
flags.vpnbooleanThe address belongs to a known VPN network. Best effort.
flags.proxybooleanThe address belongs to a known proxy network. Best effort.
flags.torbooleanThe address is a Tor exit node.
flags.datacenterbooleanThe network is a hosting or cloud provider.
asn.typestringhosting, isp, mobile, business, education, government or unknown.
risk.scoreinteger0 to 100, built from the flags.
risk.levelstringlow (0 to 29), medium (30 to 69) or high (70 to 100).

Live example

The response below was returned by the API for this request.

Request
curl https://api.qelka.com/v1/ip \
  -H "Authorization: Bearer sk_test_your_key" \
  -H "Content-Type: application/json" \
  -d '{"ip":"1.1.1.1"}'
Request fields
ipstring · RequiredA public IPv4 or IPv6 address.
freshboolean · Default falsetrue skips the result cache and runs the lookup again.

Response

{
  "id": "lkp_01M85PTBHWB80Y7CNHCQJV8FSE",
  "object": "ip",
  "input": "1.1.1.1",
  "version": 4,
  "country": {
    "code": "AU",
    "name": "Australia"
  },
  "region": "New South Wales",
  "city": "Sydney",
  "asn": {
    "number": 13335,
    "org": "Cloudflare, Inc.",
    "type": "hosting"
  },
  "flags": {
    "tor": false,
    "vpn": false,
    "proxy": false,
    "datacenter": true
  },
  "risk": {
    "score": 35,
    "level": "medium"
  },
  "credits_used": 1,
  "cached": false
}

Use cases

Step up verification

Ask for a second factor when a login comes from Tor or a hosting network.

Limit trial abuse

Slow down signups from networks that hand out new addresses on demand.

Enforce licensing regions

Notice when location-based rules are being routed around.

Score payments

Add the network risk to the signals of your fraud model.

Price

1 credit per lookup, from the same balance as every other product.

Starter
$2.90 per 1,000 lookups
Growth
$1.98 per 1,000 lookups
Scale
$1.50 per 1,000 lookups
Business
$1.07 per 1,000 lookups

The free plan includes 100 credits every month. Errors, upstream failures and test keys are never billed.

See pricing

Data source and freshness

Read from datasets we download and refresh on the schedule listed below. Your input never leaves our infrastructure. Results are cached for 7 days; send "fresh": true to query again.

Data sources

Frequently asked questions

How are Tor exits detected?
From the Tor Project's exit list, which we refresh every hour. Only exit nodes are listed, because they are the addresses Tor traffic leaves from.
Can every VPN be detected?
No. The VPN and proxy flags come from known provider networks and are best effort. Residential proxies, which route traffic through home connections, generally look like ordinary users.
What does the data center flag mean?
The address belongs to a network classified as hosting or cloud. People rarely browse from one, but corporate proxies and cloud desktops do.
How is the risk score computed?
From the flags, with a small addition when the announcing network is unknown. The weights are published in the IP risk score documentation.

Put this check in your product

Get an API key in under a minute. 100 free credits every month, no card required.

  • 100 free credits a month
  • No card
  • Test keys spend nothing
  • Cancel any time