Apify icon

Apify

Access Apify tools for web scraping, data extraction, and automation.

Actor → Get Last Run

AI-generated

Overview

This node interacts with the Apify platform to retrieve the last run of a specified Actor. It is useful for monitoring the most recent execution status and results of an Actor, which is a web scraping or automation task on Apify. For example, users can fetch the last run to check if the Actor succeeded, failed, or is still running, enabling automated workflows to respond accordingly.

Use Case Examples

  1. A user wants to check the last run status of a web scraping Actor to trigger notifications if it failed.
  2. An automation workflow retrieves the last run data of an Actor to process the output data further.

Properties

Name Meaning
Actor The ID or a tilde-separated username and Actor name to identify which Actor's last run to retrieve. It supports selection from a list, by URL, or by direct ID input.
Status Filter to return only runs with the specified status, such as SUCCEEDED, FAILED, RUNNING, etc.
Authentication Choose the authentication method to use for accessing the Apify API, either API Key or OAuth2.

Output

JSON

  • lastRun
    • id - The unique identifier of the last run of the Actor.
    • status - The status of the last run, e.g., SUCCEEDED, FAILED.
    • startedAt - Timestamp when the last run started.
    • finishedAt - Timestamp when the last run finished.
    • details - Additional details about the last run, such as error messages or metadata.

Dependencies

  • Requires authentication credentials for Apify API access, either an API key or OAuth2 token.

Troubleshooting

  • Ensure the Actor ID or URL is valid and correctly formatted; invalid input will cause errors.
  • Check that the authentication credentials are correctly configured and have sufficient permissions.
  • If no runs are found with the specified status, the output may be empty; try adjusting the status filter.
  • Network or API rate limit issues may cause request failures; verify connectivity and API usage limits.

Links

Discussion