Re-extract stored results with the current schema
const url = 'https://api.justcrawl.io/api/v1/extraction/backfill';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"domain":"example","pageType":"example","jobIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"],"limit":20}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.justcrawl.io/api/v1/extraction/backfill \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "domain": "example", "pageType": "example", "jobIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ], "limit": 20 }'Queues a re-extraction of stored results with the current merged schema (platform-discovered plus this org’s custom attributes) against each job’s exact recorded capture (pinned object version, checksum-verified). Useful after editing custom attributes: old results pick up the new fields without a re-scrape.
Each selected job gets one replay job, returned as replayJobId. A replay job completes once
its values are stored; poll it with GET /api/v1/jobs/{id}. The job’s result,
GET /api/v1/extraction/results/{jobId}, then carries the new values with a higher
revision. A legacy capture with no recorded version is skipped as skipped_unrecorded
rather than read from a newer page.
Either pass jobIds to target exact results, or omit it to queue the most recent limit
results for the (domain, pageType) pair. At most 20 jobs per call. Requires
workflows:write.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
Jobs whose results to re-extract, as returned by the results routes.
Responses
Section titled “Responses”Per-job outcome. queued jobs carry the replayJobId to poll; the others were not
queued (skipped_no_blob / skipped_refunded / skipped_unrecorded /
skipped_not_found / error).
object
Identity of this re-extract request.
object
The job whose result is re-extracted.
The replay job to poll; null unless status is queued.
Example
{ "results": [ { "status": "queued" } ]}Validation failed — request body or query is missing/invalid
object
Example
{ "error": "Missing or invalid \"url\" field"}Missing or invalid authentication token
object
Example
{ "error": "Missing or invalid authentication token"}Insufficient permissions for this operation
object
Example
{ "error": "No organization. Complete onboarding first."}Resource not found
object
Example
{ "error": "Workflow not found"}Unexpected server error. Logs and PostHog $exception capture
object
Example
{ "error": "Something went wrong"}The results store cannot answer right now (results_unavailable). Retry after Retry-After seconds.
object
object
object
Example
{ "error": { "code": "results_unavailable", "message": "Extraction results are temporarily unavailable. Retry after the Retry-After interval.", "docs_url": "https://docs.justcrawl.io/guides/errors/results_unavailable", "request_id": "req_9f3a1c7e2b40" }}Headers
Section titled “Headers”Suggested delay in seconds before retrying.