GET/v2/batch/scrape/{id}

Requires an API key.

Parameters

idpath, stringrequired

The batch scrape ID.

Responses

OK

Type BatchScrapeStatusResponse

completedinteger (int64)required

Number of URLs done so far.

completedAtstring (date-time)

When the last URL got its result.

createdAtstring (date-time)required
expiresAtstring (date-time)required

When the results expire.

packageBatchScrapePackagerequired

The batch scrape's results package.

3 fields inside package
bytesinteger (int64)

The package's size in bytes, gzipped, set once status is ready.

statusstringrequired

pending until the batch scrape ends and its results are packaged; failed when packaging gave up, which refunded the batch scrape's credits.

One of pending, ready, failed

urlstring

The download URL, set once status is ready. It answers 302 to the gzipped NDJSON file, one document per line in URL order.

statusstringrequired

completed once every URL is done; cancelled after a cancel, whose unfetched URLs end with errorCode cancelled.

One of scraping, completed, cancelled

successbooleanrequired

Always true.

One of true

totalinteger (int64)required

Number of URLs.

webhookErrorWebhookEventErrors

Why a webhook event failed.

2 fields inside webhookError
finishstring

Why the finish event failed.

startstring

Why the start event failed.

webhookStatusWebhookEventStatuses

Delivery status of each webhook event.

2 fields inside webhookStatus
finishstring

Delivery status of the finish event.

One of pending, delivered, failed

startstring

Delivery status of the start event.

One of pending, delivered, failed