Skip to content
VPNDetection

History

get/api/v1/database/downloads

Recent download attempts for this organization, newest first. Refusals are listed too, so a failed transfer can be accounted for.

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

limitinteger

How many attempts to return. Clamped to 1 through 200.

Default 50 · Min 1 · Max 200

Responses

200application/json

OK

downloadsrequiredarray<object>
dataset_idrequiredstring
formatrequiredstring
outcomerequired"ok" | "unauthorized" | "denied" | "expired" | "unknown" | "unavailable"
samplerequiredboolean

The evaluation sample rather than the database itself.

openrequiredboolean

A download of an Open database.

bytesrequiredinteger (int64)

Object size at redirect time, NOT bytes delivered: the transfer is a presigned redirect straight to object storage, so we never observe it. int64 for the same reason as DatabaseFormatSize.bytes - it is the size of the same object.

http_statusrequiredinteger
apikey_idrequiredstring

The key that made the request. Null when the org acted through the console rather than through a key.

client_iprequiredstring
user_agentrequiredstring
createdrequiredstring (date-time)
TypeScript type
ts
{
  downloads: ({
    dataset_id: string;
    format: string;
    outcome: "ok" | "unauthorized" | "denied" | "expired" | "unknown" | "unavailable";
    sample: boolean;
    open: boolean;
    bytes: number | null;
    http_status: number | null;
    apikey_id: string | null;
    client_ip: string | null;
    user_agent: string | null;
    created: string;
  })[];
}
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;
}