Web Tasks

Read a list of urls

A batch of scrapes: queues one scrape per url you give it. Same fields as /scrape but with urls (2–50) and no url. Returns a jobId. It discovers nothing — for that, use /crawl. Returns a jobId for asynchronous work. A successful start is acceptance, not completion; poll the job status. Account credits can be refunded for unused work; x402 has no automatic on-chain refund.

post/tasks/v1/scrape/batch

Request

  • Base URL: https://api.oassis.dev
  • URL: https://api.oassis.dev/tasks/v1/scrape/batch
  • Auth: one of:
    • HTTP bearer
    • none

Request body

formatsstring[]

Outputs you want in the same response. controls is the map of what can be clicked; elements needs selectors; json needs json.prompt or json.schema.

selectorsstring[]

CSS selectors for the elements format.

maxAgeinteger

Accept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render.

binaryAs'base64'

How a screenshot or a PDF comes back. base64 is the only value today.

urlsstring[] required

The pages of this batch. Two to fifty, no duplicates: a batch charges per url.

Response

The result.

Changes

No recorded changes to this operation across all 1 revision of this API.