Extract structured data
extractPull named fields from a web page into JSON using CSS selectors, or convert HTML tables into row-object arrays, so you get targeted data instead of full-page prose.
Instructions
Extract specific values from a web page as JSON instead of markdown prose. Provide CSS selectors to pull named fields (text or an attribute, first match or all), and/or set tables:true to convert every HTML table to arrays of row objects. Use this when you need particular data (prices, lists, specs, tabular data) rather than the whole page. Honors per-domain auth and proxies.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The URL to extract from | |
| tables | No | Extract all HTML tables as arrays of row objects (default true when no selectors are given) | |
| selectors | No | Map of field name to CSS selector, e.g. {"title":"h1","price":".price","links":{"selector":"a.item","attr":"href","all":true}} | |
| timeoutMs | No | Overall retrieval deadline in milliseconds, including downloads (default 25000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | ||
| fields | No | ||
| tables | No |