Skip to main content
GET
Get a batch

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

batchId
string<uuid>
required

The batchId returned by POST /batch/scrape.

Response

The batch with every item.

A batch with every item.

batchId
string<uuid>

The batch's ID.

status
enum<string>
  • pending: queued, no URL has started yet.
  • running: at least one URL is being scraped.
  • completed: every URL has finished. Some may have failed, so check failedCount and each item's status.
  • cancelled: you cancelled the batch. Items that had finished keep their results.
Available options:
pending,
running,
completed,
cancelled
totalUrls
integer

How many URLs the batch has.

completedCount
integer

How many URLs finished successfully.

failedCount
integer

How many URLs failed.

items
object[]

One entry per URL, in the order you sent them.

createdAt
string<date-time>

When the batch was created.

finishedAt
string<date-time> | null

When the batch finished or was cancelled. null while it runs.