Fetch page HTML
fetch_htmlFetch the fully rendered HTML of any web page through the ScrapeUnblocker API (https://developers.scrapeunblocker.com), bypassing anti-bot protection (Cloudflare, DataDome, PerimeterX, Akamai, Shape). Use when a normal fetch is blocked (403/429, captcha) or the page needs a real browser. Returns raw HTML. Pass steps to interact with the page (search, click, paginate) before capture - use the list_elements tool first to discover selectors.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute URL to fetch (http/https). | |
| steps | No | Ordered browser actions to run in a real browser after the page loads (wait_for, wait_for_text, wait, click, type [human-like], select, press_key, scroll), then return the resulting HTML. NON-IDEMPOTENT: it runs once and is not retried. A failed step returns a 422 naming the offending step plus the page HTML at that point. Discover selectors with list_elements first. | |
| wait_value | No | The selector/expression paired with wait_method. | |
| wait_method | No | Optional render-wait: 'css' selector or 'js' expression. | |
| proxy_country | No | Optional ISO country code to route through, e.g. 'US'. | |
| sleep_seconds | No | Extra seconds to wait after load. |