web_scrape
Processes a page and returns every output you ask for at once: markdown, html, links, screenshot, PDF, accessibility tree, elements by selector, AI-structured data, and controls (what can be clicked). One call, and a partial failure does not void the rest. From $0.001 per output. A url pointing at a PDF, Word, Excel or CSV file is converted to markdown instead, with no browser, for $0.002.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Page to process. | |
| html | No | Raw HTML instead of `url`. | |
| json | No | For the `json` format: `prompt` and/or `schema`. | |
| wait | No | When to consider the page loaded: `until`, `selector`, `timeout`. | |
| maxAge | No | Accept an answer up to this many milliseconds old. A cache hit costs $0.0002 instead of the format price. Leave it out to force a fresh render. | |
| formats | No | Outputs you want in the same response. `controls` is the map of what can be clicked; `elements` needs `selectors`; `json` needs `json.prompt`. | |
| selectors | No | CSS selectors for `elements`. |