Skip to content

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.

Updated docs

Jan Curn0912bf4b376c
diff --git a/src/actor.js b/src/actor.js
index 95a299aa7..ad47ce01e 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -679,7 +679,19 @@ export const call = (actId, input, opts = {}, callback) => {
/**
* @memberof module:Apify
* @function
- * @description Returns memory statistics of the container.
+ * @description Returns memory statistics of the container, which is an object with the following properties:
+ * ```javascript
+ * {
+ * // Total memory available to the act
+ * totalBytes: Number,
+ *
+ * // Amount of free memory
+ * freeBytes: Number,
+ *
+ * // Amount of memory used (= totalBytes - freeBytes)
+ * usedBytes: Number,
+ * }
+ * ```
*
* @returns {Promise} Returns a promise unless `callback` was supplied.
*/