List your datasets
The datasets your team subscribes to (and those shared with it), with what the subscription follows and how the dataset is covered.
/datasets/v1/datasetscurl --request GET \
--url 'https://factget.dev/datasets/v1/datasets' \
--header "Authorization: Bearer $FACTGET_DATASETS_KEY"Replace IDs and sample values with your own. Examples are not executed in your browser.
Responses
200Successful response
datasetsobject[]requiredShow item properties
slugstringrequiredThe dataset's name in every URL, e.g. us-siting-restrictions.
titlestringrequiredone_row_perstringrequiredE.g. "jurisdiction × technology".
identifierobjectrequiredShow nested properties
columnsstring[]requiredformatstringrequiredE.g. "{jurisdiction}, {state}".
nounstringrequiredE.g. jurisdiction.
columnsobject[]requiredShow item properties
namestringrequiredtypestringrequired"text", "number", "date", "enum", "boolean"meaningstringrequiredkeybooleanrequiredPart of the row's key.
systembooleanrequiredlast_checked and collected_by.
tracked_sincestring | nullThe first date the column was collected.
entityobject | nullWhen the column names an entity other datasets share: {"type": "company", "part": "cik"}.
refreshobjectrequiredShow nested properties
cadencestringrequired"daily", "weekly", "monthly"hour_utcintegerrequiredminuteintegerrequiredlabelstringrequiredE.g. "Weekly, Mondays".
weekdayinteger | nullWeekly: ISO weekday, 1 = Monday.
dayinteger | nullMonthly: day of the month, 1 to 28.
last_refresh_atstring | nullnext_refresh_atstring | nullcoverageobject | nullShow nested properties
statementstringrequiredOne sentence: how many identifiers, how many by workflow and by agent, how many not covered, and recall against the reference list.
agent_sharenumberrequiredShare of identifiers collected by agent, 0 to 1.
recallnumber | nullShare of the owner's reference list that is live; null without a list.
subscriptionobject | nullYour team's subscription; null for a catalogue dataset read with lookup.
Show nested properties
identifiers_modestringrequired"all", "list"identifiersintegerrequiredIdentifiers followed.
rowsintegerrequiredRows under them.
columnsstring[]requiredThe data columns chosen; key and system columns always come.
accessstringteam: a dataset a teammate built and shared, read free.
Default:"subscribed"Allowed: "subscribed", "team"401Missing, unknown or revoked key (invalid_key).
errorstringrequiredA sentence for a person.
codestringrequiredA 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.
successbooleanfalsedetailsobject | nullMore 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).
errorstringrequiredA sentence for a person.
codestringrequiredA 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.
successbooleanfalsedetailsobject | nullMore 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.
errorstringrequiredA sentence for a person.
codestringrequiredA 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.
successbooleanfalsedetailsobject | nullMore 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).
errorstringrequiredA sentence for a person.
codestringrequiredA 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.
successbooleanfalsedetailsobject | nullMore 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.