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
| Field | Type | Description |
|---|---|---|
ip | string | The IP address, normalised. |
version | integer | 4 or 6. |
country_code | string or null | ISO 3166-1 alpha-2 code, for example IN. |
country_name | string or null | Country name in English. |
continent | string or null | Continent of the country, for example Asia. |
is_eu | boolean | True when the country is an EU member state. |
time_zone | string or null | Main time zone of the country, for example Asia/Kolkata. |
currency_code | string or null | ISO 4217 currency of the country, for example INR. |
region | string or null | State, province or region, for example Karnataka. Approximate. |
city | string or null | Approximate city, for example Bengaluru. Mobile networks often show the operator's hub city. City data from DB-IP and MaxMind GeoLite2. |
location_confidence | string or null | How 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). |
asn | integer or null | Autonomous system number of the network. |
org | string or null | Owner of the network. |
network | string or null | The announced IP range that contains the address. |
is_bogon | boolean | True for private or reserved addresses that should never appear on the public internet. |
is_vpn | boolean | True when the IP belongs to a known commercial VPN network. |
vpn_confidence | string or null | confirmed for a known VPN server, likely for a hosting or datacenter network, null for an ordinary connection. |
is_proxy | boolean | True when the IP is a known open proxy. |
is_tor | boolean | True when the IP is a current Tor exit node. |
is_hosting | boolean | True for hosting, cloud and datacenter networks. |
hosting_provider | string or null | Provider when is_hosting is true, for example aws. |
risk | string | low; medium for VPN and hosting networks; high for Tor and open proxies. |
risk_score | integer | Risk 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_codes | array | Why 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:
| Field | Type | Description |
|---|---|---|
expected | array | The country codes you passed. |
country_match | boolean | True 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"]
}