Skip to main content

Requirements

Node.js 20+

Required by the SDK’s engines field in package.json.

API key

Create a free account to get yours, no credit card required.
1

Install the package

Install the SDK with your package manager of choice:
npm install zenrows
The SDK has two dependencies, fastq (concurrency queue) and fetch-retry (retry logic on top of fetch), installed automatically.
2

Verify the install

Run this in a Node.js script or REPL to confirm the package is available:
const { ZenRows } = require("zenrows");

console.log(ZenRows);
Or with ES modules / TypeScript:
import { ZenRows } from "zenrows";

console.log(ZenRows);
If it prints the ZenRows class without raising an error, you’re ready to go.
3

Get your API key

Your API key authenticates every request you send through the SDK. Grab it from the ZenRows Request Builder after signing up.
Keep your API key private. Load it from an environment variable (like process.env.ZENROWS_API_KEY) instead of hardcoding it in scripts you commit to version control.

Next: Quickstart

Make your first request with the SDK.