Get the extraction result for a job
const url = 'https://api.justcrawl.io/api/v1/extraction/results/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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 higherrevision. A replay job’s id resolves to the capture it replayed, sojobIdnames 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). WaitretryAfterSeconds(also theRetry-Afterheader) 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 afterRetry-After.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Responses
Section titled “Responses”The result, or the job’s final no-extraction status.
object
The capture job that owns this result. A replay job id resolves to it.
The job that wrote the current revision: jobId, or the replay that corrected it.
Zero for the original extraction; higher after a replay.
object
When the page was captured.
When the current revision was processed.
Whether the raw extraction JSON is retained, without exposing its key.
object
Example
{ "status": "available"}Extraction finished; its result is not stored yet.
object
Example
{ "status": "pending"}Headers
Section titled “Headers”Suggested delay in seconds before the next poll.
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"}The job completed with an extraction, but its result is missing (result_lost), or an unexpected error occurred.
object
object
object
Example
{ "error": { "code": "result_lost" }}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.