Skip to content

Re-extract stored results with the current schema

POST
/api/v1/extraction/backfill
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.

Media typeapplication/json
object
domain
required
string
pageType
required
string
jobIds

Jobs whose results to re-extract, as returned by the results routes.

Array<string>
<= 20 items
limit
integer
default: 20 >= 1 <= 20

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).

Media typeapplication/json
object
requestId
required

Identity of this re-extract request.

string format: uuid
queued
required
integer
skipped
required
integer
failed
required
integer
results
required
Array<object>
object
jobId
required

The job whose result is re-extracted.

string format: uuid
replayJobId
required

The replay job to poll; null unless status is queued.

string format: uuid
nullable
status
required
string
Allowed values: queued skipped_no_blob skipped_refunded skipped_unrecorded skipped_not_found error
Example
{
"results": [
{
"status": "queued"
}
]
}

Validation failed — request body or query is missing/invalid

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid \"url\" field"
}

Missing or invalid authentication token

Media typeapplication/json
object
error
string
Example
{
"error": "Missing or invalid authentication token"
}

Insufficient permissions for this operation

Media typeapplication/json
object
error
string
Example
{
"error": "No organization. Complete onboarding first."
}

Resource not found

Media typeapplication/json
object
error
string
Example
{
"error": "Workflow not found"
}

Unexpected server error. Logs and PostHog $exception capture

Media typeapplication/json
object
error
string
Example
{
"error": "Something went wrong"
}

The results store cannot answer right now (results_unavailable). Retry after Retry-After seconds.

Media typeapplication/json
One of:
StructuredExtractionResultError
object
error
required
object
code
required
string
Allowed values: result_lost results_unavailable
message
required
string
docs_url
required
string format: uri
request_id
required
string
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"
}
}
Retry-After
integer

Suggested delay in seconds before retrying.