VPNDetection
v7.0.1VPN, proxy, Tor, hosting and CDN detection for any IP address, from the VPNDetection API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lookup_ip Look up an IP address
Classify a single IPv4 or IPv6 address: whether it belongs to a VPN, a residential, datacenter, mobile or public proxy, a Tor node, a privacy relay or web gateway, a hosting provider or a CDN, with the provider name where we have one; whether a crawler or other bot uses it, and whose; whether it is anycast, or a mobile carrier's or satellite operator's space; and whether an SSH, mail or web server or an open DNS resolver answered on it, or a BitTorrent client was seen on it. Pass the `User-Agent` a client at this address sent as `user_agent` to learn whether the address bears it out, which tel…
| Parameter | Type | Description |
|---|---|---|
ip * | string | The IPv4 or IPv6 address to classify. |
user_agent | string | The `User-Agent` a client at this address sent. The answer's `user_agent` then names the agent and says whether this address bears it out, so a crawler forging its agent reads `spoofed`. An answer wit… |
lookup_ips Look up several IP addresses
Classify a list of addresses in one call, returning a map keyed by address so duplicates collapse and the order you passed them stops mattering. Pass the whole list rather than splitting it yourself: a long one is batched for you. Prefer this over repeated `lookup_ip` calls when you already have the list, for example when triaging a log file. To check the agents such a log claims, pass `user_agents`, one `User-Agent` per address, and each answer says whether its address bears its agent out. A batch needs a key on a paid plan: with a key on the free plan, a list of up to 10 addresses is looked…
| Parameter | Type | Description |
|---|---|---|
ips * | array | The IPv4 or IPv6 addresses to classify. |
user_agents | object | Each address's `User-Agent`, keyed by the address as `ips` spells it. An address left out sends none. The answer's `user_agent` then names the agent and says whether this address bears it out, so a cr… |
my_entitlement Plan and usage for this key
What this API key is entitled to and how much of it has been used: the plan, the field tier that decides how much of a lookup answer comes back, the requests counted so far, the allowance, and when it resets. Use it to explain why a field is missing from a lookup, or before a large batch. A paid plan's usage counts against the anniversary of the subscription rather than the calendar month; the free plan's counts the UTC day's lookups answered with every field. Either can lag a few seconds behind. `hard_limit` is where full answers stop, and a null one means they never do - it is NOT a limit of…
list_databases List databases
The database catalog as this API key's organization may see it, one entry per database FAMILY, with `standing` saying where their license stands: `licensed` if the family is theirs today, `expired` if the term has ended, `unlicensed` if it is published but has never been bought. Each entry has a `base` ID, which is what the license names, and a `versions` array whose `id` is what the other database tools take - pass `versions[].id` (`cdn_ip_v1`), never the `base` (`cdn_ip`). Ask again rather than holding on to this: it is answered per key and is not the same for everyone.
database_metadata Describe a database
What is inside one database before you fetch it: the columns in each published format with their types, a few sample rows, the row count, the build date and the file sizes. Use this to answer questions about what a database contains without downloading it - the files reach several GB - and to budget a transfer before starting one.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | A VERSIONED database ID, from `versions[].id` in `list_databases` - `cdn_ip_v1`, not `cdn_ip`. The unversioned base ID is a license reference and is not accepted here. |
database_checksum Get a database's checksums
The published digests for one database file, for verifying a copy you already hold or deciding whether a build has changed since you last fetched it. It is licensed like the download itself, so a database this key cannot download is refused here too. Looking up a checksum is not a download and does not appear in `list_downloads`.
| Parameter | Type | Description |
|---|---|---|
dataset_id * | string | A VERSIONED database ID, from `versions[].id` in `list_databases` - `cdn_ip_v1`, not `cdn_ip`. The unversioned base ID is a license reference and is not accepted here. |
format * | string | Which published file to digest. |
list_downloads List recent download attempts
This organization's own recent download attempts, newest first, REFUSALS INCLUDED - a denial carries the `outcome` and `http_status` that answer "it stopped working", which nothing else here can. Use it to explain a failing fetch, to confirm a transfer ran, or to check whether a request was theirs. This is a bounded WINDOW of at most 200 rows, so a database missing from the answer means it is not in this window - never that it was never downloaded.
| Parameter | Type | Description |
|---|---|---|
limit | integer | How many attempts to return, newest first. At most 200; the API defaults to 50. |