Skip to main content
POST
1 Credit per successful URL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <API_KEY>, where <API_KEY> is your api key.

Headers

Idempotency-Key
string

Any string unique to this submission. Retries with the same key return the original batch.

Maximum string length: 200

Body

application/json

Create an asynchronous scraping job.

input
Scrape · object
required

Scrape up to 25K URLs in one batch.

webhookUrl
string

URL notified when the batch finishes.

tags
string[]

Tags stored on the batch. Filter the batch list by them later.

Maximum array length: 20
Required string length: 1 - 50
Example:

Response

Batch accepted. Read progress and results from GET /batch/{batch_id}.

id
string
required

Batch ID. Poll GET /batch/{batch_id} with it.

Example:

"batch_9f2c8a"

status
enum<string>
required

Always queued. An accepted batch has not started yet.

Available options:
queued
mode
enum<string>
required

How pages will be selected.

Available options:
scrape,
crawl
format
enum<string>
required

What each page will be returned as.

Available options:
markdown,
html
tags
string[]
required

Tags stored on the batch.

Example:
crawl
Crawl controls · object | null
required

How the crawl was configured. Null for scrape batches.

input
object
required

What submission took in, and what it charged for.

credits
object
required

What accepting this batch cost.

created_at
string
required

When the batch was created.

invalid_urls
object[]
required

Rejected URLs, up to 100. These are not charged.

webhook_secret
string

Signing secret for the completion webhook, returned only here and never again. Store it now; it is not repeated by GET /batch/{batch_id}.

key_metadata
object

API key usage for this request.