Skip to content
VPNDetection

List

get/api/v1/database/list

Every database this organization can see, licensed or not. standing says where its license stands: licensed, expired, or unlicensed for one never bought.

Authorization

apiKeyQueryapikey in query

?apikey=<key>. Convenient in a browser; prefer a header elsewhere.

apiKeyHeaderX-Api-Key in header

X-Api-Key: <key>.

bearerAuthbearer token

Authorization: Bearer <key>.

Responses

200application/json

OK

databasesrequiredarray<object>
baserequiredstring

The database family, e.g. vpn_ip. What the license is held against.

Example vpn_ip

namerequiredstring

Example VPN IP

summaryrequiredstring
license_typerequired"evaluation" | "standard" | "redistribute" | null

What a license permits you to do with the data. Null for a family you hold no license for, which is every one with standing unlicensed.

startsrequiredstring (date-time)
expiresrequiredstring (date-time)

A hard stop. Null when the license has no end date, which is the normal case for a rolling agreement, and when there is no license. A rolling license reports its turnover date in renews_at instead.

renews_atrequiredstring (date-time)

When a rolling license next renews. Null when the license has no defined term, when expires sets a hard stop instead, and when there is no license.

notice_due_atrequiredstring (date-time)

The last day notice of non-renewal can be given for the term ending at renews_at. Null whenever renews_at is, and when the agreement records no notice period.

in_termrequiredboolean

False when the license has lapsed; downloads are refused.

standingrequired"expired" | "licensed" | "unlicensed"

Where your license for a database family stands today. licensed is a live grant, expired one whose term has ended, and unlicensed a database published but never bought.

openrequiredboolean

An Open database: free under CC BY-SA 4.0 (credit VPNDetection, https://vpndetection.io, and share what you build from it under the same license). Every organization holds a standard license to it from the start, which standing and license_type report like any other.

versionsrequiredarray<object>

Every published version of this family. The id here is what the download and checksum endpoints take.

idrequiredstring

The versioned database ID, e.g. vpn_ip_v1. Pass this to download.

Example vpn_ip_v1

versionrequiredinteger

Example 1

summarystring
formatsrequiredarray<object>
formatrequired"csvgz" | "mmdb"

A file format a database version is published in.

bytesrequiredinteger (int64)

Size of the published file, or null when it has not been published yet. int64 because it is not hypothetical: resproxy_ip_14d's MMDB is 4.58 GB, so a 32-bit field cannot carry the catalog and list throws for every caller rather than for that one entry.

sample_formatsarray<"csvgz" | "mmdb">

The formats an evaluation sample is published in, if any.

TypeScript type
ts
{
  databases: ({
    base: string;
    name: string;
    summary: string;
    license_type: "evaluation" | "standard" | "redistribute" | null;
    starts: string | null;
    expires: string | null;
    renews_at: string | null;
    notice_due_at: string | null;
    in_term: boolean;
    standing: "expired" | "licensed" | "unlicensed";
    open: boolean;
    versions: ({
      id: string;
      version: number;
      summary?: string;
      formats: ({
        format: "csvgz" | "mmdb";
        bytes: number | null;
      })[];
      sample_formats?: ("csvgz" | "mmdb")[];
    })[];
  })[];
}
401application/json

Missing or invalid key, or the key lacks the db.download scope

rcrequiredstring
TypeScript type
ts
{
  rc: string;
}
403application/json

The key was sent over plain HTTP (KEY_OVER_HTTP), refused whatever it is. By then it has crossed in the clear, so use https:// and replace a key that did

rcrequiredstring
TypeScript type
ts
{
  rc: string;
}