Fetch a web page
web_fetchRender one public web page in a fresh browser and return it as Markdown (default), HTML, plain text or a full-page PNG screenshot encoded as base64, with url, title, content and the status_code the site returned. Narrow the content with target_selector or remove_selector. Alpha. Requires an API key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Public http:// or https:// URL on the standard port, without credentials | |
| locale | No | Browser locale; default en-US | |
| user_agent | No | User-Agent to send | |
| wait_until | No | Navigation event to wait for; default domcontentloaded | |
| with_links | No | How Markdown writes links; default inlined | |
| with_iframe | No | Include direct child frames before extraction; default false | |
| with_images | No | How Markdown writes images; default all | |
| page_timeout | No | Seconds for browser operations; default 30 | |
| respond_with | No | Output format; default markdown. screenshot returns a base64 PNG | |
| remove_selector | No | CSS selector removed before extraction, e.g. "nav, footer" | |
| target_selector | No | CSS selector to extract; falls back to the full page when nothing matches | |
| with_shadow_dom | No | Expand open shadow roots before extraction; default false | |
| wait_for_selector | No | CSS selector to wait for after navigation |