Skip to main content
Fetch can now return typed JSON from a known URL on the same /fetch call. Pass a JSON Schema in schema and the response keeps the existing markdown while adding data. Optional instructions steer extraction for rules the schema cannot express. Default Fetch is unchanged: URL in, markdown out.

What’s new

  • schema — JSON Schema of type "object". Turns structured output on. Field descriptions tell the model what to look for.
  • instructions — optional. Requires schema. Maximum 4,000 characters.
  • data — present in the response only when schema is set. Fields with no grounded value are omitted, even if marked required.
  • Same call otherwise: mode, renderJs, raw content, and images are independent.
Fetch still reads this URL only. It does not follow links. For many rows from a listing page, use Extract. Search structured output stays on structuredOutputSchema.

How to use

If your current SDK release does not accept schema or instructions, send the same JSON body to POST /v1/fetch.

Pricing

Adding a schema adds a flat $0.001 on top of any combination of mode and renderJs. For schema design, missing-field behavior, and when to use Fetch versus Extract or Search, see Fetch best practices.