Skip to content

Get the extraction result for a job

GET
/api/v1/extraction/results/{jobId}
curl --request GET \
--url https://api.justcrawl.io/api/v1/extraction/results/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \
--header 'Authorization: Bearer <token>'

Fetches the extraction result a job produced. The job’s status and the results store decide the answer, so poll on status:

  • 200 available — the latest revision of the capture, returned as soon as it is stored, even while another delivery target (such as your webhook) is still pending. After a heal or re-extraction it carries the corrected values and a higher revision. A replay job’s id resolves to the capture it replayed, so jobId names that capture.
  • 200 no_extraction — the job completed without an extraction step (a plain scrape). This is a final answer, not an error.
  • 202 pending — extraction finished and its result is not stored yet (for a replay job: its new values are not stored yet). Wait retryAfterSeconds (also the Retry-After header) and poll again.
  • 404 — no such job in this organization, or the job has not extracted yet (pending, running, waiting_retry) or failed. Another tenant’s job reads the same.
  • 500 result_lost — the job completed with an extraction, but its result is missing. The team is alerted; polling again does not help.
  • 503 results_unavailable — the results store cannot answer right now. Retry after Retry-After.
jobId
required
string format: uuid

The result, or the job’s final no-extraction status.

Media typeapplication/json
One of:
object
status
required
string
Allowed values: available
jobId
required

The capture job that owns this result. A replay job id resolves to it.

string format: uuid
revisionJobId
required

The job that wrote the current revision: jobId, or the replay that corrected it.

string format: uuid
revision
required

Zero for the original extraction; higher after a replay.

integer
domain
required
string
dataType
required
string
schemaId
required
string
nullable
schemaVersionId
required
string
nullable
schemaVersion
required
integer
normalized
required
object
key
additional properties
any
qualityCompleteness
required
number
nullable
qualityValidation
required
number
nullable
qualityComposite
required
number
nullable
urlItemId
required
string format: uuid
nullable
observedAt
required

When the page was captured.

string format: date-time
createdAt
required

When the current revision was processed.

string format: date-time
hasRawBlob
required

Whether the raw extraction JSON is retained, without exposing its key.

boolean
Example
{
"status": "available"
}

Extraction finished; its result is not stored yet.

Media typeapplication/json
object
status
required
string
Allowed values: pending
jobId
required
string format: uuid
retryAfterSeconds
required
integer
message
string
Example
{
"status": "pending"
}
Retry-After
integer

Suggested delay in seconds before the next poll.

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"
}

The job completed with an extraction, but its result is missing (result_lost), or an unexpected error occurred.

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": "result_lost"
}
}

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.