> ## Documentation Index
> Fetch the complete documentation index at: https://docs.noxus.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Read Webpage

> Read the text of a web page, the pages it links to on the same site, and the links on them

The **Read Webpage** node reads a web page and gives its text to the next steps of a flow. It can also follow the links on the page, up to two levels deep, and read the linked pages of the same site.

Use it to pull an article, a product page or a price list into a flow, or to collect the pages of a small site for an AI step to read.

## Settings

| Setting | What it does |
| :- | :- |
| **URL** | The address of the page to read, such as `https://example.com`. When it has no `http://` or `https://`, the node adds `http://`. Required. |
| **Depth** | How many levels of links to follow on the same site, from 0 to 2. At 0 the node reads only this page. At 1 it also reads the pages this page links to, and at 2 the pages those pages link to. A read stops at 250 pages. |

Under **Advanced options**:

| Setting | What it does |
| :- | :- |
| **Disable proxy** | A switch. Off (the default), the node reads the pages through the proxy. On, it reads them directly. It cannot come from a variable. |
| **Scroll the page** | Scrolls to the end of each page before it is read, to load content that appears on scroll. A page can then take up to 40 seconds. |
| **JavaScript instructions** | A JSON list of ScrapingBee instructions that run on each page before it is read, such as `[{"click": "#load-more"}, {"wait": 1000}]`. |
| **Wait after page load (seconds)** | Seconds to wait after each page loads before it is read, from 0 to 15. |
| **Proxy country** | The country the proxy reads the pages from. **None** lets the proxy choose. |
| **Whitelisted private domains** | Domains that may resolve to a private address, with the port when there is one, such as `intranet.local:8080`. They apply only on a self-hosted deployment. |
| **Parse HTML to Markdown** | On (the default), Pages holds each page's text as Markdown. Off, it holds the page's raw HTML, with image addresses that start with `//` given `https:`. |

Scroll the page, JavaScript instructions, Wait after page load and Proxy country need the proxy, so the editor hides them while **Disable proxy** is on. Whitelisted private domains is for a direct read, so it shows only while Disable proxy is on. With Disable proxy on, the node refuses a page whose address is private unless its domain is whitelisted, reads at most 20 MB of a page and gives up on a page after 15 seconds.

## Outputs

| Output | What it holds |
| :- | :- |
| **Pages** | The text of each page read, with nothing added before it. |
| **Page URLs** | The address of each page read, in the same order as Pages. |
| **Links Found** | A list of every web link on the pages read, each link once. |

At Depth 0, Pages and Page URLs hold one value each. At Depth 1 or 2 they are lists with one item per page, so a step bound to them runs once per page. Links Found is always a list.

When a linked page cannot be read, the node leaves it out of Pages and Page URLs and names it in a warning. The other pages still come through.

## When a read fails

The node checks its settings before it reads anything:

* A Depth outside 0 to 2, a Wait outside 0 to 15, JavaScript instructions that are not a JSON list, or a Proxy country that is not in the list shows an error on the field. Over the API or MCP, validation reports it.
* When a setting is bound to a variable, the same check runs when the step starts, before any request.
* An empty URL, or text that is not a web address, fails the step with a message that says so.

When the first page cannot be read, the step fails with the reason:

| Message | Cause |
| :- | :- |
| Reading ... failed with HTTP 404 | The page, or the proxy, refused the request (HTTP 4xx). The node does not try again. |
| The proxy could not read ... | The proxy was busy or could not open the page, after three tries. The address may not exist. |
| The host ... does not resolve | With Disable proxy on, the host name does not exist. |
| The certificate of ... is not trusted | With Disable proxy on, the site's HTTPS certificate is self-signed or not from a trusted authority. The node does not try again. |
| Could not connect to ... | With Disable proxy on, nothing answered at the address and port, after three tries. |
| ... leads to a private address, so it is blocked | With Disable proxy on, the address, or one it redirects to, is private and not whitelisted. |
| ... is larger than 20 MB | With Disable proxy on, the page is too large to read. |
| ... is a PDF file | The URL ends in `.pdf`. Use Make Download Request and File to Text to read a PDF. |
| Reading ... timed out | The page did not load in time, after three tries. |

Set the step's **On failure** option to continue the flow when a page cannot be read.

## Earlier version

A flow saved before this version keeps the earlier Read Webpage node and its behaviour until you upgrade it. The earlier node put the line "The content of the website ... is:" before each page, gave Links Found as one text joined by commas, and had no Page URLs. Upgrade the node from the editor to get the new outputs. The upgrade lists each change and asks you to confirm, and it moves a Depth above 2 to 2 and a Wait above 15 to 15. A node whose Disable proxy comes from a variable does not upgrade until you remove the variable and turn the switch on or off.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.