Actions11
- Actor Actions
- Actor Task Actions
- Actor Run Actions
- Dataset Actions
- Key-Value Store Actions
Actor Task → Run Task and Get Dataset
AI-generatedOverview
This node runs a specified Apify Actor Task and retrieves the resulting dataset. It is useful for automating web scraping, data extraction, or any task configured in Apify that produces a dataset. For example, you can trigger a web scraping task and immediately get the scraped data for further processing in your workflow.
Use Case Examples
- Run a web scraping Actor Task by specifying its ID or URL, optionally customize the input JSON body, set memory and timeout limits, and retrieve the output dataset for analysis or storage.
- Trigger an automation task on Apify and fetch the results dataset to use in subsequent workflow steps.
Properties
| Name | Meaning |
|---|---|
| Actor Task | The ID or tilde-separated username and task name of the Apify Actor Task to run. It can be selected from a list, provided as a URL, or entered as an ID string. |
| Use Custom Body | Whether to use a custom JSON input body for the task run. |
| Input (JSON) | Custom JSON input to send to the Actor Task if 'Use Custom Body' is enabled. |
| Timeout | Optional timeout for the task run in seconds. If not set, the task's default timeout is used. |
| Memory | Memory limit for the task run in megabytes. Options range from 128 MB to 32 GB, defaulting to 1024 MB. |
| Build | Specifies the Actor build to run, either by build tag or build number. Defaults to the build specified in the task settings, typically 'latest'. |
| Authentication | Choose the authentication method to use for the Apify API: either API Key or OAuth2. |
Output
JSON
runId- The unique identifier of the task run.dataset- The dataset object containing the results produced by the task run.
Dependencies
- Apify API key or OAuth2 credentials for authentication
Troubleshooting
- Ensure the Actor Task ID or URL is valid and accessible with the provided credentials.
- If using a custom input body, verify the JSON format is correct to avoid errors.
- Timeout errors may occur if the task takes longer than the specified timeout; increase the timeout or check the task's performance.
- Memory limit errors can happen if the task requires more memory than allocated; increase the memory setting accordingly.
Links
- Apify Actor Tasks Documentation - Official documentation on managing and running Actor Tasks on Apify.
- Apify API Reference for Running Actor Tasks - API details for running Actor Tasks and retrieving datasets.