Scrapingbee Scrape
scrapingbee_scrapeFetch and render any web page through ScrapingBee (headless browser + proxy rotation), returning the resulting HTML. Handles JS-heavy sites, geolocation, and ad-blocking. Example: scrapingbee_scrape({ url: "https://example.com", render_js: true, _apiKey: "your-key" })
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full target URL including protocol, e.g. "https://example.com/page" | |
| _apiKey | Yes | Your ScrapingBee API key (get one free at scrapingbee.com). | |
| wait_for | No | CSS/XPath selector to wait for before capturing the page, e.g. "#content" or ".results". | |
| block_ads | No | Block advertisements while rendering (default false). | |
| render_js | No | Execute JavaScript via a headless browser (default true). Set false for faster/cheaper static fetches. | |
| country_code | No | ISO 3166-1 alpha-2 country code for proxy geolocation, e.g. "us", "de", "br". | |
| premium_proxy | No | Route through residential premium proxies (higher credit cost). Use for hard-to-scrape or geo-blocked sites. | |
| stealth_proxy | No | Use the stealth proxy pool for the most heavily protected sites (highest credit cost). |