formats.json and provide jsonParams.schema. An AI model reads the page’s Markdown, JSON-LD, meta tags, and embedded framework or storefront data and returns an object in json.data. Embedded data can supply values that are absent from the visible page text.
Define the object
Send this body toPOST /web/scrape. See the Quickstart for authentication and SDK setup.
Design for missing facts
Use optional or nullable fields for facts a page might omit. Required, non-nullable fields receive a best-effort value and can introduce guesses. In optional or nullable fields, numbers that do not appear on the page and punctuation-only strings are dropped: nullable fields returnnull and optional fields are omitted. Enum values, whole numbers up to 12, and fields named for a computed value (such as total, count, or average) are kept. Review extracted values before using them for consequential decisions.
The schema must describe a top-level object. Wrap a list in an object property:
additionalProperties, are accepted. Zod users can pass z.toJSONSchema() output. jsonParams.instructions can specify which facts to prioritize or how to interpret fields.
Choose an extraction method
Limits
Extraction from page text adds a Scrape modifier charge; a failed extraction or a page with no text adds nothing. Schemas are limited to 50 KB when serialized; instructions to 2,000 characters. Extraction reads up to 100,000 characters of Markdown after content filtering, alongside relevant structured page data. Both text and structured data have size budgets, so not every embedded value reaches the extraction model. On a longer page it keeps the sections that best match your schema, instructions, and URL fragment, and a successful output includesisTruncated: true; values found only in omitted sections can be missing. A page with no usable extraction content returns {}. A failed or timed-out extraction has success: false, data: null, and an error_code and message.