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.

Improved Apify.addWebhook() docs

Jan Curn986f4d92a3c2
diff --git a/src/actor.js b/src/actor.js
index 44b3efc5c..a0f1d2c9b 100644
--- a/src/actor.js
+++ b/src/actor.js
@@ -735,9 +735,8 @@ export const getApifyProxyUrl = (options = {}) => {
* It uses JSON syntax, extended with a double curly braces syntax for injecting variables `{{variable}}`.
* Those variables are resolved at the time of the webhook's dispatch, and a list of available variables with their descriptions
* is available in the [Apify webhook documentation](https://docs.apify.com/webhooks).
- *
- * When omitted, the default payload template will be used.
- * [See the docs for the default payload template](https://docs.apify.com/webhooks).
+ * If `payloadTemplate` is omitted, the default payload template is used
+ * ([view docs](https://docs.apify.com/webhooks/actions#payload-template)).
* @param {string} [options.idempotencyKey]
* Idempotency key enables you to ensure that a webhook will not be added multiple times in case of
* an actor restart or other situation that would cause the `addWebhook()` function to be called again.