Node.js SDK v2.0.0
Official Node.js/TypeScript SDK for the AlterLab Web Scraping API.
Installation
npm install alterlabFeatures
- Zero dependencies (uses native fetch)
- Full TypeScript support with complete type definitions
- All scraping modes:
scrape,scrapeHtml,scrapeJs,scrapePdf,scrapeOcr - Structured extraction with JSON Schema, prompts, and pre-built profiles
- Cost controls and BYOP (Bring Your Own Proxy) support
- Async job support for long-running scrapes
- ESM and CommonJS compatible
Requirements
- Node.js 18+ (uses native fetch)