Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.
TypeScript apifyautomationcrawlercrawlingheadlessheadless-chromejavascriptnodejsnpmplaywrightpuppeteerscraperscrapingtypescriptweb-crawlerweb-crawlingweb-scraping
docs: pin 3.18 API links in content carried over from master
Martin Adámekaf00b2a524f0
diff --git a/website/blog/2026/08-04/index.md b/website/blog/2026/08-04/index.mdindex 29449d221..532ff85c8 100644--- a/website/blog/2026/08-04/index.md+++ b/website/blog/2026/08-04/index.md@@ -61,7 +61,7 @@ router.addHandler('PRODUCT', async ({ request }) => {});```-When a request is handled, its `userData` is validated against the schema registered for its label and replaced with the parsed (and coerced) value before the handler runs. The same schemas also validate `userData` when requests are added through the crawler (via `crawler.addRequests()`, `crawler.run()`, and the `addRequests`/`enqueueLinks` context helpers), so a bad shape fails fast when you insert the request, not deep inside a handler. A mismatch throws the new [`RequestValidationError`](https://crawlee.dev/js/api/core/class/RequestValidationError), which is non-retryable, since re-running the request would fail identically.+When a request is handled, its `userData` is validated against the schema registered for its label and replaced with the parsed (and coerced) value before the handler runs. The same schemas also validate `userData` when requests are added through the crawler (via `crawler.addRequests()`, `crawler.run()`, and the `addRequests`/`enqueueLinks` context helpers), so a bad shape fails fast when you insert the request, not deep inside a handler. A mismatch throws the new [`RequestValidationError`](https://crawlee.dev/js/api/3.18/core/class/RequestValidationError), which is non-retryable, since re-running the request would fail identically.To validate requests handled by the default route, register a schema under the exported `defaultRoute` key. The default handler's `request.userData` is then typed from that schema too:@@ -99,11 +99,11 @@ We didn't write a blog post for v3.17 (released in June), so here's a quick reca### Dynamic memory snapshots-The [`Snapshotter`](https://crawlee.dev/js/api/core/class/Snapshotter) previously measured the available memory once at startup and stuck with that number for the whole crawl. In environments where the memory limit can change while the crawler runs, for example a container that gets resized, the autoscaling either under-used the available memory or pushed past it. When no fixed `memoryMbytes` is configured, the snapshotter now follows the total memory reported by the event manager and scales with it.+The [`Snapshotter`](https://crawlee.dev/js/api/3.18/core/class/Snapshotter) previously measured the available memory once at startup and stuck with that number for the whole crawl. In environments where the memory limit can change while the crawler runs, for example a container that gets resized, the autoscaling either under-used the available memory or pushed past it. When no fixed `memoryMbytes` is configured, the snapshotter now follows the total memory reported by the event manager and scales with it.### Custom load signals for autoscaling-The autoscaling internals were refactored around a new `LoadSignal` interface. `SystemStatus` aggregates a set of load signals to decide whether the system is overloaded, and the built-in ones (memory, CPU, event loop, and API client rate limits) are now separate composable classes. You can implement the interface yourself and pass extra signals to the [`AutoscaledPool`](https://crawlee.dev/js/api/core/class/AutoscaledPool) via `loadSignals`, so the crawler can react to overload conditions that Crawlee doesn't know about, such as navigation timeouts or proxy health.+The autoscaling internals were refactored around a new `LoadSignal` interface. `SystemStatus` aggregates a set of load signals to decide whether the system is overloaded, and the built-in ones (memory, CPU, event loop, and API client rate limits) are now separate composable classes. You can implement the interface yourself and pass extra signals to the [`AutoscaledPool`](https://crawlee.dev/js/api/3.18/core/class/AutoscaledPool) via `loadSignals`, so the crawler can react to overload conditions that Crawlee doesn't know about, such as navigation timeouts or proxy health.---diff --git a/website/versioned_docs/version-3.18/upgrading/upgrading_v3.md b/website/versioned_docs/version-3.18/upgrading/upgrading_v3.mdindex 39b6091c9..e078326e9 100644--- a/website/versioned_docs/version-3.18/upgrading/upgrading_v3.md+++ b/website/versioned_docs/version-3.18/upgrading/upgrading_v3.md@@ -31,7 +31,7 @@ The [`crawlee`](https://www.npmjs.com/package/crawlee) package consists of sever- [`@crawlee/memory-storage`](https://crawlee.dev/js/api/memory-storage): [`@apify/storage-local`](https://npmjs.com/package/@apify/storage-local) alternative- [`@crawlee/browser-pool`](https://crawlee.dev/js/api/browser-pool): previously [`browser-pool`](https://npmjs.com/package/browser-pool) package- [`@crawlee/utils`](https://crawlee.dev/js/api/utils): utility methods-- [`@crawlee/types`](https://crawlee.dev/js/api/types): holds TS interfaces mainly about the [`StorageClient`](https://crawlee.dev/js/api/core/interface/StorageClient)+- [`@crawlee/types`](https://crawlee.dev/js/api/types): holds TS interfaces mainly about the [`StorageClient`](https://crawlee.dev/js/api/3.18/core/interface/StorageClient)### Installing Crawlee