Actions9
Get Multiple Selections
AI-generatedSummary
Fetches HTML for multiple page areas by sending a target URL and a JSON array of CSS selectors to WebScraping.AI. Configure optional scraping settings such as proxy, country, JavaScript rendering, headers, and timeouts in Additional Options.
Inputs
- URL (required) — Target webpage URL to scrape.
- CSS Selectors (required) — JSON array of CSS selectors, such as ["h1", ".price"]. Invalid JSON or a value that is not an array causes an error.
- Additional Options — Optional settings for proxy country and type, custom proxy, device emulation, JavaScript execution and timeout, request timeout, headers, error handling for 404s or redirects, and a selector to wait for. These are sent as API query parameters; Headers must be valid JSON.
Output shape
A list of n8n items, one per input item, each containing the API response in json.
JSON responses are returned as parsed JSON; text, HTML, or XML responses are wrapped as {"data":"..."}. Other response types are also wrapped in a data field. If JSON parsing fails, the body is returned as {"raw":"..."}. With Continue On Fail enabled, request errors are returned as an error field.