alterlab_screenshot
Capture a full-page PNG screenshot of a URL in a real headless browser, even when normal fetches hit 403/429, bot challenges, CAPTCHAs, or empty JavaScript shells.
Instructions
Capture a full-page PNG screenshot of one URL, an image rather than text content. Use when a normal fetch returns 403/429, a bot-protection challenge page, a CAPTCHA, or an empty JavaScript shell. Works on anti-bot-protected sites, rendered in a real headless browser. Use wait_for to wait for an element and wait_until to control load timing. Pass actions (for example dismiss_consent or evaluate) to prepare the page; the screenshot is captured after they run and action_results is returned.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL to take a screenshot of | |
| cookies | No | Inline cookies for a one-off authenticated screenshot | |
| timeout | No | Request timeout in seconds (1-300, API default 90) | |
| location | No | Geo-targeting parameters for localized content scraping. Controls proxy country routing, Accept-Language header, and browser locale. | |
| wait_for | No | CSS selector to wait for before taking screenshot | |
| use_proxy | No | Route through AlterLab's premium proxy (+$0.0002) | |
| session_id | No | UUID of a stored session, to screenshot a logged-in page | |
| wait_until | No | Page load event to wait for before screenshot | networkidle |
| proxy_country | No | ISO country code for proxy geo-targeting. Requires use_proxy=true |