Skip to main content
GET
Poll async content extraction job status
Retrieve the status and results for the job_id returned by an asynchronous Contents request. Store this ID when creating the job so your application can resume polling after a restart. Poll with a delay rather than continuously, stop at a terminal state, and inspect each URL’s extraction result. A completed job does not imply that every requested page was accessible. A failed job returns results and actual_cost_dollars like the other finished states. Every URL has a result with its status and error. A not-found page (a 404 with no real content) has status: "not_found" and error: "Page not found (404)". The job-level error can be empty, so read the error of each result. If the webhook for a job is not confirmed, Valyu sends it again, up to 3 times. Use job_id to ignore a copy that you already processed. A URL that fails with a retryable error gets one automatic retry, and you are billed once. Start an extraction with Contents.

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours at platform.valyu.ai.

Path Parameters

job_id
string
required

The job ID returned by the async contents request.

Response

Job status and results (when complete).

Async job status and results.

success
boolean
required

Whether the request succeeded.

Example:

true

job_id
string
required

Unique identifier for the async job.

Example:

"cj_a1b2c3d4e5f6g7h8"

status
enum<string>
required

Current job status.

  • pending - Job created, not yet started
  • processing - URLs are being processed
  • completed - All URLs processed successfully
  • partial - Processing finished with some failures
  • failed - All URLs failed. The response still lists every URL in results, each with its status and error.
Available options:
pending,
processing,
completed,
partial,
failed
Example:

"completed"

urls_total
integer
required

Total number of URLs to process.

Example:

25

urls_processed
integer
required

Number of URLs successfully processed so far.

Example:

23

urls_failed
integer
required

Number of URLs that failed processing.

Example:

2

created_at
integer

Job creation time as Unix timestamp in milliseconds.

Example:

1707000000000

updated_at
integer

Last update time as Unix timestamp in milliseconds.

Example:

1707000060000

current_batch
integer

Current batch being processed. Only present when status is "processing".

Example:

3

total_batches
integer

Total number of batches. Only present when status is "processing".

Example:

5

results
object[]

One result for each URL, each with its own status and, if the URL did not succeed, an error. Present when status is "completed", "partial" or "failed". A not-found page (a 404 with no real content) is a row with status "not_found", not a missing row.

actual_cost_dollars
number

Total cost. Present when the job is finished (completed, partial or failed). It is 0 when no URL succeeded.

Example:

0.02875

error
string

Job-level error message. Can be absent on a failed or partial job when every failure is per-URL. Read the error of each result for the reason.