Getting started
Usage
Scraping
Scrape a single URL with various options:Batch Processing
Process multiple URLs in a single batch:Crawling
Crawl an entire website:Site Mapping
Generate a sitemap of URLs from a website:Content Retrieval
Retrieve previously scraped content:Advanced Options
Custom Actions
Perform browser actions before scraping:Geographic Location
Scrape from different countries using predefined country codes or any valid country code string:LLM Extraction
Extract structured data using LLMs:Client Configuration
Feature highlights
- Async-first client with full TypeScript support.
- Type-safe inputs using TypeScript enums and interfaces (Formats, Countries, Actions, etc.).
- Rich resource namespaces with both shorthand calls (
client.scrapes.create()) and explicit methods (client.scrapes.get()). - Shared transport layer with retries, timeouts, and JSON decoding.
- Comprehensive error hierarchy