Skip to main content
Replaces the v1 smartscraper endpoint. Provide a prompt (and optionally a JSON schema) and get typed JSON back — no selectors or post-processing needed.

Request body

Exactly one of url, html, or markdown must be supplied as the source.
string
URL of the page to extract from.
string
Raw HTML content to extract from (max 2 MB).
string
Markdown content to extract from (max 2 MB).
string
required
Natural-language description of what to extract.
object
JSON schema describing the desired output shape. When provided, the LLM is constrained to match it.
string
HTML pre-processing mode: "normal", "reader", or "prune".
object
Fetch-time options. See the Scrape endpoint for the full field list (mode, stealth, headers, cookies, scrolls, wait, timeout, country). Ignored when html or markdown is supplied.

Example request

Example response

With a schema

Extract from HTML or markdown