WebScraping.AI icon

WebScraping.AI

AI-powered web scraping with JavaScript rendering and proxies

Get Text

AI-generated

Summary

Fetches visible text from the specified webpage through the WebScraping.AI API. Choose a text format and optionally include page links; the request can also use the configured browser, proxy, headers, and timing options.

Inputs

  • URL (required) — Target webpage URL.
  • Additional Options — Optional country, custom JavaScript, custom proxy, device emulation, JavaScript rendering, 404 or redirect error handling, request headers, JavaScript and page timeouts, proxy type, and CSS selector to wait for. Headers must be valid JSON.
  • Text Format — Response format: Plain (default), JSON, or XML.
  • Return Links — Whether to include links from the page body text; supported only with JSON text format.

Output shape

One n8n item per input item, with the response content in its JSON field.

JSON content types are parsed and returned as the item's JSON; if parsing fails, the response is returned as {"raw": ...}. Text, HTML, and XML responses are returned as {"data": "..."}.

Examples

Example 1: Fetch plain text from a webpage using default settings.

Set URL; leave Text Format as Plain and Return Links off.

Example 2: Fetch text with page links.

Set Text Format to JSON and enable Return Links.

Links

Discussion