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.

Document that userId can be used in call (#654)

Lukáš Křivkaf2d6e5c1f7c7
diff --git a/src/actor.js b/src/actor.js
index 4752bba7a..9adff18d4 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -314,7 +314,7 @@ let callMemoryWarningIssued = false;
* and several other API endpoints to obtain the output.
*
* @param {string} actId
- * Either `username/actor-name` or actor ID.
+ * Allowed formats are `username/actor-name`, `userId/actor-name` or actor ID.
* @param {object} [input]
* Input for the actor. If it is an object, it will be stringified to
* JSON and its content type set to `application/json; charset=utf-8`.
@@ -454,7 +454,7 @@ export const call = async (actId, input, options = {}) => {
* and several other API endpoints to obtain the output.
*
* @param {string} taskId
- * Either `username/task-name` or task ID.
+ * Allowed formats are `username/task-name`, `userId/task-name` or task ID.
* @param {object} [input]
* Input overrides for the actor task. If it is an object, it will be stringified to
* JSON and its content type set to `application/json; charset=utf-8`.