Response fields

Every lookup returns the same fields, so your code works the same on every plan.

Fields on the Free plan

On the Free plan, is_vpn, is_proxy, is_tor, is_hosting, hosting_provider, risk, risk_score and reason_codes are returned as null, and the response includes an upgrade field. Every other field is the same on every plan, so your code works unchanged when you upgrade.

How VPN detection is reported

is_vpn is true when the IP is a known VPN server, and vpn_confidence is then confirmed. It is also true for hosting and datacenter networks, where real people only appear through a VPN or proxy, and vpn_confidence is then likely. For an ordinary ISP connection, is_vpn is false and vpn_confidence is null. Check vpn_confidence if you only want to act on confirmed VPNs.

All fields

Response fields
FieldTypeDescription
ipstringThe IP address, normalised.
versioninteger4 or 6.
country_codestring or nullISO 3166-1 alpha-2 code, for example IN.
country_namestring or nullCountry name in English.
continentstring or nullContinent of the country, for example Asia.
is_eubooleanTrue when the country is an EU member state.
time_zonestring or nullMain time zone of the country, for example Asia/Kolkata.
currency_codestring or nullISO 4217 currency of the country, for example INR.
regionstring or nullState, province or region, for example Karnataka. Approximate.
citystring or nullApproximate city, for example Bengaluru. Mobile networks often show the operator's hub city. City data from DB-IP and MaxMind GeoLite2.
location_confidencestring or nullHow reliable region and city are: high when our sources agree, medium when they agree on the region or only one source knows, low when they disagree (use country or region instead).
asninteger or nullAutonomous system number of the network.
orgstring or nullOwner of the network.
networkstring or nullThe announced IP range that contains the address.
is_bogonbooleanTrue for private or reserved addresses that should never appear on the public internet.
is_vpnbooleanTrue when the IP belongs to a known commercial VPN network.
vpn_confidencestring or nullconfirmed for a known VPN server, likely for a hosting or datacenter network, null for an ordinary connection.
is_proxybooleanTrue when the IP is a known open proxy.
is_torbooleanTrue when the IP is a current Tor exit node.
is_hostingbooleanTrue for hosting, cloud and datacenter networks.
hosting_providerstring or nullProvider when is_hosting is true, for example aws.
riskstringlow; medium for VPN and hosting networks; high for Tor and open proxies.
risk_scoreintegerRisk from 0 (clean) to 100: the sum of the weights of the reason codes found, capped at 100. 50 or more is high, 20 to 49 medium, below 20 low.
reason_codesarrayWhy the IP got its score. Codes and their weights: tor (60), open_proxy (50), vpn_known_provider (40), abuse_listed (35), hosting (30), vpn_provider_asn (25), rdns_anonymizer (20), bogon (15). Empty when nothing was found.

Check endpoint fields

The check endpoint also returns:

Check endpoint fields
FieldTypeDescription
expectedarrayThe country codes you passed.
country_matchbooleanTrue when country_code is one of the expected countries.

Example response

Example response for GET /v1/5.9.0.1:

{
  "ip": "5.9.0.1",
  "version": 4,
  "country_code": "DE",
  "country_name": "Germany",
  "continent": "Europe",
  "is_eu": true,
  "time_zone": "Europe/Berlin",
  "currency_code": "EUR",
  "region": "Saxony",
  "city": "Falkenstein",
  "location_confidence": "high",
  "asn": 24940,
  "org": "HETZNER-AS",
  "network": "5.9.0.0 - 5.9.255.255",
  "is_bogon": false,
  "is_vpn": false,
  "is_proxy": false,
  "is_tor": false,
  "is_hosting": true,
  "hosting_provider": "hetzner",
  "risk": "medium",
  "risk_score": 30,
  "reason_codes": ["hosting"]
}
Need a hand? Search the Help Center or open a support ticket. We usually reply within one business day.