Portal Community
ApiToken is required on every operation. All operations require the ApiToken property set to your Apify API token. This is not repeated in each table — assume it is always required.
ActorId format: Actor IDs follow the format username/actor-name (e.g. apify/web-scraper, apify/cheerio-scraper). You can find the exact ID on any actor's page in the Apify Store URL or Console.

Resource: actor — 4 Operations

actor / run

Start an actor asynchronously. Returns immediately with a run object containing the run ID. Use actorRun/getRun to poll for status.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
ActorIdRequiredActor identifier in username/actor-name format (e.g. apify/web-scraper).
InputJsonOptionalJSON string passed as the actor's input. Must match the actor's expected input schema.
BuildTagOptionalActor build tag to run. Defaults to latest if omitted.
TimeoutSecondsOptionalInteger. Maximum run duration in seconds before the actor is forcibly stopped. No default (platform default applies).
MemoryMbOptionalMemory allocation for the run. See MemoryMb enum table below.

actor / getLastRun

Retrieve the most recent run for the specified actor, optionally filtered to a particular run status.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
ActorIdRequiredActor identifier in username/actor-name format.
StatusOptionalFilter by run status. Enum: SUCCEEDED, FAILED, RUNNING, ABORTED, TIMED-OUT, ABORTING.

actor / runAndGetDatasetItems

Start an actor, wait synchronously for it to finish, and return all items from its default dataset. This is the recommended operation for most data extraction use cases.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
ActorIdRequiredActor identifier in username/actor-name format.
InputJsonOptionalJSON string passed as the actor's input.
BuildTagOptionalActor build tag. Defaults to latest.
TimeoutSecondsOptionalMaximum run duration in seconds before timeout.
MemoryMbOptionalMemory allocation. See MemoryMb enum table below.
MaxItemsOptionalInteger. Maximum number of dataset items to return. Omit to return all items.
DatasetIdOptionalOverride the dataset to read from. Defaults to the run's default dataset if omitted.

actor / scrapeSingleUrl

Convenience operation that scrapes a single URL using Apify's built-in URL scraper. No actor ID required.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
UrlRequiredThe URL to scrape. Must be a valid HTTP/HTTPS URL.
WaitForSelectorCssOptionalCSS selector to wait for before considering the page loaded (e.g. .product-price).
ExtractHtmlOptionalBoolean. When true, include the full rendered HTML in the output.
ExtractTextOptionalBoolean. When true, include the plain text content of the page.
ScreenshotWidthOptionalInteger. Viewport width in pixels for the screenshot. Common values: 1280, 1920.
TakeScreenshotOptionalBoolean. When true, capture a screenshot of the page and return it as base64.

Resource: actorRun — 3 Operations

actorRun / getRun

Get the current status, timestamps, and statistics for a specific run by its run ID.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
RunIdRequiredThe run ID returned by actor/run or any run list operation.

actorRun / getActorRuns

List all runs for a specific actor with optional status filtering and pagination.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
ActorIdRequiredActor identifier in username/actor-name format.
StatusOptionalFilter by run status. Enum: SUCCEEDED, FAILED, RUNNING, ABORTED, TIMED-OUT, ABORTING.
LimitOptionalInteger. Number of runs to return per page.
OffsetOptionalInteger. Number of runs to skip (for pagination).

actorRun / getUserRunsList

List all runs across all actors for the account associated with the API token. Useful for monitoring platform-wide activity.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
StatusOptionalFilter by run status. Enum: SUCCEEDED, FAILED, RUNNING, ABORTED, TIMED-OUT, ABORTING.
LimitOptionalInteger. Number of runs to return per page.
OffsetOptionalInteger. Number of runs to skip (for pagination).

Resource: actorTask — 2 Operations

actorTask / run

Execute a saved actor task asynchronously. Returns immediately with the run ID.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
TaskIdRequiredThe task ID from Apify Console (found in the task URL).
InputJsonOptionalJSON string to override the task's saved input for this run only.
TimeoutSecondsOptionalInteger. Maximum run duration in seconds.
MemoryMbOptionalMemory allocation for the run. See MemoryMb enum table below.

actorTask / runAndGetDatasetItems

Run a task, wait for it to complete, and return all dataset items in one operation.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
TaskIdRequiredThe task ID from Apify Console.
InputJsonOptionalJSON string to override the task's saved input for this run only.
MaxItemsOptionalInteger. Maximum number of dataset items to return.

Resource: dataset — 1 Operation

dataset / getItems

Read items from a specific Apify dataset by ID. Supports pagination, field selection, and clean mode to skip empty items.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
DatasetIdRequiredThe Apify dataset ID. Found in the Console or returned as defaultDatasetId in a run object.
CleanOptionalBoolean. When true, skip items where all fields are empty or null.
LimitOptionalInteger. Maximum number of items to return in a single request.
OffsetOptionalInteger. Number of items to skip before returning results (for pagination).
FieldsOptionalComma-separated list of field names to include in the response (e.g. title,price,url). Omit to include all fields.

Resource: keyValueStore — 1 Operation

keyValueStore / getRecord

Retrieve a single record from an Apify key-value store by its key name.

PropertyRequiredDescription
ApiTokenRequiredApify API token.
StoreIdRequiredThe key-value store ID. Actors write their default store as defaultKeyValueStoreId on the run object.
RecordKeyRequiredThe key name of the record to retrieve (e.g. OUTPUT, SCREENSHOT).

MemoryMb Enum Values

When specified, MemoryMb must be one of the following values. Higher memory enables more browser tabs and longer crawls but increases compute cost.

Value (MB)Suitable For
128Lightweight data parsing, simple HTTP requests
256Single-page scraping with moderate JavaScript
512Standard headless browser actors
1024Multi-page crawlers, Playwright-based actors
2048Complex single-site crawls
4096Large-scale website crawls
8192Very large crawls or memory-intensive processing
16384Enterprise-scale extractions
32768Maximum — use only when required

Run Status Enum Values

StatusMeaning
RUNNINGActor is currently executing
SUCCEEDEDActor completed without errors
FAILEDActor exited with a non-zero exit code or unhandled exception
ABORTEDRun was manually stopped or API-aborted
TIMED-OUTRun exceeded its configured timeout
ABORTINGAbort requested — run is in the process of stopping