Skip to content
VPNDetection

Metadata

get/api/v1/database/metadata

Poll this to decide whether today's build is worth fetching: it carries updated and entries without downloading anything.

No format parameter - one document describes every format the database is built in. Needs no license: it answers for every database list returns, whatever its standing.

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>.

Query parameters

idrequiredstring

Responses

200application/json

OK

idrequiredstring
update_freqstring

How often a new build is published

updatedrequiredstring (date)
entriesrequiredinteger

Row count in the current build

schemarequiredobject

Columns, keyed by format

sampleobject

A few real rows, keyed by format

sizeobject

Bytes per format

sample_sizeobject

Bytes per format of the evaluation sample, where one is published

sample_entriesinteger

Row count in the evaluation sample

TypeScript type
ts
{
  id: string;
  update_freq?: string;
  updated: string;
  entries: number;
  schema: Record<string, {
    name: string;
    type: string;
    description?: string;
  }[]>;
  sample?: Record<string, Record<string, unknown>[]>;
  size?: Record<string, number>;
  sample_size?: Record<string, number>;
  sample_entries?: number;
}
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;
}
404application/json

No such database

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

Today's copy has not been published yet

rcrequiredstring
TypeScript type
ts
{
  rc: string;
}