Docs/API reference

Node.js / TypeScript API

Browse every package export and its declared methods, fields, parameters, returns, source links and known limitations.

Download .md
Developers3 min read5 sections
Source reference · Match your SDK version. Availability and known issues
In this guide

What this reference covers

34 package exports; 34 documented symbols including reachable types and helpers; 193 explicitly declared members. Inherited standard-library members are not included in this count.

These are source inventory counts, not a percentage of working features. Classes with broken or limited wrapper paths are marked in their member entries.

Classes and result objects

SymbolMembersPurpose
Page13Fetch one page and inspect its parsed HTML before defining a dataset schema.
Element4Read one selected DOM element and its attributes.
ElementCollection8Read, iterate and select from multiple DOM matches.
Session23Own shared request defaults, connection pools, per-host pacing and retry settings.
CrawlingoError9Base class for failures reported by the Crawlingo engine.
FetchError1
ParseError1
SelectorError1
AutoMatchFailed1
TimeoutError1
RateLimitError1
ChangeDetectionError1
ExportError1
DnsError1
FingerprintStoreError1
Dataset11Extract named fields from one page, with optional validation and small-result exports.
DatasetResult5Read and export a single extracted field map.
DatasetJob3Process a URL file into bounded, validated, resumable dataset shards.
Crawl13Discover linked pages and extract a small in-memory result set.
Watch5Poll selected fields and deliver detected changes to application callbacks.
Sitemap11Discover URLs from a sitemap or use them to seed a bounded crawl.
Downloader5Save a response to a local file or receive its bytes in memory.
PaginationConfig4Choose how a crawler discovers the next page.
DatasetSchema4Validate required fields and canonicalize string values in small Dataset results.
FieldConstraint4Describe a field name, its type and whether it is required.

Interface declarations

SymbolMembersPurpose
CrawlingoErrorOptions7Optional Node error context, including inherited ErrorOptions.cause. Native context is optional.
JobConfig14Shared input, output, schema and resource-limit configuration. Unknown keys are rejected.
JobField9One extraction rule and its validation requirements. Exported values remain strings.
JobReport11Job progress and quality counters. Completion is distinct from successful extraction.
WatchChangeEvent5Node callback event with camelCase names and change types such as ContentChange and PriceChange.
SitemapEntry4Sitemap URL metadata. lastmod and priority are source strings, not validated dates or numbers.
DownloadResult6Response metadata and bytes actually retained/written. Check status and resumed explicitly.

Enum declarations

SymbolMembersPurpose
FieldType4Select string, integer, float or boolean validation.

Function declarations

SymbolMembersPurpose
sitemapUrlForOrigin1Return the canonical `/sitemap.xml` URL for an origin.