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.

[docs] Updated Dataset.getData() JSDoc to include the `count` property in the return value

Matej 'Yin' Gagyi53a8f1f153d8
diff --git a/docs/api/Dataset.md b/docs/api/Dataset.md
index c2449d8d5..a9c9f47d9 100644
--- a/docs/api/Dataset.md
+++ b/docs/api/Dataset.md
@@ -97,8 +97,9 @@ Returns items in the dataset based on the provided parameters. The returned obje
{
items, // Array|String|Buffer based on chosen format parameter.
total, // Number
- limit, // Number
offset, // Number
+ count, // Number
+ limit, // Number
}
```
diff --git a/src/dataset.js b/src/dataset.js
index f00997c0a..015c80ff8 100644
--- a/src/dataset.js
+++ b/src/dataset.js
@@ -208,8 +208,9 @@ export class Dataset {
* {
* items, // Array|String|Buffer based on chosen format parameter.
* total, // Number
- * limit, // Number
* offset, // Number
+ * count, // Number
+ * limit, // Number
* }
* ```
*