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.
| Field | Type | Meaning |
|---|---|---|
| flags.vpn | boolean | The address belongs to a known VPN network. Best effort. |
| flags.proxy | boolean | The address belongs to a known proxy network. Best effort. |
| flags.tor | boolean | The address is a Tor exit node. |
| flags.datacenter | boolean | The network is a hosting or cloud provider. |
| asn.type | string | hosting, isp, mobile, business, education, government or unknown. |
| risk.score | integer | 0 to 100, built from the flags. |
| risk.level | string | low (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.
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"}'| ip | string · RequiredA public IPv4 or IPv6 address. |
|---|---|
| fresh | boolean · 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 pricingData 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.
- IP to City Lite
License: CC-BY-4.0 · Refresh: monthly
- IP to ASN Lite
License: CC-BY-4.0 · Refresh: monthly
- IPinfo Lite
License: CC-BY-SA-4.0 · Refresh: daily
- Tor exit list (TorDNSEL)
License: CC0-1.0 · Refresh: hourly
- ASN type classification
License: In-house curation · Refresh: on change
- VPN and proxy operator networks
License: In-house curation · Refresh: on change
- IANA IPv4 and IPv6 Special-Purpose Address Registries
License: CC0-1.0 · Refresh: on change
Frequently asked questions
How are Tor exits detected?
Can every VPN be detected?
What does the data center flag mean?
How is the risk score computed?
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