Skip to content
VPNDetection

BigQuery

Look up addresses in our databases from inside Google BigQuery, with nothing to download.

We publish our databases to Google BigQuery through BigQuery sharing. Subscribing adds a read-only dataset to a project of yours, rebuilt from the same build as the downloads, and you query it like your own tables. Every listing shows us the email address of each account that queries it.

The Open listing

VPNDetection Open holds our Open databases, free under CC BY-SA 4.0:

TableDatabase
tor_ip_v1Tor IP
relay_ip_v1Relay IP
relay_provider_v1Relay Provider

In the BigQuery console, open Sharing, search for VPNDetection and pick the listing in the region your data lives in: VPNDetection Open for the US multi-region, VPNDetection Open EU for the EU one, since BigQuery doesn't join across regions. Click Subscribe and name the dataset it adds. The examples below call it vpndetection_open.

Credit VPNDetection with a link to vpndetection.io wherever you use the data, and share what you build from it under the same license.

Looking up an address

Each table keyed by address has a function of the same name. Pass it an address and it returns the row covering it as a STRUCT, or NULL when there's none:

sql
SELECT vpndetection_open.tor_ip_v1('185.220.101.1').confidence

Enriching a table of your own is one more column:

sql
SELECT l.*, vpndetection_open.relay_ip_v1(l.ip).provider AS relay
FROM mydataset.logins AS l

Where several rows cover an address, the function returns the narrowest. For every one of them, call the table function named after the table with a lookup_ prefix. It takes a table with an ip column and returns a row per match:

sql
SELECT ip, provider, confidence
FROM vpndetection_vpn_ip.lookup_vpn_ip_v1((SELECT ip FROM mydataset.logins))

Both take IPv4 and IPv6, look up an IPv4-mapped address (::ffff:1.2.3.4) as the IPv4 it carries, and treat a value that isn't an address as a miss. On November 14, 2026, a million addresses against VPN IP's 14.5 million ranges took 6 to 8 seconds and read 1,070 MB through vpn_ip_v1, and 3 to 4 seconds and 441 MB through lookup_vpn_ip_v1, selecting provider.

ip_sample holds several hundred addresses from the Open tables, picked again every day, to try the functions on before you bring your own:

sql
SELECT ip,
    vpndetection_open.tor_ip_v1(ip).confidence AS tor,
    vpndetection_open.relay_ip_v1(ip).provider AS relay
FROM vpndetection_open.ip_sample

Every other database

Each of our other databases is a listing of its own, with a dataset in each region, under the license you hold for it:

ListingTables
VPN IPvpn_ip_v1, vpn_provider_v3
Datacenter Proxy IPdcproxy_ip_1d_v1, dcproxy_ip_7d_v1, dcproxy_ip_14d_v1, dcproxy_ip_30d_v1, dcproxy_ip_60d_v1, dcproxy_ip_90d_v1, dcproxy_provider_v2
Public Proxy IPpubproxy_ip_1d_v1, pubproxy_ip_7d_v1, pubproxy_ip_14d_v1, pubproxy_ip_30d_v1, pubproxy_ip_60d_v1, pubproxy_ip_90d_v1
Hosting IPhosting_ip_v1, hosting_provider_v1
CDN IPcdn_ip_v1, cdn_provider_v1

Name each dataset after its listing when you subscribe, vpndetection_vpn_ip for VPN IP, and the functions of every database you hold combine in one query:

sql
SELECT l.*,
    vpndetection_vpn_ip.vpn_ip_v1(l.ip).provider AS vpn,
    vpndetection_open.tor_ip_v1(l.ip).confidence AS tor
FROM mydataset.logins AS l

Contact us to add a database.

Tables

Each database is one table named after its database ID, with the same rows and columns as its CSV download. An empty cell is NULL. A table keyed by range adds the columns its functions use: start_ip_bytes, end_ip_bytes and join_key. A provider catalog is a plain table beside it.

A table's description gives its row count and the date of its data, and every column has a description of its own.

Costs and updates

Your queries run and bill in your own project, at BigQuery's usual rates. The tables cost you nothing to store.

A function scans its whole table, however few addresses you pass it: the scalar reads every column, and the table function only the columns it matches on and the ones you select. One address through vpn_ip_v1 reads as much as a million, and a dry run shows what a query will read before you run it.

Each table is rebuilt the day its database changes. A subscription always reads the current table, so there's nothing to refresh on your side.