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 ofurl, html, or markdown must be supplied as the source.
JSON schema describing the desired output shape. When provided, the LLM is constrained to match it.
Optional non-empty MIME allowlist for URL input. Omit it to allow every supported type;
"all" and "*" are not accepted.Optional processing configuration for URL input. Omit this field to use the 25-page PDF cap. You
may also send
{"type":"pdf"} and omit maxPages; it defaults to 25. Set maxPages only to
override the default, using 1–500, or -1 for no page limit. PDF processing costs 1 credit
per page actually processed. See Configure PDF page
limits for examples.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
Related
- Service overview: Extract
- SDK wrappers: Python · JavaScript