Actor picture

Executions Chain

drobnikj/executions-chain

This act runs crawlers one by one. Basic Input: { "executions": [ { "crawlerId": "gsYWKFafs3qokhBv3v", "settings": { "customData": "Run one", "maxCrawledPages": 1 } }, { "crawlerId": "gsYWKFdaf3qokhBv3v", "settings": { "customData": "Run one", "maxCrawledPages": 1 } } ] } NOTE: Act uses finishwebhook in crawlers. Finishwebhook for crawler runs will be overriden.

To run the actor, you'll need an Apify account. Simply create a new task for the actor by clicking the button below, modify the actor input configuration, click Run and get your results.

API

To run the actor from your code, send a HTTP POST request to the following API endpoint:

https://api.apify.com/v2/acts/drobnikj~executions-chain/runs?token=<YOUR_API_TOKEN>

The POST payload including its Content-Type header is passed as INPUT to the actor (usually application/json). The actor is started with the default options; you can override them using various URL query parameters.

Example
curl https://api.apify.com/v2/acts/drobnikj~executions-chain/runs?token=<YOUR_API_TOKEN> \
-d '{
  "chainId": "TEST",
  "notifyTo": "jakub.drobnik@apify.com",
  "executions": [
    {
      "crawlerId": "gsYWKFafdsa3qokhBv3v",
      "settings": {
        "customData": "Run one",
        "maxCrawledPages": 1
      }
    },
    {
      "crawlerId": "gsYWKasdFaf3qokhBv3v",
      "settings": {
        "customData": "Run one",
        "maxCrawledPages": 1
      }
    }
  ]
}' \
-H 'Content-Type: application/json' \
-X POST

To use the API, you'll need to replace <YOUR_API_TOKEN> with the API token of your Apify account (view here).

For more information, view the list of actor's API endpoints or the full API reference.