Extract structured data from a page
domscout_extract_dataExtract structured data from any public webpage by defining CSS selectors for named fields, returning typed JSON with per-field status to pinpoint invalid selectors or missing elements.
Instructions
Costs 2 credits. Pulls named fields off a page using CSS selectors and returns typed JSON. Each field reports found/missing/invalid_selector separately, so a partial result tells you which selector was wrong rather than failing the whole call. Requires Pro or above.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The page to load. Must be http(s) and publicly reachable. Credentials in the URL (https://user:pass@host) are rejected; these tools capture as an anonymous visitor, so use the REST API directly if the page needs authentication. | |
| delay | No | Extra milliseconds to wait after load. | |
| fields | Yes | Field name → { selector, type, attribute?, all? }. type is one of text, number, boolean, attribute, html, url, list. Set all:true to collect every match instead of the first. At most 100 fields. | |
| waitForSelector | No | Wait for this CSS selector to appear before capturing. |