Skip to main content
POST

Authorizations

Authorization
string
header
required

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

Body

application/json
urls
(string<uri> | object)[]
required

1 to 50 pages to scrape, each starting with http:// or https://. Send plain strings or { "url": "..." } objects. An object may only have url. Private and internal addresses are rejected, and tracking parameters such as utm_source are removed.

Required array length: 1 - 50 elements
prompt
string

What you want from each page, in plain English, such as "Extract the book details". Without a schema, the AI picks the shape of the answer.

schema
object

A JSON Schema for each item's result. You get exactly these fields and types, with null for anything the page doesn't show. The root must be "type": "object". Sending a schema sets output to "json".

output
enum<string>
default:markdown

markdown returns each page as Markdown, or the AI's answer as text when you send a prompt. json returns structured data: on popular sites with no prompt, the page's data; elsewhere, data the AI extracts. Lowercase only.

Available options:
markdown,
json
scrapeMode
enum<string>
default:default

default opens every page in a real browser. fast fetches the page directly and opens a browser only when the page needs one, which is quicker for static pages. crawlerMode is accepted as an older name for this field.

Available options:
default,
fast
useProxy
boolean
default:false

Turns on Stealth Mode for every URL. Billed by bandwidth, not credits. Not needed when you set proxyCountry. false keeps the proxy off, even with a country. When Stealth Mode can't be used because your proxy bandwidth ran out, the request runs without it and warnings says so.

proxyCountry
string

The country to read pages from, as a two-letter code such as us, gb or de, or eu or asia. Setting a country turns Stealth Mode on (billed by bandwidth), and the response's warnings says so, unless useProxy is false: then the country isn't used, and warnings says that instead. global means any country.

Example:

"gb"

cookies
string

Cookies from your own signed-in browser session, sent with every URL. Either name=value; name2=value2 or rows pasted from your browser's DevTools. Never stored, so send them again when you retry. See Logged-in pages.

screenshot
boolean
default:false

Takes a screenshot of the visible part of each page. Each item's screenshotUrl links to it.

fullPageScreenshot
boolean
default:false

Takes a screenshot of each whole page, top to bottom. You don't need to set screenshot as well.

extractContentOnly
boolean
default:false

Removes headers, footers, menus and other page furniture from the Markdown, leaving the main content.

wait
boolean
default:false

With up to 10 URLs, waits up to 45 seconds and answers 200 with the finished batch. With more URLs, or if the batch takes longer, you get 202 and poll as usual. Never an error.

Response

Only with wait: true and up to 10 URLs. The batch finished within 45 seconds, and here it is in full.

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.

schema_warnings
string[]

Only when your schema uses keywords that are ignored, such as anyOf.