Getting Started
Quick Start
Get up and running with Waterfall-Fetch in minutes
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get up and running with Waterfall-Fetch in minutes
npm install waterfall-fetch
yarn add waterfall-fetch
pnpm add waterfall-fetch
import getHtml from "waterfall-fetch";
const url = "https://example.com";
// Basic usage
const result = await getHtml(url);
// Recommended usage with destructuring
const { html, error, success } = await getHtml(url);
if (success) {
console.log(html);
} else {
console.error(error);
}
HEADLESS // Optional
NODE_ENV // Optional
BROWSERLESS_API_KEY // Optional
BROWSERBASE_API_KEY // Optional //unsupported (comming soon)
BROWSER_SERVICE // Optional
