Scrape
AI-generatedSummary
Scrape the HTML content of a specified webpage using the ScrapingAnt API, optionally rendering it with headless Chrome and applying custom options such as proxy settings, JavaScript execution, and timeout.
Inputs
- URL (required) — The URL of the webpage to scrape.
- Browser Rendering — Enable or disable headless Chrome rendering (enabled by default; costs 10 credits when enabled, 1 when disabled).
- Additional Options — Optional settings including a JavaScript snippet to execute on the page (automatically Base64-encoded), proxy country code, proxy type (datacenter or residential), whether to return raw page source instead of rendered HTML, and the request timeout in seconds (5-60).
Output shape
a list of items, each with a JSON object containing the property 'html' holding the scraped page content as a string
The output 'html' field contains either the rendered HTML or raw page source depending on the 'Return Page Source' option. Costs vary based on rendering and proxy options used. Errors are returned per item if 'Continue on Fail' is enabled.
Examples
Example 1: Scrape a webpage with default headless Chrome rendering
Set URL to the target, leave Browser Rendering enabled, no additional options.