Security data API

VPN & Proxy Detection API

Included from the Small plan, $9.99 a month (65,000 requests).

Free keys get the same response, with every field of the security object set to null.

The ipbase API tells you whether an IP address belongs to a VPN, a proxy, the Tor network, iCloud Private Relay or a data center, and gives it a threat score. You get the security flags in the same JSON response as the location and network of the address, for IPv4 and IPv6.

Example request and response

The security object of the /v2/info endpoint, shortened from the example in the documentation. Add fields=security to get only the security data.

curl "https://api.ipbase.com/v2/info?ip=80.110.0.1" \
  -H "apikey: YOUR-API-KEY"
{
  "data": {
    "ip": "80.110.0.1",
    "connection": {
      "asn": 8412,
      "organization": "T-Mobile Austria GmbH",
      "isp": "UPC Technology",
      "range": "80.108.0.0/14"
    },
    "location": { "country": { "alpha2": "AT", "name": "Austria" } },
    "security": {
      "is_anonymous": false,
      "is_datacenter": false,
      "is_vpn": false,
      "is_bot": false,
      "is_abuser": false,
      "is_known_attacker": false,
      "is_proxy": false,
      "is_spam": false,
      "is_tor": false,
      "proxy_type": "",
      "is_icloud_relay": false,
      "threat_score": 0
    }
  }
}

Response fields

security.is_vpn
The address belongs to a VPN provider.
security.is_proxy
The address is a known open or anonymizing proxy.
security.is_tor
The address is a Tor exit node.
security.is_icloud_relay
The address is an iCloud Private Relay egress address.
security.is_datacenter
The address belongs to a hosting or cloud provider rather than a consumer network.
security.is_anonymous
The address hides the real client (VPN, proxy, Tor or relay).
security.is_bot, is_abuser, is_known_attacker, is_spam
The address has been seen sending bot traffic, abuse, attacks or spam.
security.threat_score
A score from 0 (no known threat) to 100, computed from the security flags.

Use cases

Sign-up and checkout fraud

Flag sign-ups and payments from VPNs, proxies and Tor before they reach your fraud review, and ask those users for extra verification.

Geo-restricted content

Licensing and compliance rules apply to the real location of a user. Detect when a VPN or proxy hides it.

Bot and abuse filtering

Rate-limit or challenge traffic from data centers and from addresses with a known abuse history.

Ad and analytics quality

Keep data center and anonymized traffic out of conversion and campaign reports.

Which plans include VPN and proxy detection

VPN and proxy detection is part of the Small plan and every plan above it: the VPN, proxy, Tor, iCloud Private Relay, data center, bot, abuse, spam and known attacker flags, and the threat score from 0 to 100. Prices exclude VAT, and yearly billing gives 2 months free. Compare the plans.

PlanPrice a monthRequests a monthSecurity dataASN APIHosted domains API
Free$0.00150 (10 a minute)No: every field is nullNoNo
Small$9.9965,000YesYesNo
Medium$39.99650,000YesYesYes
Large$89.992,500,000YesYesYes
CustomOn requestMore than 2,500,000YesYesYes

Frequently asked questions

Which plan includes VPN and proxy detection?

The Small plan ($9.99 a month, 65,000 requests) and every plan above it, custom plans included. The Medium plan does not add the security data, it adds the hosted domains (reverse IP) API, sandbox API keys and 5 team members.

What does a free API key return in the security object?

A free key returns location, connection, time zone and currency data. The security object is still in the response, but every field in it is null. On the Small plan and above, the same endpoint (GET https://api.ipbase.com/v2/info) returns the security data.

Which security flags does the API return?

From the Small plan, the security object flags addresses of VPNs (is_vpn), proxies (is_proxy), Tor exit nodes (is_tor), iCloud Private Relay (is_icloud_relay) and data centers (is_datacenter), and addresses seen sending bot traffic, abuse, attacks or spam (is_bot, is_abuser, is_known_attacker, is_spam). is_anonymous is true for any of VPN, proxy, Tor or relay, and threat_score runs from 0 (no known threat) to 100.

What is the threat score?

A number from 0 (no known threat) to 100 in the security object, computed from the security flags. It is part of the security data, so it is null on free keys.

Can the API detect any VPN?

It detects the IP addresses of known VPN providers, proxies, Tor exit nodes and iCloud Private Relay. A private VPN on a residential or business connection looks like that connection and cannot be told apart by its IP address alone.

Does it work for IPv6 addresses?

Yes. /v2/info accepts IPv4 and IPv6 addresses, and the security object has the same fields for both.

Can I check many IP addresses at once?

Yes. POST /v2/batch looks up to 1,000 IP addresses per request with an API key (100 in a GET query string), on every plan, the free one too; each address counts as one request of your quota.

Is there a free way to try it?

Yes, two ways. The free VPN and proxy checker shows the flags and the threat score for any address. Through the API, a free key gets the same response with every security field set to null (150 requests a month, 10 requests a minute, no credit card); the flags need the Small plan.

Is yearly billing cheaper?

Yes. Yearly billing gives 2 months free, about 17% off the monthly price. All prices exclude VAT.

Related

Free IP tools

Example lookups: 8.8.8.8 · 8.8.8.0/24 · AS15169 · example.com · all IPv4 ranges

Get your free IP geolocation API key

Start with 150 free requests a month