-
Notifications
You must be signed in to change notification settings - Fork 0
API References
Sensei Jurado edited this page Aug 6, 2026
·
1 revision
Main entry point for interacting with Apify services.
constructor(token: string)
Initializes the Apify client wrapper. Throws an error if token is missing.
Executes an Actor synchronously and resolves with its generated dataset items.
Parameters:
- actorId (string, required): ID or full name of the target Actor (e.g., 'apify/web-scraper').
- input (Record<string, unknown>, required): Input options passed directly to the Actor.
- memoryMbytes (number, optional): Memory allocation in MB. Default: 1024.
- timeoutSecs (number, optional): Maximum execution duration in seconds.
Returns:
- Promise<T[]>: Array of typed items from the default dataset.
Fetches the lifecycle state of a specific run (e.g., RUNNING, SUCCEEDED, FAILED).
Parameters:
- runId (string, required): The unique identifier of the run.
Returns:
- Promise: The current status string.