History
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
limitintegerHow many attempts to return. Clamped to 1 through 200.
Default 50 · Min 1 · Max 200
Responses
200application/json
OK
downloadsrequiredarray<object>
dataset_idrequiredstringformatrequiredstringoutcomerequired"ok" | "unauthorized" | "denied" | "expired" | "unknown" | "unavailable"samplerequiredbooleanThe evaluation sample rather than the database itself.
openrequiredbooleanA 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_statusrequiredintegerapikey_idrequiredstringThe key that made the request. Null when the org acted through the console rather than through a key.
client_iprequiredstringuser_agentrequiredstringcreatedrequiredstring (date-time)TypeScript type
{
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
rcrequiredstringTypeScript type
{
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
rcrequiredstringTypeScript type
{
rc: string;
}