Actions11
- Agent Actions
- Fetch Actions
- Search Actions
Fetch → Fetch a Webpage
AI-generatedSummary
Fetch a webpage without starting a browser session, returning content in Raw, Markdown, or JSON format via Browserbase.
Inputs
- fetchUrl (required) — The URL to fetch
- format — How content is returned. Raw is the response body. Markdown and JSON are converted first.
- schema — JSON Schema for the object returned in content. Required when Format is JSON.
- fetchOptions — Fetch options including proxy configuration, SSL verification, and redirect settings.
Output shape
a single n8n item containing id, url, format, statusCode, headers, content, contentType, and encoding
format depends on the Format parameter (raw, markdown, or json). When format is json, content is structured according to the JSON Schema. headers and statusCode reflect the fetch response. content may be empty or null for certain pages.
Examples
Example 1: Fetch a page as raw HTML
Set URL to the target page and Format to Raw; no other parameters are required.
Example 2: Fetch and convert to Markdown
Set URL to the target page and Format to Markdown; returned content is Markdown-formatted text.
Example 3: Fetch and structure as JSON
Set URL to the target page, Format to JSON, and provide a JSON Schema (e.g., title and summary); content is extracted and validated against the schema.