Get Started
LLM Extraction
Use aiExtractRules
to define custom rules for extracting structured data from any web page using large language models (LLMs). This is ideal when you don’t want to write manual CSS selectors and need clean, field-level data in JSON format.
Each key you define represents a field you want to extract. You provide a type
and (optionally) a description
to help the model understand what data to look for.
Supported Types
string
– plain text valuenumber
– numeric valueboolean
– true or falselist
– an array of valuesitem
– a nested object (with its own structure underoutput
)
You can also use enum
to restrict a string to a fixed set of values.
Example Request
Example Response
Notes
- Descriptions are optional but highly recommended for accuracy.
list
fields can output flat values ("output": "string"
) or objects ("output": { ... }
).- Fields with no match will return
null
.