Preview a refresh
What `POST /v1/{dataset}/refresh` with the same body would refresh and charge now, and what it would skip. Nothing is charged or queued.
/datasets/v1/{dataset}/refresh/previewcurl --request POST \
--url 'https://factget.dev/datasets/v1/{dataset}/refresh/preview' \
--header "Authorization: Bearer $FACTGET_DATASETS_KEY" \
--header 'Content-Type: application/json' \
--data '{
"identifiers": [
"Loudoun County, VA",
"Fauquier County, VA"
]
}'Replace IDs and sample values with your own. Examples are not executed in your browser.
Parameters
Path parameters
datasetstringrequiredRequest body
identifiersstring[] | nullIdentifiers your team follows, as displayed (e.g. "Loudoun County, VA"); leave out for every identifier you follow. At most 500.
Responses
200Successful response
identifiersobject[]requiredThe identifiers a refresh now would queue.
Show item properties
identifierstringrequiredcollected_bystringrequired"workflow", "agent"checksintegerrequiredWhat refreshing it now would charge: 1, the agent weight for one collected by agent, 0 on your team's own dataset.
checksintegerrequiredChecks a refresh now would charge in all.
agent_identifiersintegerrequiredskippedobject[]requiredShow item properties
identifierstringrequiredreasonstringrequiredrecent: refreshed on demand in the last hour (retry_at); pending: an agent change waits for its second read.
Allowed:"recent", "not_live", "pending", "not_followed"retry_atstring | nullfreebooleanrequiredYour team's own dataset: refreshes are not charged.
frozenbooleanrequiredThe subscription is frozen: a refresh would be refused (402).
leftintegerrequiredChecks your team has left this month.
retry_atstring | nullWhen every identifier asked was refreshed in the last hour: the earliest time one can be refreshed again.
expected_bystring | null400Invalid request: a parameter failed validation (invalid_request, details.field).
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.
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.
404Unknown dataset, row or request, or another team's (not_found).
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.