Extract from Web Page
Reads a web page and turns the parts you care about — a title, prices, a list of links, a table — into data later steps can use. Point at the values with CSS selectors (exact, fast and free), or describe them to AI when the page's layout changes often or the values are buried in text.
Parameters
| Name | Shown for | Default | Description |
|---|---|---|---|
Read from (source) | all | A web address | url: fetch the page from its address. html: use HTML an earlier step already has, e.g. an HTTP Request that signs in first. |
Page address (url) | all | — | The page to read, e.g. https://example.com/products. example.com/products works too (https is added). With HTML from an earlier step it's optional, and only used to make relative links absolute. |
HTML (html) | HTML from an earlier step | — | The page's HTML, or an HTML file. |
How to find the values (mode) | all | CSS selectors | selectors or ai. |
Fields (selectors) | CSS selectors | — | One row per value, see below. Up to 50. |
| Provider, AI Provider Connection, Model | AI | — | Which AI model reads the page, with the key from an AI Provider connection. Small models are usually enough. |
Fields to extract (Fields) | AI | — | One row per value: a name, a kind (text, number, yes/no, date, list of text) and what it is — the same form as Extract Data. Up to 50. |
| Extra instructions | AI | — | Anything else the AI should know, e.g. "Prices are in euros; ignore the related products". |
| Max output tokens | AI | Provider default | The longest answer allowed. |
Make links absolute (resolveLinks) | all | On | Turns relative links and image addresses (/about, ../img.png, srcset) into full addresses, using the page's address or its <base href>. |
Largest page (MB) (maxSizeMb) | all | 5 | Pages larger than this are refused, 1–20 MB. |
Wait for the page (seconds) (timeoutSeconds) | A web address | 30 | How long to wait for the page to load, 1–120 seconds. |
Fields with CSS selectors
| Column | Description |
|---|---|
| Name | The key in the output, e.g. price. |
| CSS selector | Which element to read: h1, .price, #main a, table tr td:nth-child(2), a[href$=".pdf"]. In your browser, right-click the element → Inspect → right-click the highlighted line → Copy → Copy selector. |
| Read | Text (what a reader sees, tidied up), Text as Markdown (keeps headings, lists, bold and links), Attribute (one attribute, e.g. href, src, data-id), Inner HTML or Outer HTML. |
| Attribute | For Attribute only: which one. |
| Matches | First match gives one value (or empty when nothing matches); All matches gives a list. |
Reading the text of a form field or an image gives its value or alt text instead.
Ports
| Port | Description |
|---|---|
main (input) | The step(s) it runs after. |
output | The extracted data and details about the page. |
Output
{
"data": {
"title": "Today's fruit",
"names": ["Apple", "Pear"],
"links": ["https://shop.example/catalog/apple", "https://shop.example/catalog/pear"]
},
"missingFields": [],
"url": "https://shop.example/catalog/today",
"statusCode": 200,
"title": "Fruit shop"
}
data— one key per field. Use it as{{ $nodes['Extract from Web Page'].data.names }}.missingFields— fields that found nothing (empty, or an empty list).url— the address that was finally read, after redirects.statusCodeis empty for HTML from an earlier step.title— the page's<title>.warnings— only when something was cut short (more than 10,000 matches for a field, or a long page in AI mode).- In AI mode also
model,usage(tokens and estimated cost) andtruncated, as for the other AI steps.
Example
Collect product names and links from a category page, then save them to a data table:
- Extract from Web Page
- Page address:
https://shop.example/catalog/today - Fields:
name—.product a— Text — All matcheslink—.product a— Attributehref— All matches
- Page address:
- Code or Transform to pair
name[i]withlink[i], then Insert Rows.
With AI instead: set How to find the values to Describe them to AI and add fields such as
cheapestProduct (Text, "The name of the cheapest product") and cheapestPrice (Number).
Notes
- Only public pages. The page is fetched through Blokkio's outbound-traffic guard: addresses on private networks,
localhostor cloud metadata services are refused, on every redirect too. To read a page behind a login, fetch it with HTTP Request (with a connection) and pass itsresponseBodywith Read from → HTML from an earlier step. - What the server sends is what's read. Content that a site builds in the browser with JavaScript isn't there. If a selector finds nothing but you can see the value in your browser, the site probably loads it from an API — call that API with HTTP Request instead.
- In AI mode the page is turned into Markdown (scripts, styles and navigation markup removed, links kept) and up to 100,000 characters are sent to your AI provider; longer pages are cut and a warning says so.
- Files (PDFs, images) aren't web pages: download them with HTTP Request.
- Be considerate: check a site's terms before reading it regularly, and don't schedule more often than you need.