Scraper API
scraperAPIRetrieve a known web page as HTML, Markdown, or a screenshot through MrScraper, with proxy, browser rendering, retry, and timeout controls.
Instructions
Retrieves a known page through MrScraper's Scraper API as HTML, Markdown, a screenshot, or a combination. Matches the Python SDK's scraper_api options. Omit browser_rendering for automatic browser fallback; screenshot=true always enables it. super enables real-device routing independently. home_page maps to warmStart. Proxy, cookie, target-header, retry, and timeout options control page loading. Returns status_code, data, and sanitized headers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Required absolute HTTP or HTTPS page URL. | |
| html | No | Request HTML page content. | |
| proxy | No | Custom proxy in username:password@host:port form. | |
| super | No | Use real-device routing independently of browser rendering. | |
| stream | No | Ask the API to stream; the MCP server buffers the response into the normal envelope. | |
| headers | No | Target page request headers as an object or JSON string. | |
| timeout | No | Page timeout in seconds (1–300); transport allows 30 additional seconds. | |
| geo_code | No | Proxy geolocation country code, such as US, ID, or SG. | US |
| markdown | No | Request Markdown page content. | |
| home_page | No | Visit the site's root before the target URL; sent as warmStart=true. | |
| token_cap | No | Optional nonnegative retry-token budget. | |
| use_proxy | No | Allow the service to use a configured proxy. | |
| cookie_jar | No | Cookie configuration string, such as domain=example.com&country=us&max_used=100&max_age=50m. | |
| screenshot | No | Capture a screenshot; always enables browser rendering. | |
| max_retries | No | Maximum Web Unblocker retries; 0 disables retries. | |
| bypass_proxy | No | Enable the API's proxy-bypass/resource-blocking behavior. | |
| proxy_country | No | Compatibility country option sent as proxyCountry. | |
| block_resources | No | Block images, CSS, and fonts during loading. | |
| browser_rendering | No | True forces browser rendering, false disables it; omit or use null for automatic fallback. | |
| wait_for_selector | No | CSS selector to wait for before returning page content. | |
| discard_token_secret | No | Optional value for the x-discard-token-secret upstream header. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Response body as parsed JSON or text. | |
| error | No | Request failure message, if any. | |
| headers | Yes | Response headers with credentials and cookies removed. | |
| status_code | Yes | Upstream HTTP status, or null for a network failure. |