Skip to content

Get access to a job result's raw extraction JSON

GET
/api/v1/extraction/results/{jobId}/raw
Code sample: cURL
curl -X GET 'https://api.justcrawl.io/api/v1/extraction/results/00000000-0000-0000-0000-000000000001/raw' \
-H 'Authorization: Bearer $JUSTCRAWL_API_KEY'

Returns a way to reach the raw extraction JSON stored for a job’s result: the extracted field values as the extractor first wrote them, as a JSON file. It is not the page HTML; read the captured page with GET /api/v1/jobs/{id}/result. The job is the same one GET /api/v1/extraction/results/{jobId} reads; a replay job’s id resolves to the capture it replayed. Another organization’s job reads as not found.

The response shape depends on where the blob lives, so branch on kind:

  • presigned — the blob is in JustCrawl’s bucket; url is a credential-bound download link valid for up to one hour. Fetch it directly, and re-request this endpoint rather than caching the link.
  • key — the blob is in the org’s own bucket; blobKey is the object key to read with your own credentials.
jobId
required
string format: uuid

The job whose raw extraction JSON to read.

Either a signed URL or an object key, depending on which bucket holds the blob.

Media typeapplication/json
One of:
RawBlobPresigned
object
kind
required
string
Allowed values: presigned
url
required

Revocable download link, valid for up to one hour and bounded by the issuing credential.

string format: uri
Example
{
"kind": "presigned"
}

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

No such job in this organization, it has no result, or no raw extraction JSON is stored for it.

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.