Skip to main content

Scrape a URL

POST /v1/scrape fetches a URL with a stealth browser and returns its content in one of five output formats. Markdown is the default and is optimized for LLM consumption.
Authentication: API key or x402 payment. On x402 requests, payment is verified before the scrape and settled only on success.

Endpoint

Request

Headers

Body

Options by output format

Response

Success — 200 OK

Markdown data shape:

Examples

Markdown (default)

Screenshot (base64 PNG)

Response

PDF

CSV (table extraction)

Custom JavaScript + wait strategy

Errors

Error example
Error responses carry a payment_charged boolean so x402 callers can confirm they were not charged for a failed scrape.