Scrapingant Scrape
scrapingant_scrapeScrape a web page and return its raw HTML via ScrapingAnt (headless-browser rendering + rotating proxies). Handles JS-heavy sites and anti-bot pages. Example: scrapingant_scrape({ url: "https://example.com", browser: true, _apiKey: "your-key" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The absolute URL of the page to scrape, e.g. "https://example.com/products" | |
| _apiKey | Yes | Your ScrapingAnt API key. Sign up free at https://app.scrapingant.com/signup | |
| browser | No | Render the page in a headless browser (executes JavaScript). Default true. Set false for a faster raw HTTP fetch of static pages. | |
| js_snippet | No | Custom JavaScript to run in the page after load (plain JS — this pack base64-encodes it for you). Only applies when browser rendering is on. | |
| proxy_type | No | Proxy pool to use: "datacenter" (default, cheaper) or "residential" (harder to block). | |
| proxy_country | No | Two-letter ISO country code for the proxy exit location, e.g. "US", "GB", "DE". | |
| wait_for_selector | No | CSS selector to wait for before returning (e.g. ".price"). Only applies when browser rendering is on. |