Skip to main content
This guide shows how to use the extract parameter on POST /v1/read to pull structured data from web pages.

Product data

Extract product information from an e-commerce page:

Table data

Extract structured data from HTML tables (e.g., a pricing page):

Using field descriptions

Add description to schema fields to guide the LLM on what to extract:

Prompt-only mode

When you do not need a fixed schema, use a natural language prompt:
The response will be freeform JSON based on what the LLM finds on the page.

Combining prompt and schema

Use both together — the prompt provides context while the schema enforces structure:

Handling missing fields

If a field in your schema does not exist on the page, it comes back as null. This is intentional — Reader will never hallucinate values:

CLI usage

Error handling

Extract never breaks the scrape response. If the LLM fails, you still get the markdown: