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.

Documenting call()

Marek Trunkatfa4ae2184544
diff --git a/README.md b/README.md
index db9de5fb7..8f6159f93 100644
--- a/README.md
+++ b/README.md
@@ -287,6 +287,16 @@ The default settings of the instance can be overridden by calling `Apify.client.
that is used by Actor runtime to notify your process about various events.
This will be used in the future.
+`Apify.call` function can be used to quickly execute other act and get it's output. Example use:
+
+```javascript
+const data = await Apify.call('john23/my-favourite-act', {
+ timeoutSecs: 300,
+ body: 'SOME_INPUT_DATA',
+ contentType: 'text/plain',
+})
+```
+
### Internal web server