Skip to content

About

n8n community node for the Browserless REST APIs

Resources

Stars

4 stars

Watchers

0 watching

Forks

Repository files navigation

n8n-nodes-browserless-api

This is an n8n community node for Browserless — a headless browser API service for web scraping, screenshots, PDF generation, and browser automation.

n8n is a fair-code licensed workflow automation platform.

Installation | Operations | Credentials | Resources

Installation

Follow the installation guide in the n8n community nodes documentation.

Operations

New nodes use version 2 with a Resource selector: Agent, Batch Scrape, Browser, Crawl, Discovery, Page, and Scraper. Select a resource to see its operations. Existing version-1 workflows keep their original flat operation selector and saved parameters. Both versions use the same API execution code; no workflow migration is required. The node version is separate from the npm package version.

  • Smart Scrape — Scrape a page with automatic fallbacks for blocked or JS-heavy sites
  • Screenshot — Capture a screenshot as PNG, JPEG, or WebP
  • PDF — Generate a PDF document from a web page
  • Search — Search the web and return results
  • Map URLs — Discover URLs on a site or within its sitemap
  • Run Agent — Give the browser agent a natural-language task and get its answer back
  • Run Function — Execute custom JavaScript/Puppeteer code server-side
  • Export — Fetch a URL and stream it in its native content type
  • Performance Audit — Run Lighthouse audits for performance, SEO, and accessibility
  • Crawl — Crawl a website and extract content from every page
  • Batch Scrape — Scrape a JSON array of URLs in one asynchronous job
  • Get Agent Run / List Agent Runs / Cancel Agent Run — Retrieve, list, or stop agent runs
  • Get Crawl / List Crawls / Cancel Crawl — Retrieve paginated results, list, or cancel crawls
  • Get Batch Scrape / Cancel Batch Scrape — Retrieve paginated results or cancel a batch
  • Unblock — Return HTML, cookies, screenshots, and an optional browser reconnection endpoint
  • List Scrapers / Run Scraper — Discover available scraper APIs and run one with its parameters

Scraping options

Smart Scrape supports HTML, Markdown, Raw Text, Links, PDF, Screenshot, JSON, Summary, and Change Tracking. Use Additional Fields for content filters, browser actions, extraction schemas, screenshot settings, headers, geo-targeting, proxy selection, caching, profiles, and device emulation. JSON output needs JSON Options with a schema or prompt. Change Tracking also needs Markdown. Screenshot Options require Screenshot output.

Smart Scrape uses its own API options. Legacy Wait For Timeout, Block Ads, and Extra HTTP Headers are translated to supported fields; other legacy Puppeteer options are no longer sent to this endpoint. Use Screenshot, PDF, or Run Function for Puppeteer-specific behavior. Profiles belong in the Profile field, not cookies in legacy navigation options.

Search, Map URLs, Crawl, and Batch Scrape support residential or datacenter proxies. Crawl and Batch Scrape support Raw Text and saved profiles.

Browser connection options

Screenshot, PDF, Run Function, Export, and Performance Audit have a Connection Options collection for launch JSON, request timeout, saved profiles, and proxy routing. Proxy controls include country/state/city, sticky IP, locale matching, presets, and external proxy certificates. Launch Options accepts a JSON object, for example {"headless":false,"args":["--lang=de-DE"]}. These settings are sent as URL query parameters, separate from the request body.

Unblock exposes these settings under Additional Fields, along with Emulation OS, Emulated Device, Device Type. Smart Scrape also exposes OS and device selection. Neither API accepts desktop screen, pixel-ratio, or identity-slot query parameters. Use emulationOs=ios and deviceType=tablet for an iPad.

OS spoofing is supported by Smart Scrape and Unblock, not the ordinary Screenshot, PDF, Function, Export, or Performance routes. For an OS-specific screenshot/PDF, use Smart Scrape with the corresponding output format. Agent Run does not accept OS/device fields. See OS emulation.

Asynchronous jobs

Run Agent waits by default. Enable On Human Needed: Pause to receive a needs_human response immediately when login or MFA needs attention; expose its Live URL to a human, then use Get Agent Run to check progress. Replay records the session, and Formats requests captures from the final page. Multi-turn continue is not offered because the API does not enable it yet.

Crawl and Batch Scrape return the job ID by default. Enable Wait for Result to poll until completion, failure, cancellation, or Max Wait. A local wait timeout returns the latest status with waitTimedOut: true and does not cancel the job. Keep the ID to retrieve or cancel it later.

Get Crawl and Get Batch Scrape return one result page, including next and content URLs. Set Skip to the offset from next to retrieve another page. List operations accept Cursor from the previous nextCursor. Responses remain intact in one n8n item, paired with their input item.

For example: connect a Manual Trigger to Batch Scrape, enter ["https://example.com", "https://example.org"], and enable Wait for Result. Pass the returned data to subsequent nodes; follow next with Get Batch Scrape when more results remain.

Agent runs, crawls, batch jobs, profiles, and scraper catalogs depend on the features enabled on your Browserless instance. See the Agent Run API for handoff and result details.

Agentic browsing (MCP)

Run Agent submits one self-contained task over REST and returns one answer. For an interactive, multi-step browser session driven by an AI Agent node, use the MCP Client Tool instead.

This node wraps Browserless's REST APIs. For an interactive web agent — a persistent browser session that navigates, clicks, types, solves captchas, and completes multi-step tasks — use n8n's built-in MCP Client Tool node pointed at the hosted Browserless MCP server:

  • Endpoint (HTTP Streamable): https://mcp.browserless.io/mcp
  • Auth: Header Authorization: Bearer <your-token>

That surfaces browserless_agent plus all the current MCP tools (smart-scrape, search, crawl, map, function, performance, export, skills) to your AI Agent node, without this REST node having to host the agent loop.

Credentials

You need a Browserless API token to use this node:

  1. Sign up at browserless.io
  2. Get your API token from the dashboard
  3. In n8n, create new Browserless API credentials
  4. Enter your API token and base URL (default: https://production-sfo.browserless.io)

For self-hosted Browserless instances, change the base URL to your instance address.

Resources

Development checks

Run npm ci --ignore-scripts, npm run lint, npm test, npm run build, and npm run scan before releasing. Dependency lifecycle scripts are unnecessary for the build; disabling them also avoids the scanner dependency's pnpm-only install hook. Lint also runs with inline suppressions disabled for production source, matching the community review's stricter handling of lint directives. Regression tests check version-1 parameter loading, version-2 resource forms, and native n8n errors. The local package scan checks the files that npm would publish. Provenance and attested-source checks still require a published release.

About

n8n community node for the Browserless REST APIs

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages