Developers /Datasets API

Get usage

Checks (scheduled refreshes of followed identifiers), lookups, on-demand refreshes, explained changes and reads, for the team and for this key, with a per-day series.

GET/datasets/v1/usage
GET example
curl --request GET \
  --url 'https://factget.dev/datasets/v1/usage' \
  --header "Authorization: Bearer $FACTGET_DATASETS_KEY"

Replace IDs and sample values with your own. Examples are not executed in your browser.

Authorization

Authorizationstring · header · required

Bearer Datasets API key with the required scope. Learn about authentication →

Parameters

Query parameters

monthstring | null

YYYY-MM (UTC); defaults to this month.

Responses

200Successful response
application/json
monthstringrequired

YYYY-MM (UTC).

limitsobjectrequired
Show nested properties
allowanceintegerrequired
capintegerrequired
unitstring
Default: "checks"
usedintegerrequired

Checks used this month: scheduled refreshes plus lookups.

leftintegerrequired
by_kindobjectrequired
Show nested properties
checkintegerrequired
lookupintegerrequired
readintegerrequired
explaininteger

Explained changes (1 check each).

Default: 0
refreshinteger

On-demand refreshes (checks).

Default: 0
by_datasetobject[]required
Show item properties
checkintegerrequired
lookupintegerrequired
readintegerrequired
datasetstring | null

The dataset's slug.

this_keyobjectrequired
Show nested properties
checkintegerrequired
lookupintegerrequired
readintegerrequired
explaininteger

Explained changes (1 check each).

Default: 0
refreshinteger

On-demand refreshes (checks).

Default: 0
by_dayobject[]required

Every day of the month up to today (UTC), zero-filled.

Show item properties
datestringrequired
checkintegerrequired
lookupintegerrequired
readintegerrequired
explainintegerrequired
refreshintegerrequired
agent_unitsintegerrequired

The part of the day's checks and lookups spent on identifiers collected by agent.

agent_units_by_kindobject

The day's agent units inside each charged kind (check, lookup, explain, refresh).

400Invalid request: a parameter failed validation (invalid_request, details.field).
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

401Missing, unknown or revoked key (invalid_key).
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

403The key lacks a scope (insufficient_scope), or the team does not subscribe (not_subscribed).
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

429Over the key's per-minute limit (rate_limited), or every identifier was refreshed on demand in the last hour (refresh_too_soon); wait for Retry-After.
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

503The Datasets API is turned off (datasets_off).
application/json
errorstringrequired

A sentence for a person.

codestringrequired

A stable code: invalid_request, invalid_key, insufficient_checks, insufficient_scope, not_subscribed, not_found, identifier_not_found, correction_open, key_column, pending, rate_limited, refresh_too_soon, too_many_requests or datasets_off.

successboolean
Default: false
detailsobject | null

More about the error, e.g. the field that failed validation, or required, used and limit for insufficient_checks.

The API schema lists the responses above. Long-running operations can also return 202; see async jobs. For application errors, see errors & retries.