Every VPN detection API will tell you whether an address belongs to a VPN. They differ on the things that decide whether the integration is worth keeping: what categories they return, how often they are wrong in the direction that costs you customers, how they bill you, and whether a slow response takes your signup form down with it.

This is a buyer's guide rather than a ranking. We build one of these, so a league table from us would be worth nothing to you. What is worth something is the evaluation method — the criteria that separate these products in practice, and a way to test them on your own traffic in an afternoon. Our own position is at the end, stated plainly.

What a VPN detection API actually does

You send an IP address. You get back what is known about the network that address belongs to, and usually a numeric risk score summarising it.

The useful response is the breakdown, not the score. A typical one looks like this:

{
  "detections": {
    "risk_score": 0,
    "confidence": 100,
    "is_proxy": false,
    "is_vpn": true,
    "is_tor": false,
    "is_hosting": false,
    "is_anonymous": false,
    "is_scraper": false,
    "is_compromised": false
  }
}

Those flags come from different kinds of evidence and deserve different trust:

  • Hosting and datacentre is the most reliable, because address ownership is a matter of public registry. Nobody shops from inside a cloud provider.
  • Tor is close behind. Exit nodes are published; it is a list lookup.
  • Commercial VPN is good but changes constantly as providers add and retire exit nodes, so freshness matters more here than anywhere else.
  • Residential proxy is the hardest, because the address genuinely belongs to a consumer ISP. Detection depends on observed behaviour, not ownership, and no provider catches all of it.
  • Compromised and scraper flags are behavioural and vary most between vendors.

Any provider claiming to catch everything is describing a product that cannot exist. The residential category is undetectable in the general case, because the thing being detected is, at the network layer, identical to the thing being protected.

The criteria that actually separate providers

1. Does it return categories or just a score?

A single number you cannot decompose is close to useless for tuning. You will want to treat a hosting address differently from a consumer VPN, because one has no innocent explanation and the other is mostly your privacy-conscious customers. If the API gives you one number, every decision you make applies the same rule to both. Insist on the breakdown.

2. How is it priced, and what counts as a query?

This is where real costs diverge. Ask specifically:

  • Are repeat lookups of the same address within a short window billed again, or deduplicated?
  • Is there a bulk or batch endpoint, and is it billed per address or per request?
  • What happens when you exceed the plan: hard stop, or overage billing?
  • Is there a free tier large enough to actually evaluate on?

Per-query pricing sounds cheap until a traffic spike or a bot run arrives. Work out your worst month, not your average one, and check what the bill looks like then.

3. Latency, and what happens on a timeout

You are putting a network call in the path of a signup or a checkout. Two questions matter more than the median response time: what is the slow tail, and what does your code do when the call does not come back?

The answer to the second must be fail open. A detection service having a bad minute should never be the reason a customer cannot create an account. Set a short timeout, cache per address, and make the absence of an answer mean "proceed normally". Any integration guide that has you blocking on the lookup is one outage away from costing you more than the fraud did.

4. How it treats mobile and shared connections

The most expensive mistake in this category is not missed fraud; it is blocking real people. Carrier-grade NAT puts thousands of mobile subscribers behind a single address, so "many accounts from one IP" is the normal state of affairs on mobile. A provider that flags carrier ranges aggressively will push you into rejecting the majority of a consumer audience.

Check that the response distinguishes connection type — mobile, business, consumer broadband, hosting — and not just the anonymity flags. Without that, you cannot build a rule that treats mobile traffic sensibly.

5. Data freshness

VPN exit nodes come and go weekly. Ask how often the data is refreshed and whether stale observations age out. A permanent flag is a bug, not a feature: a home connection that was part of a proxy network last year may simply have uninstalled the app. This is also the reason to cache a lookup for an hour or a day, never for a month.

6. Compliance posture

If any of your users are in the EU, an IP address is personal data, and sending it to a third party makes that third party a processor. You will need a data processing agreement, and you will want to know where the processing happens and what is retained. Ask before you integrate, not after a customer's security review asks you.

7. Documentation you can integrate from

An unglamorous criterion that predicts your week. Can you get a working call out of the docs in ten minutes? Are the error responses documented? Is there a real example of the full response body rather than a truncated one? Providers who hide the response shape behind a sales call are telling you something.

How to run the comparison on your own data

Vendor accuracy claims are unfalsifiable, because nobody publishes the test set. Your own logs are a better benchmark, and the test takes an afternoon.

  1. Build two lists. Export the IP addresses behind accounts you later banned, refunded or charged back — that is your known-bad set. Then export addresses from your best customers, the ones who have been paying for months — your known-good set. A few hundred of each is enough.
  2. Run both lists through each provider's free tier. A bulk IP checker makes this a paste rather than a script.
  3. Count the two error types separately. How many known-bad addresses were flagged, at what score? How many known-good addresses were flagged? The second number is the one vendors do not advertise and the one that will decide whether you keep the integration.
  4. Find your threshold, per provider. There is usually a score where the known-bad curve is still high and the known-good curve is still near zero. If no such point exists for a provider, that provider does not fit your traffic — regardless of how it performs on someone else's.
  5. Price the winner at your real volume. Including the bad month.

This also tells you something no vendor can: whether you have an address problem at all. If your bad addresses come back as ordinary consumer broadband, your losses are coming from somewhere else — device, identity or behaviour — and no address API will fix it. Better to learn that for free in an afternoon.

Where the API belongs in your product

Four placements, in order of value:

PlacementWhat to do with the result
Account creationStore the categories and score on the account. Step up to phone verification on hosting, Tor or a high score. Block almost nothing.
Trial, bonus or reward activationHold for review above a moderate score. This is where abuse pays, so this is where friction belongs.
Checkout or depositFeed the score into the payment rules you already have rather than making a separate decision.
Payout or withdrawalManual review on a high score. The one place a hard stop is usually correct, because the action is irreversible.

Not on the list: a global middleware that rejects anonymised traffic before it reaches your application. It is the easiest thing to ship and the one you will regret, because the group it blocks most reliably is your own staff on a corporate tunnel.

Where 24scan fits

Honest version, so you can judge whether to bother testing us.

24scan returns the full category breakdown — proxy, VPN, Tor, hosting, scraper, compromised, anonymous — with a risk score and a confidence value, plus network details including the autonomous system, provider and connection type, and geolocation. One GET request:

curl "https://api.24scan.com/v1/api?api_key=YOUR_API_KEY&ip=8.8.8.8"

Pricing starts free and is per-check rather than per-seat, there is a bulk endpoint, and the pricing plans are published rather than gated behind a call. There is a data processing agreement available if you process EU data.

What we are not: we do not do device fingerprinting, identity verification or behavioural modelling. If your problem is a determined operator running accounts behind residential proxies with a clean anti-detect browser, an address API is one layer of your answer and not the whole of it. We would rather tell you that now than after you have integrated.

The fastest way to find out whether we fit is the test above. Run your banned-account addresses and your best-customer addresses through the free checker or the bulk tool and look at both error rates. If the separation is there, the integration is an afternoon. If it is not, you have learned something useful for nothing.

Common questions

Should I block every VPN user?

No. A substantial share of ordinary people browse through a VPN — remote staff on corporate tunnels, privacy-focused browsers that bundle one, travellers, people in countries where it is the normal way to reach things. Score the connection and vary the response by what is at stake, rather than refusing service.

How accurate are these APIs?

Very accurate on hosting and Tor, good on commercial VPN, and structurally incomplete on residential proxies. Treat a flag as strong evidence and a clean result as weak evidence; they are not symmetrical, and most integration mistakes come from assuming they are.

Will this slow down my signup form?

Only if you let it. Cache by address, set a timeout of a second or two, and fail open when the call does not return. Done that way the lookup is invisible to the user and cannot take your form down.

Do I need to disclose this in my privacy policy?

If you have EU users, yes — an IP address is personal data there, so your notice should say that you check connections for fraud prevention and name the processor. Most risk tooling relies on legitimate interest as the lawful basis; the assessment is yours and worth writing down.

Can I test without integrating?

Yes, and you should. Paste a list of addresses from your own logs into the bulk checker and look at the results before you write any code.