apify
v1.0.5Build, deploy, and run web scraping and automation actors in the cloud
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_actors List Actors
Retrieves a paginated list of Actors the user has created or used, with options to filter to owned Actors only and sort by creation date or last run time. Returns up to 1000 records per request.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, reverses the sort order so that the most recently created (or most recently run, if sorting by last run) Actors appear first. |
limit | number | Maximum number of Actors to return in a single response. Accepts values between 1 and 1000, with 1000 being both the default and the upper limit. |
my | boolean | When set to true, restricts the results to only Actors owned by the authenticated user, excluding Actors they have used but not created. |
offset | number | Number of records to skip from the beginning of the result set, used for paginating through large lists. Defaults to 0. |
sortBy | string | Determines the field used to order results. Use 'createdAt' to sort by when the Actor was created, or 'stats.lastRunStartedAt' to sort by the most recent run start time. |
create_actor Create Actor
Creates a new Actor on the Apify platform with the specified configuration, including source code versions, run options, and publishing settings. At least one version of the source code must be defined; set isPublic to true along with a title and categories to list the Actor in Apify Store.
get_actor Get Actor
Retrieves full details for a specific Actor, including its configuration, settings, and metadata. Use this to inspect an Actor before running it or to verify its current state.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor to retrieve, either as an Actor ID or a tilde-separated combination of the owner's username and Actor name. |
update_actor Update Actor
Updates the settings and configuration of an existing Actor by applying only the properties provided in the JSON request body. Returns the full updated Actor object after the changes are applied.
delete_actor Delete Actor
Permanently deletes the specified Actor and all associated data. This action is irreversible.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor to delete, either as a standalone Actor ID or as a tilde-separated combination of the owner's username and Actor name. |
list_actor_versions List Actor Versions
Retrieves all versions of a specific Actor, returning a list of Version objects with basic information about each version.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as a standalone Actor ID or as a tilde-separated combination of the owner's username and Actor name. |
create_actor_version Create Actor Version
Creates a new version of an Actor by specifying a version number and source type along with the corresponding source details. The source type determines which additional properties are required (e.g., a Git repository URL for GIT_REPO, a tarball URL for TARBALL).
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as an Actor ID or a tilde-separated combination of the owner's username and Actor name. |
applyEnvVarsToBuild | boolean | When set to true, the defined environment variables are also injected into the build process, not just runtime execution. |
buildTag | string | A tag label applied to builds created from this version, used to reference or promote specific builds (e.g., marking a build as the latest stable release). |
envVars | array | A list of environment variables to make available to the Actor at runtime and optionally during builds. Each item should specify the variable name and value. |
gitHubGistUrl | string | The URL of a GitHub Gist containing the Actor's source code; required when sourceType is GITHUB_GIST. |
gitRepoUrl | string | The URL of the Git repository containing the Actor's source code; required when sourceType is GIT_REPO. |
sourceFiles | array | An array of source file objects representing the Actor's code when sourceType is SOURCE_FILES. Each item defines a file's name, content, and format. |
sourceType | string | Defines where the Actor's source code is hosted; must be one of the supported source types. Each value requires its own additional properties: SOURCE_FILES uses sourceFiles, GIT_REPO uses gitRepoUrl,… |
tarballUrl | string | The URL of a tarball archive containing the Actor's source code; required when sourceType is TARBALL. |
versionNumber | string | The semantic version number to assign to this Actor version, following a major.minor format. |
get_actor_version Get Actor Version
Retrieves detailed information about a specific version of an Actor, including its configuration and metadata. Useful for inspecting the exact state of a particular Actor version.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as a standalone Actor ID or as a tilde-separated combination of the owner's username and Actor name. |
versionNumber * | string | The version number of the Actor to retrieve, following a major.minor versioning format. |
update_actor_version Update Actor Version
Updates a specific version of an Actor with the provided fields, leaving unspecified properties unchanged. Send a JSON payload with only the fields you want to modify.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The Actor's unique ID or a tilde-separated combination of the owner's username and Actor name identifying which Actor to update. |
versionNumber * | string | The version number of the Actor to update, following major.minor versioning format. |
applyEnvVarsToBuild | boolean | When set to true, the defined environment variables are also injected into the build process, not just runtime execution. |
buildTag | string | Tag label assigned to builds created from this version, used to reference the build when running the Actor. |
envVars | array | List of environment variables to make available to the Actor during execution and optionally during builds. |
gitHubGistUrl | string | The URL of the GitHub Gist containing the Actor's source code; required when sourceType is GITHUB_GIST. |
gitRepoUrl | string | The URL of the Git repository containing the Actor's source code; required when sourceType is GIT_REPO. |
sourceFiles | array | Array of source file objects representing the Actor's code when sourceType is SOURCE_FILES; each item defines a file path and its content. |
sourceType | string | Defines where the Actor's source code originates, which determines which of the source URL fields are required. |
tarballUrl | string | The URL of the tarball archive containing the Actor's source code; required when sourceType is TARBALL. |
delete_actor_version Delete Actor Version
Permanently deletes a specific version of an Actor's source code. This action is irreversible and removes the version along with its associated configuration.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as a standalone Actor ID or as a tilde-separated combination of the owner's username and Actor name. |
versionNumber * | string | The version number of the Actor to delete, following major.minor versioning format. |
list_actor_version_env_vars List Actor Version Environment Variables
Retrieves all environment variables configured for a specific version of an Actor. Returns a list of environment variable objects, each containing the variable's key, value, and related metadata.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as an Actor ID or a tilde-separated combination of the owner's username and Actor name. |
versionNumber * | string | The version number of the Actor whose environment variables should be retrieved, following major.minor versioning format. |
create_actor_env_var Create Actor Version Environment Variable
Creates a new environment variable for a specific version of an Actor. Requires a name and value, with an optional flag to mark the variable as secret.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as an Actor ID or a tilde-separated combination of the owner's username and Actor name. |
name * | string | The name of the environment variable, typically uppercase with underscores following standard environment variable naming conventions. |
value * | string | The value assigned to the environment variable. |
versionNumber * | string | The version number of the Actor to which the environment variable will be added. |
isSecret | boolean | Indicates whether the environment variable should be treated as a secret, hiding its value from logs and the UI. |
get_actor_env_var Get Actor Version Environment Variable
Retrieves details of a specific environment variable for a given Actor version. If the variable is marked as secret, its value will be omitted from the response.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique ID of the Actor, or a tilde-separated combination of the owner's username and Actor name. |
envVarName * | string | The exact name of the environment variable to retrieve, typically uppercase with underscores. |
versionNumber * | string | The version number of the Actor to retrieve the environment variable from, following major.minor versioning format. |
update_actor_env_var Update Actor Environment Variable
Updates an existing environment variable for a specific Actor version. Only the properties included in the request body will be modified; omitted properties retain their current values.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as an Actor ID or a tilde-separated combination of the owner's username and Actor name. |
envVarName * | string | The exact name of the environment variable to update, as it appears in the Actor version's configuration. |
name * | string | The updated name for the environment variable, typically uppercase with underscores following standard environment variable naming conventions. |
value * | string | The updated value to assign to the environment variable. |
versionNumber * | string | The version number of the Actor whose environment variable you want to update, in major.minor format. |
isSecret | boolean | Indicates whether the environment variable should be treated as a secret. Secret variables are encrypted at rest and masked in logs. |
delete_actor_version_env_var Delete Actor Version Environment Variable
Permanently deletes a specific environment variable from a given Actor version. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as an Actor ID or a tilde-separated combination of the owner's username and Actor name. |
envVarName * | string | The exact name of the environment variable to delete, typically uppercase with underscores as separators. |
versionNumber * | string | The version number of the Actor from which the environment variable will be deleted, following major.minor versioning format. |
list_actor_webhooks List Actor Webhooks
Retrieves a paginated list of webhooks associated with a specific Actor, returning basic information about each webhook. Results are sorted by creation date ascending by default, with a maximum of 1000 records per request.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as a standalone Actor ID or as a tilde-separated combination of the owner's username and Actor name. |
desc | boolean | When set to true, reverses the sort order so that the most recently created webhooks appear first instead of last. |
limit | number | Maximum number of webhooks to return in a single response. Accepts values between 1 and 1000, defaulting to 1000. |
offset | number | Number of webhooks to skip from the beginning of the result set, used for paginating through records. Defaults to 0. |
list_actor_builds List Actor Builds
Retrieves a paginated list of builds for a specific Actor, with each record containing basic build information. Results are sorted by start time in ascending order by default, supporting incremental fetching as new builds are created.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as a plain Actor ID or in tilde-separated format combining the owner's username and Actor name. |
desc | boolean | When set to true, sorts the returned builds by their start time in descending order (newest first). Defaults to ascending order. |
limit | number | Maximum number of build records to return in a single response. Accepts values up to 1000, which is also the default. |
offset | number | Number of build records to skip from the beginning of the result set, used for paginating through results. Defaults to 0. |
build_actor Build Actor
Triggers a new build for a specified Actor version, compiling its source code and dependencies into a runnable image. Returns the resulting build object, which may reflect a terminal or transitional status depending on wait time.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique ID of the Actor, or a tilde-separated string combining the owner's username and Actor name. |
version * | string | The Actor version number to build, corresponding to a version defined in the Actor's configuration. |
betaPackages | boolean | When enabled, the Actor is built using beta versions of Apify NPM packages instead of the default latest stable versions. |
tag | string | A label applied to the build upon successful completion; if omitted, the tag defaults to the value set in the Actor version's buildTag property. |
useCache | boolean | When enabled, the build system reuses cached layers to speed up the build process; cache is disabled by default. |
waitForFinish | number | Number of seconds the server will wait for the build to complete before returning a response; must be between 0 and 60, where 0 returns immediately with a transitional status and higher values may ret… |
get_default_actor_build Get Default Actor Build
Retrieves the default build for a specified Actor, optionally waiting synchronously for the build to reach a terminal state. No authentication token is required, though unauthenticated requests will have certain usage cost fields omitted from the response.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as a standalone Actor ID or as a tilde-separated combination of the owner's username and Actor name. |
waitForFinish | number | Maximum number of seconds the server will wait for the build to finish before returning; if the build completes within this window the response will reflect a terminal status (e.g. SUCCEEDED), otherwi… |
list_actor_runs_by_actor List Actor Runs
Retrieves a paginated list of runs for a specific Actor, with each item containing basic run metadata. Supports filtering by status and start time, and sorting in ascending or descending order.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor, either as an Actor ID or a tilde-separated combination of the owner's username and Actor name. |
desc | boolean | When set to true, sorts runs by their start time in descending order (newest first); defaults to ascending order. |
limit | number | Maximum number of runs to return in a single response; cannot exceed 1000. |
offset | number | Number of runs to skip from the beginning of the result set, used for paginating through results. |
startedAfter | string | Filters results to only include runs that started at or after this point in time, specified as an ISO 8601 datetime string in UTC. |
startedBefore | string | Filters results to only include runs that started at or before this point in time, specified as an ISO 8601 datetime string in UTC. |
status | string | Filters results to only include runs matching the specified status or comma-separated list of statuses (e.g., SUCCEEDED, FAILED, RUNNING). |
run_actor Run Actor
Starts an Actor run asynchronously and immediately returns a Run object without waiting for completion. Pass input data as the request body and use the returned run ID or defaultDatasetId to retrieve results later.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique ID of the Actor, or a tilde-separated combination of the owner's username and Actor name. |
body | object | The input payload passed to the Actor as INPUT, typically a JSON object. The Content-Type header of the request is forwarded alongside this body. |
build | string | The specific Actor build to execute, specified as either a build tag or a build number. Defaults to the build defined in the Actor's configuration, typically the latest tag. |
forcePermissionLevel | string | Overrides the Actor's default permission level for this run only, useful for testing restricted or elevated access scenarios without permanently changing the Actor's configuration. |
maxItems | number | Maximum number of dataset items that will be billed for pay-per-result Actors. Does not cap the number of items returned — only limits charges. Accessible inside the Actor via the ACTOR_MAX_PAID_DAT… |
maxTotalChargeUsd | number | Maximum total cost in USD allowed for the run, intended for pay-per-event Actors to cap charges. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environment variable. |
memory | number | Maximum RAM allocated to the run, in megabytes. Must be a power of 2 and at least 128 MB. Overrides the memory limit configured in the Actor's settings. |
restartOnError | boolean | Whether the run should automatically restart if it encounters a failure. |
timeout | number | Maximum duration the run is allowed to execute before being stopped, in seconds. Overrides the timeout configured in the Actor's settings. |
waitForFinish | number | Number of seconds the server will wait for the run to finish before returning a response, between 0 and 60. If the run completes within this window, the response will reflect a terminal status such as… |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
run_actor_sync_no_input Run Actor Synchronously
Runs a specific Actor synchronously without input and returns its output directly in the response. The run must complete within 300 seconds; if it exceeds this limit or the connection breaks, a timeout error is returned.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor to run, either as an Actor ID or a tilde-separated combination of the owner's username and Actor name. |
build | string | Specifies which build of the Actor to execute, provided as either a build tag or a build number. Defaults to the build defined in the Actor's configuration, typically the latest tag. |
maxItems | number | Maximum number of dataset items that will be charged for pay-per-result Actors; does not cap the actual items returned, only the billing ceiling. Accessible inside the Actor via the ACTOR_MAX_PAID_DAT… |
maxTotalChargeUsd | number | Maximum total cost in USD allowed for the run, useful for capping charges on pay-per-event Actors. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environment variable. |
memory | number | Memory allocated for the run in megabytes; must be a power of 2 with a minimum of 128. If omitted, the memory limit from the Actor's saved configuration is used. |
outputRecordKey | string | The key of the record from the run's default key-value store to return in the response. Defaults to OUTPUT if not specified. |
restartOnError | boolean | When set to true, the run will automatically restart if it encounters a failure. Defaults to false if not specified. |
timeout | number | Maximum duration the run is allowed to execute, in seconds. If omitted, the timeout defined in the Actor's saved configuration is used. |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
run_actor_sync Run Actor Synchronously
Runs a specific Actor synchronously, passing the request body as INPUT, and returns the Actor's OUTPUT from its default key-value store. If the Actor run exceeds 300 seconds, the response will return a 408 timeout status.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor to run, either as an Actor ID or a tilde-separated owner username and Actor name combination. |
body | object | The input payload passed to the Actor as its INPUT record. The Content-Type header of the request is forwarded alongside this body, typically as application/json. |
build | string | The specific Actor build to execute, specified as either a build tag or build number. Defaults to the build defined in the Actor's configuration, typically the latest tag. |
maxItems | number | Maximum number of dataset items that will be charged for pay-per-result Actors. Does not cap the number of items returned, only the number billed. Accessible inside the Actor via the ACTOR_MAX_PAID_DA… |
maxTotalChargeUsd | number | Maximum total cost in USD allowed for the run, useful for limiting charges on pay-per-event Actors. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environment variable. |
memory | number | Memory allocated for the Actor run, in megabytes. Must be a power of 2 with a minimum of 128 MB. Overrides the memory limit defined in the Actor's configuration. |
outputRecordKey | string | The key of the record from the run's default key-value store to return in the response. Defaults to OUTPUT if not specified. |
restartOnError | boolean | Whether the Actor run should automatically restart if it encounters a failure. |
timeout | number | Maximum duration the Actor run is allowed to execute, in seconds. Overrides the timeout defined in the Actor's configuration. |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
run_actor_sync_get_dataset_items Run Actor Synchronously and Get Dataset Items
Runs a specific Actor synchronously without input and returns its dataset items directly in the response. The Actor must complete within 300 seconds; if it exceeds this limit or the connection breaks, a timeout error is returned.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique identifier of the Actor to run, either as an internal Actor ID or as a tilde-separated combination of the owner's username and Actor name. |
attachment | boolean | When set to true, adds a Content-Disposition: attachment header to the response, prompting browsers to download the result as a file rather than render it inline. |
bom | boolean | Controls whether a UTF-8 Byte Order Mark (BOM) is prepended to the response. By default, BOM is included for CSV and omitted for json, jsonl, xml, html, and rss. Set to true to force inclusion or fals… |
build | string | Specifies which build of the Actor to execute, either by build tag or build number. Overrides the build defined in the Actor's saved configuration, which defaults to the latest tag. |
delimiter | string | Single character used as the field delimiter in CSV output. Only applies when format is csv. Special characters should be URL-encoded (e.g., %09 for tab, %3B for semicolon). Defaults to a comma. |
desc | boolean | When set to true, reverses the order of returned items so the most recently stored items appear first. By default, items are returned in insertion order. |
fields | string | Comma-separated list of field names to include in each returned item, excluding all other fields. Output fields are ordered to match the order specified in this list. |
flatten | string | Comma-separated list of fields whose nested object values should be flattened into dot-notation keys on the parent object. The original nested object is replaced by its flattened representation. |
format | string | Output format for the returned dataset items. Supported values are json, jsonl, csv, html, xlsx, xml, and rss. |
limit | number | Maximum number of dataset items to include in the response. When omitted, all available items are returned. |
maxItems | number | Maximum number of dataset items that will be billed for pay-per-result Actors. Does not cap the number of items returned — only limits charges. Accessible inside the Actor via the ACTOR_MAX_PAID_DAT… |
maxTotalChargeUsd | number | Maximum total cost in USD that may be charged for this run, intended for pay-per-event Actors. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environment variable. |
memory | number | Maximum RAM the Actor run may use, in megabytes. Must be a power of 2 and at least 128 MB. Overrides the memory limit defined in the Actor's saved configuration. |
offset | number | Number of dataset items to skip from the beginning of the result set before returning data. Useful for pagination. |
omit | string | Comma-separated list of field names to exclude from each returned item. All other fields are retained. |
restartOnError | boolean | When enabled, the Actor run will automatically restart if it encounters a failure, rather than terminating in an error state. |
simplified | boolean | When set to true, applies preset query parameters fields=url,pageFunctionResult,errorInfo and unwind=pageFunctionResult to emulate the simplified output format of the legacy Apify Crawler. Not recomme… |
skipEmpty | boolean | When set to true, items with no fields or all-null values are excluded from the output. Note that the total number of returned items may be less than the specified limit when this is enabled. |
skipFailedPages | boolean | When set to true, excludes all items that contain an errorInfo property from the output. Provided for compatibility with legacy Apify Crawler API v1 behavior. Not recommended for new integrations. |
skipHeaderRow | boolean | When set to true, omits the header row from csv-formatted output. Only applies when format is csv. |
skipHidden | boolean | When set to true, excludes fields whose names begin with the # character from the output. |
timeout | number | Maximum duration the Actor run is allowed to execute before being forcibly stopped, in seconds. Overrides the timeout defined in the Actor's saved configuration. |
unwind | string | Comma-separated list of fields to unwind, processed in the specified order. Array fields produce one record per element merged with the parent; object fields are merged directly into the parent. Items… |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
xmlRoot | string | Overrides the name of the root XML element in xml-formatted output. Only applies when format is xml. |
xmlRow | string | Overrides the name of the element wrapping each individual record in xml-formatted output. Only applies when format is xml. |
run_actor_sync_get_dataset_items_with_input Run Actor Synchronously and Get Dataset Items
Runs a specific Actor synchronously with the provided input payload and returns the resulting dataset items directly in the response. Supports the same output formatting and filtering options as the Get Dataset Items endpoint; times out with HTTP 408 if the Actor run exceeds 300 seconds.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique ID of the Actor, or a tilde-separated combination of the owner's username and Actor name. |
body | object | The input payload passed to the Actor as its INPUT, with the request's Content-Type header forwarded alongside it. Typically a JSON object. |
build | string | The specific Actor build to execute, specified as either a build tag or a build number. Defaults to the build configured on the Actor, typically the latest tag. |
delimiter | string | Single character used as the field delimiter in CSV output; only applicable when format is csv. URL-encode special characters as needed. Defaults to a comma. |
desc | boolean | When set to true, reverses the order of returned items. By default, items are returned in the order they were stored. |
fields | string | Comma-separated list of field names to include in each output record, excluding all other fields. Output fields are ordered according to the order specified in this list. |
flatten | string | Comma-separated list of fields whose nested object values should be flattened into dot-notation keys on the parent object. The original nested object is replaced by its flattened representation. |
format | string | Output format for the returned dataset items. Accepted values are json, jsonl, csv, html, xlsx, xml, and rss. Defaults to json. |
limit | number | Maximum number of dataset items to include in the response. When omitted, all available items are returned. |
maxItems | number | Maximum number of dataset items that will be charged for pay-per-result Actors. Does not cap the number of items returned — only limits billing. Accessible inside the Actor via the ACTOR_MAX_PAID_DA… |
maxTotalChargeUsd | number | Maximum total cost in USD allowed for the run, intended for pay-per-event Actors to cap charges. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environment variable. |
memory | number | Memory allocated to the Actor run in megabytes. Must be a power of 2 with a minimum of 128 MB. Defaults to the memory limit configured on the Actor. |
offset | number | Number of dataset items to skip from the beginning of the result set before returning data. Defaults to 0. |
omit | string | Comma-separated list of field names to exclude from each output record. All other fields are retained. |
restartOnError | boolean | When set to true, the Actor run will automatically restart if it encounters a failure. |
skipEmpty | boolean | When set to true, items with no fields or all-null values are excluded from the output. Note that the total number of returned items may be less than the specified limit when this option is active. |
skipHeaderRow | boolean | When set to true, omits the header row from csv-formatted output. |
skipHidden | boolean | When set to true, fields whose names begin with the # character are excluded from the output. |
timeout | number | Maximum duration the Actor run is allowed to execute before being terminated, in seconds. Defaults to the timeout configured on the Actor itself. |
unwind | string | Comma-separated list of fields to unwind, processed in the specified order. Array fields produce one record per element merged with the parent; object fields are merged directly into the parent. Items… |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
xmlRoot | string | Overrides the name of the root XML element in xml-formatted output. Defaults to items. |
xmlRow | string | Overrides the name of the element wrapping each individual record in xml-formatted output. Defaults to item. |
resurrect_actor_run Resurrect Actor Run
Restarts a finished Actor run (with status FINISHED, FAILED, ABORTED, or TIMED-OUT), resuming execution with the same storages and updating its status back to RUNNING. Optionally override the build, timeout, memory, or error-restart behavior from the original run.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The Actor's unique ID or a tilde-separated combination of the owner's username and Actor name identifying which Actor the run belongs to. |
runId * | string | The unique ID of the finished Actor run to resurrect. |
build | string | The Actor build to use for the resurrected run, specified as a build tag or build number. Defaults to the exact build version used when the run originally started, not the current resolution of any ta… |
memory | number | Memory allocated to the resurrected run in megabytes; must be a power of 2 and at least 128 MB. Defaults to the memory limit from the original run. |
restartOnError | boolean | Whether the resurrected run should automatically restart if it encounters a failure. Defaults to the same setting used in the original run. |
timeout | number | Maximum duration the resurrected run is allowed to execute, in seconds. Defaults to the timeout value from the original run. |
get_last_actor_run Get Last Actor Run
Retrieves the most recent run of a specified Actor, with optional filtering by run status. Also serves as the base path for accessing the last run's default storages (log, key-value store, dataset, and request queue) via sub-endpoints.
| Parameter | Type | Description |
|---|---|---|
actorId * | string | The unique ID of the Actor, or a tilde-separated combination of the owner's username and Actor name. |
status | string | Filters the result to only return the last run matching the specified status, ensuring you retrieve a run in a particular state (e.g. only succeeded runs). |
list_tasks List Tasks
Retrieves a paginated list of all actor tasks created or used by the authenticated user. Results are sorted by creation date and capped at 1000 records per request.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, sorts tasks by creation date in descending order (newest first); defaults to ascending order (oldest first). |
limit | number | Maximum number of tasks to return in a single response, up to a maximum of 1000. |
offset | number | Number of tasks to skip from the beginning of the result set, used for paginating through large lists. |
create_task Create Task
Creates a new actor task with the specified configuration, including the target actor, build version, timeout, and memory settings. Returns the full task object upon successful creation.
| Parameter | Type | Description |
|---|---|---|
body | object | JSON object defining the new task's configuration, including the actor to run, the task name, and execution options such as build version, timeout, and memory allocation. |
get_task Get Task
Retrieve full details of a specific actor task, including its configuration, settings, and metadata. Use this to inspect an existing task before running or modifying it.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the task to retrieve, either as a standalone task ID or as a tilde-separated combination of the owner's username and the task's name. |
update_task Update Task
Update the settings, input configuration, and runtime options of an existing Actor task. Only properties included in the request body are modified; omitted properties retain their current values.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the task to update, either as a task ID or a tilde-separated combination of the owner's username and task name. |
actorStandbyBuild | string | The Actor build tag or version to use when the task is running in Standby mode. |
actorStandbyMemoryMbytes | integer | Amount of memory in megabytes allocated to each task run when operating in Standby mode; must be a power of 2. |
desiredRequestsPerActorRun | integer | The target number of requests to process per Actor run when the task is operating in Standby mode. |
disableStandbyFieldsOverride | boolean | When true, prevents task-level Standby field values from overriding the Actor's default Standby configuration. |
idleTimeoutSecs | integer | Duration in seconds the Standby Actor is allowed to remain idle before it is considered inactive and shut down. |
input | object | The user-defined JSON input configuration passed to the Actor when the task is executed; structure depends on the specific Actor's input schema. |
isEnabled | boolean | Whether the task is enabled and available to be run; disabled tasks cannot be triggered. |
maxItems | integer | Maximum number of output dataset items the task is allowed to produce before the run is stopped. |
maxRequestsPerActorRun | integer | The upper limit on the number of requests that can be processed per Actor run in Standby mode. |
name | string | The URL-friendly name of the task, used to identify it within the owner's account. |
optionsBuild | string | The Actor build tag or version to use when running the task, such as a version tag or 'latest'. |
optionsMemoryMbytes | integer | Amount of memory in megabytes allocated to each task run; must be a power of 2. |
restartOnError | boolean | Whether the task run should automatically restart if it encounters an error during execution. |
shouldPassActorInput | boolean | When true, the Actor's own input is passed through to the task run in addition to the task's configured input. |
timeoutSecs | integer | Maximum duration in seconds the task run is allowed to execute before it is forcefully stopped. |
title | string | A human-readable display title for the task, distinct from its URL-friendly name. |
delete_task Delete Task
Permanently deletes the specified actor task and all associated configuration. This action is irreversible and removes the task from the account.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the task to delete, either as a standalone task ID or as a tilde-separated combination of the owner's username and task name. |
get_task_input Get Task Input
Retrieves the input configuration for a specified actor task. Returns the input object that defines the parameters passed to the actor when the task runs.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the actor task, either as a standalone task ID or as a tilde-separated combination of the owner's username and the task's name. |
update_task_input Update Task Input
Updates the input configuration of a specific actor task by merging the provided JSON object with the existing input. Only the properties included in the request body are updated; omitted properties retain their current values.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the actor task to update, either as a standalone task ID or as a tilde-separated combination of the owner's username and the task's name. |
body | object | A JSON object containing the input fields to update on the task. Only the specified properties will be modified; any properties not included will remain unchanged. |
list_task_webhooks List Task Webhooks
Retrieves a paginated list of webhooks associated with a specific Actor task. Results are sorted by creation date and capped at 1000 records per request.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the Actor task, either as a plain task ID or in tilde-separated format combining the owner's username and task name. |
desc | boolean | When set to true, reverses the sort order so that the most recently created webhooks appear first. By default, results are sorted by creation date in ascending order. |
limit | number | Maximum number of webhooks to return in a single response. Accepts values between 1 and 1000, with 1000 as both the default and upper limit. |
offset | number | Number of webhooks to skip from the beginning of the result set, used for paginating through records. Defaults to 0. |
list_task_runs List Task Runs
Retrieve a paginated list of runs for a specific actor task, including essential metadata for each run. Results can be filtered by status and sorted ascending or descending by start time.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the actor task, either as a task ID or a tilde-separated combination of the owner's username and task name. |
desc | boolean | When set to true, sorts runs by their start time in descending order (newest first). By default, runs are returned in ascending order. |
limit | number | Maximum number of runs to return in a single response. Accepts values between 1 and 1000, defaulting to 1000. |
offset | number | Number of runs to skip from the beginning of the result set, used for paginating through results. Defaults to 0. |
status | string | Filters results to only runs matching the specified status or comma-separated list of statuses. Valid statuses follow the Apify actor run lifecycle (e.g., SUCCEEDED, FAILED, RUNNING). |
run_task Run Task
Starts an Actor task run asynchronously and immediately returns a run object without waiting for completion. Optionally override the task's input configuration via the request body, and use the returned run ID to poll for results or fetch dataset output.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the task to run, either as a task ID or a tilde-separated string combining the owner's username and task name. |
body | object | JSON object containing input properties to override the task's default input configuration. Any properties not included here will fall back to the task's or Actor's default values. |
build | string | The specific Actor build to execute, specified as either a build tag or a build number. Overrides the build defined in the task's configuration, which defaults to latest. |
maxItems | number | Maximum number of dataset items that will be billed for pay-per-result Actors. Does not cap the number of items returned — only limits charges. Accessible inside the Actor via the ACTOR_MAX_PAID_DAT… |
maxTotalChargeUsd | number | Maximum total cost in USD allowed for the run, useful for capping charges on pay-per-event Actors. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environment variable. |
memory | number | Maximum RAM allocated to the run, in megabytes. Must be a power of 2 with a minimum of 128. Overrides the memory limit defined in the task's configuration. |
restartOnError | boolean | Whether the run should automatically restart if it encounters a failure. Defaults to false. |
timeout | number | Maximum duration the run is allowed to execute before being terminated, in seconds. Overrides the timeout defined in the task's configuration. |
waitForFinish | number | Number of seconds the server will wait for the run to finish before returning a response. Accepts values from 0 to 60; if the run completes within this window the response will reflect a terminal stat… |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
run_task_sync_get Run Task Synchronously
Runs a specific actor task synchronously and returns its output directly in the response. The task must complete within 300 seconds; if it exceeds this limit or the connection drops, the request fails but the underlying run continues.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the task to run, either as a task ID or a tilde-separated combination of the owner's username and task name. |
build | string | The Actor build to execute, specified as either a build tag or a build number. If omitted, the build defined in the task's saved configuration (typically 'latest') is used. |
maxItems | number | Maximum number of dataset items that will be billed for pay-per-result Actors; does not cap the actual items returned, only the charge. Applies exclusively to pay-per-result Actors and is exposed insi… |
memory | number | Memory allocated to the run in megabytes; must be a power of 2 and at least 128 MB. If omitted, the memory limit from the task's saved configuration is used. |
outputRecordKey | string | The key of the record in the run's default key-value store whose value will be returned as the response body. Defaults to 'OUTPUT' if not specified. |
timeout | number | Maximum duration in seconds the run is allowed to execute before being timed out. If omitted, the timeout defined in the task's saved configuration is used. |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
run_task_sync Run Task Synchronously
Runs an Actor task synchronously and returns its output directly in the response. The task must complete within 300 seconds; optionally, you can override the task's default input by providing a JSON payload.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the Actor task to run, either as a task ID or a tilde-separated combination of the owner's username and task name. |
body | object | A JSON object used to override specific input fields defined in the Actor task configuration. Any fields not included here will fall back to the task's default values. Requires the Content-Type header… |
build | string | The specific Actor build to execute, specified as either a build tag or a build number. Defaults to the build defined in the task's configuration, typically the latest tag. |
maxItems | number | Maximum number of dataset items that will be billed for pay-per-result Actors. Does not cap the number of items returned, only the number charged. Accessible inside the Actor via the ACTOR_MAX_PAID_DA… |
maxTotalChargeUsd | number | Maximum total cost in USD allowed for the run, intended for pay-per-event Actors to cap charges. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environment variable. |
memory | number | Memory allocated to the run, in megabytes. Must be a power of 2 with a minimum of 128 MB. Overrides the memory limit defined in the task's configuration. |
outputRecordKey | string | The key of the record in the run's default key-value store to return in the response body. Defaults to OUTPUT if not specified. |
restartOnError | boolean | Whether the run should automatically restart if it encounters a failure. Defaults to false. |
timeout | number | Maximum duration the run is allowed to execute before being timed out, in seconds. Overrides the timeout defined in the task's configuration. |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
run_task_sync_and_get_dataset_items Run Task Synchronously and Get Dataset Items
Synchronously runs a specific actor task and returns its dataset items directly in the response. The task must complete within 300 seconds; if it exceeds this limit the request times out, though the underlying run continues executing.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the actor task to run, either as a task ID or a tilde-separated combination of the owner's username and task name. |
attachment | boolean | When set to true, adds a Content-Disposition: attachment header to the response, prompting browsers to download the result as a file rather than render it inline. |
bom | boolean | Controls inclusion of the UTF-8 Byte Order Mark (BOM) in the response. CSV files include the BOM by default; json, jsonl, xml, html, and rss do not. Set to true to force inclusion or false to force ex… |
build | string | The actor build to execute, specified as either a build tag or a build number. If omitted, the build defined in the task's saved configuration (typically 'latest') is used. |
delimiter | string | Field delimiter character used when format is csv. Special characters should be URL-encoded (e.g., %09 for tab, %3B for semicolon). Defaults to a comma. |
desc | boolean | When set to true, reverses the order of returned items so the most recently stored items appear first. By default items are returned in insertion order. |
fields | string | Comma-separated list of field names to include in each returned item, excluding all other fields. Output fields are ordered to match the order specified in this list. |
flatten | string | Comma-separated list of fields whose nested object values should be flattened into dot-notation keys on the parent object. The original nested object is replaced by its flattened representation. |
format | string | Output format for the returned dataset items. Supported values are: json, jsonl, csv, html, xlsx, xml, and rss. Defaults to json if not specified. |
limit | number | Maximum number of items to include in the response. When omitted, all available items are returned without a cap. |
maxItems | number | Maximum number of dataset items that will be charged for pay-per-result actors. Does not cap the number of items returned — only limits billing. Accessible inside the actor run via the ACTOR_MAX_PAI… |
memory | number | Memory allocated to the run in megabytes. Must be a power of 2 and at least 128 MB. If omitted, the memory limit from the task's saved configuration is used. |
offset | number | Number of items to skip from the beginning of the dataset before returning results. Useful for pagination. Defaults to 0. |
omit | string | Comma-separated list of field names to exclude from each returned item. All other fields are retained in the output. |
simplified | boolean | When set to true, automatically applies fields=url,pageFunctionResult,errorInfo and unwind=pageFunctionResult to emulate the legacy Apify Crawler simplified output format. Not recommended for new inte… |
skipEmpty | boolean | When set to true, items with no fields or empty values are excluded from the output. Note that the total number of returned items may be less than the specified limit when this is enabled. |
skipFailedPages | boolean | When set to true, items containing an errorInfo property are excluded from the output. Provided for backward compatibility with legacy Apify Crawler integrations and not recommended for new integratio… |
skipHeaderRow | boolean | When set to true, omits the header row from csv output. Only applies when format is csv. |
skipHidden | boolean | When set to true, excludes fields whose names begin with the '#' character from the output. |
timeout | number | Maximum duration in seconds the run is allowed to execute before being timed out. If omitted, the timeout defined in the task's saved configuration is used. |
unwind | string | Comma-separated list of fields to unwind, processed in the order specified. Array fields produce one record per element merged with the parent; object fields are merged directly into the parent. Items… |
webhook_event_types | array | List of event types to trigger the webhook. Common values: 'ACTOR.RUN.SUCCEEDED', 'ACTOR.RUN.FAILED', 'ACTOR.RUN.ABORTED', 'ACTOR.RUN.TIMED_OUT'. |
webhook_request_url | string | URL that will receive the webhook POST request when the event fires. |
xmlRoot | string | Overrides the name of the root XML element when format is xml. Defaults to 'items'. |
xmlRow | string | Overrides the name of the element wrapping each individual record when format is xml. Defaults to 'item'. |
run_task_sync_get_dataset_items Run Task Synchronously and Get Dataset Items
Runs an Actor task synchronously and returns the resulting dataset items directly in the response. Optionally override task input via the POST body and control output format, pagination, and field selection through query parameters.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the Actor task to run, either as a task ID or a tilde-separated string combining the owner's username and task name. |
body | object | Optional JSON object to override specific input fields defined in the Actor task configuration. Fields not included in this payload retain their default values from the task or Actor input schema. Mus… |
build | string | Specifies which Actor build version to execute, provided as a build tag or build number. Defaults to the build defined in the task configuration, typically the latest tag. |
delimiter | string | Single character used as the field delimiter in CSV output. Only applicable when format is csv. URL-encode special characters as needed. Defaults to a comma. |
desc | boolean | When set to true, results are returned in reverse order from how they were stored. Defaults to ascending (insertion) order. |
fields | string | Comma-separated list of field names to include in each returned item, excluding all other fields. Output fields are ordered according to the order specified in this list. |
flatten | string | Comma-separated list of fields whose nested object values should be flattened into dot-notation keys on the parent object. The original nested object is replaced by the flattened representation. |
format | string | Output format for the returned dataset items. Supported values are json, jsonl, csv, html, xlsx, xml, and rss. Defaults to json. |
limit | number | Maximum number of items to include in the response. When omitted, all available items are returned. |
maxItems | number | Maximum number of dataset items that will be charged for pay-per-result Actors. Does not cap the number of items returned — only limits billing. Accessible inside the Actor via the ACTOR_MAX_PAID_DA… |
maxTotalChargeUsd | number | Maximum total cost in USD allowed for the run, intended for pay-per-event Actors to cap charges. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environment variable. |
memory | number | Memory allocated to the run in megabytes. Must be a power of 2 and at least 128 MB. Defaults to the memory limit set in the task configuration. |
offset | number | Number of items to skip from the beginning of the dataset before returning results. Useful for pagination. Defaults to 0. |
omit | string | Comma-separated list of field names to exclude from each returned item. All other fields are retained. |
restartOnError | boolean | When set to true, the run will automatically restart if it encounters a failure. |
skipEmpty | boolean | When set to true, items with no fields or all-null values are excluded from the output. Note that the total number of returned items may be less than the specified limit when this option is active. |
skipHeaderRow | boolean | When set to true, omits the header row from csv format output. |
skipHidden | boolean | When set to true, fields whose names begin with the # character are excluded from the output. |
timeout | number | Maximum duration in seconds the run is allowed to execute before being timed out. If not provided, the timeout defined in the task configuration is used. |
unwind | string | Comma-separated list of fields to unwind, processed in the specified order. Array fields produce one record per element merged with the parent; object fields are merged directly into the parent. Items… |
xmlRoot | string | Overrides the name of the root XML element in xml format output. Defaults to items. |
xmlRow | string | Overrides the name of the element wrapping each individual record in xml format output. Defaults to item. |
get_last_task_run Get Last Task Run
Retrieves the most recent run of a specified actor task, with optional filtering by run status. Also serves as the base path for accessing the last run's default storages (log, key-value store, dataset, request queue) via sub-endpoints.
| Parameter | Type | Description |
|---|---|---|
actorTaskId * | string | The unique identifier of the actor task, either as a task ID or a tilde-separated combination of the owner's username and task name. |
status | string | Restricts the result to the last run matching the specified status, ensuring runs in other states are ignored. |
list_actor_runs List Actor Runs
Retrieves a paginated list of all Actor runs for the authenticated user, with each item containing basic run metadata. Supports filtering by status and start time, and sorting in ascending or descending order.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, sorts runs by their start time in descending order (newest first); defaults to ascending order. |
limit | number | Maximum number of runs to return per request; cannot exceed 1000. |
offset | number | Number of runs to skip from the beginning of the result set, used for pagination. |
startedAfter | string | Filters results to only runs that started at or after this point in time; must be a valid ISO 8601 datetime string in UTC. |
startedBefore | string | Filters results to only runs that started at or before this point in time; must be a valid ISO 8601 datetime string in UTC. |
status | string | Filters results to only runs matching the given status or statuses; accepts a single status value or a comma-separated list of status values (e.g., SUCCEEDED, FAILED, RUNNING). |
get_actor_run Get Actor Run
Retrieves all details about a specific Actor run, including its status, timing, and usage statistics. Optionally waits synchronously for the run to finish, eliminating the need for repeated polling.
| Parameter | Type | Description |
|---|---|---|
runId * | string | The unique identifier of the Actor run to retrieve. |
waitForFinish | number | Maximum number of seconds the server will wait for the run to reach a terminal status before responding. Accepts values from 0 to 60; if the run finishes within the specified time the response will re… |
update_run Update Actor Run
Updates an Actor run's status message and/or general resource access level. Use this to communicate progress to users via the Apify Console UI or to control who can view the run and its associated storages and logs.
| Parameter | Type | Description |
|---|---|---|
runId * | string | The unique identifier of the Actor run to update. |
body | object | Request body containing the fields to update on the run. Supports setting a status message (with an optional terminal flag indicating it is the final message) and/or the general resource access level,… |
delete_actor_run Delete Actor Run
Permanently deletes a finished actor run. Only completed runs can be deleted, and only by the user or organization that initiated the run.
| Parameter | Type | Description |
|---|---|---|
runId * | string | The unique identifier of the actor run to delete. The run must be in a finished state before it can be deleted. |
abort_run Abort Run
Aborts a currently starting or running Actor run, returning full run details. Runs already in a terminal state (FINISHED, FAILED, ABORTING, TIMED-OUT) are unaffected.
| Parameter | Type | Description |
|---|---|---|
runId * | string | The unique identifier of the Actor run to abort. |
gracefully | boolean | When true, the run is aborted gracefully by sending 'aborting' and 'persistState' events before force-stopping after 30 seconds, which is useful if you intend to resurrect the run later. |
metamorph_run Metamorph Actor Run
Transforms an active Actor run into a run of a different Actor with new input, seamlessly handing off work without creating a new run. The original run's default storages are preserved and the new input is stored in the same key-value store.
| Parameter | Type | Description |
|---|---|---|
runId * | string | The unique identifier of the Actor run to be transformed. |
targetActorId * | string | The unique identifier of the target Actor that this run should be transformed into. |
build | string | Specifies which build of the target Actor to use, either as a build tag or build number. Defaults to the build defined in the target Actor's default run configuration (typically `latest`). |
reboot_actor_run Reboot Actor Run
Reboots a currently running Actor run by restarting its container, returning the updated run details. Only runs with a RUNNING status can be rebooted; any data not persisted to a key-value store, dataset, or request queue will be lost.
| Parameter | Type | Description |
|---|---|---|
runId * | string | The unique identifier of the Actor run to reboot. The run must currently have a RUNNING status. |
resurrect_run Resurrect Run
Restarts a finished Actor run (with status FINISHED, FAILED, ABORTED, or TIMED-OUT) by restarting its container with the same storages, updating its status back to RUNNING. Optionally override the build, timeout, memory, and cost limits used for the resurrected run.
| Parameter | Type | Description |
|---|---|---|
runId * | string | The unique identifier of the Actor run to resurrect. |
build | string | The Actor build to use for the resurrected run, specified as a build tag (e.g. 'latest') or a build number. If omitted, the run restarts with the exact build version it originally executed, even if a… |
maxItems | number | Maximum number of dataset items that will be charged for pay-per-result Actors; does not cap the actual items returned, only the billable count. Accessible inside the Actor via the ACTOR_MAX_PAID_DATA… |
maxTotalChargeUsd | number | Maximum total cost in USD allowed for the resurrected run, intended for pay-per-event Actors to cap charges to your subscription. Accessible inside the Actor via the ACTOR_MAX_TOTAL_CHARGE_USD environ… |
memory | number | Memory allocated to the resurrected run in megabytes; must be a power of 2 and at least 128 MB. If omitted, the memory limit from the original run is used. |
restartOnError | boolean | Whether the resurrected run should automatically restart if it encounters a failure. If omitted, the setting from the original run is preserved. |
timeout | number | Maximum duration the resurrected run is allowed to execute, in seconds. If omitted, the timeout from the original run is used. |
charge_run_event Charge Run Event
Charge for one or more occurrences of a configured pay-per-event (PPE) billing event within a specific Actor run. Must be called from within the Actor run using the same API token that started the run.
| Parameter | Type | Description |
|---|---|---|
count * | integer | The number of event occurrences to charge for in this request; must be a positive integer. |
eventName * | string | The name of the billing event to charge for, which must exactly match one of the events configured in the Actor's pay-per-event settings. |
runId * | string | The unique identifier of the Actor run to charge events against. |
list_builds List Actor Builds
Retrieves a paginated list of all builds for the authenticated user, with each entry containing basic build information. Records are sorted by start time and the endpoint returns a maximum of 1000 records per request.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, sorts builds by their start time in descending order (newest first); defaults to ascending order (oldest first). |
limit | number | Maximum number of builds to return in a single response, capped at 1000 records. |
offset | number | Number of builds to skip from the beginning of the result set, used for paginating through large result sets. |
get_actor_build Get Actor Build
Retrieves full details about a specific Actor build, including its status, timing, and resource usage. Supports synchronous waiting via an optional timeout parameter to avoid polling when monitoring build completion.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | The unique identifier of the Actor build to retrieve. |
waitForFinish | number | Maximum number of seconds the server will wait for the build to reach a terminal status before responding. Accepts values from 0 (default, return immediately) to 60. If the build finishes within the t… |
delete_build Delete Build
Permanently deletes a specific Actor build by its ID. The current default build for an Actor cannot be deleted; only users with build permissions for the Actor may perform this action.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | The unique identifier of the Actor build to delete, found in the build's Info tab. |
abort_build Abort Build
Aborts a running or starting Actor build, immediately halting execution and returning the build's full details. Builds already in a terminal state (FINISHED, FAILED, ABORTING, TIMED-OUT) are unaffected by this call.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | The unique identifier of the Actor build to abort, available in the build's Info tab. |
get_build_log Get Build Log
Retrieves the log output for a specific actor build. Supports real-time log streaming while the build is in progress.
| Parameter | Type | Description |
|---|---|---|
buildId * | string | The unique identifier of the actor build whose log you want to retrieve. |
stream | boolean | When set to true, the response will stream log output continuously as long as the build is still running, rather than returning a static snapshot. |
list_key_value_stores List Key-Value Stores
Retrieves a paginated list of key-value stores accessible to the user, including basic metadata for each store. Results are sorted by creation date ascending by default, supporting incremental pagination as new stores are created.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, reverses the sort order so that the most recently created stores appear first. |
limit | number | Maximum number of stores to return in a single response. Accepts values up to 1000. |
offset | number | Number of stores to skip from the beginning of the result set, used for paginating through results. |
ownership | string | Filters results by ownership relationship. Omitting this parameter returns all accessible stores regardless of ownership. |
unnamed | boolean | When set to true, returns both named and unnamed stores. By default, only named stores are included in the response. |
create_key_value_store Create Key-Value Store
Creates a new key-value store and returns its store object. If a store with the specified name already exists, the existing store is returned instead of creating a duplicate.
| Parameter | Type | Description |
|---|---|---|
name | string | Optional unique name for the store, making it easy to identify and retrieve later. If omitted, an unnamed store is created and subject to the platform's data retention policy. |
get_key_value_store Get Key-Value Store
Retrieves full details about a specific key-value store, including its configuration and metadata. Use this to inspect store properties before reading or writing data.
| Parameter | Type | Description |
|---|---|---|
storeId * | string | The unique identifier of the key-value store to retrieve, either as a store ID or in the format username~store-name. |
update_key_value_store Update Key-Value Store
Updates a key-value store's name and general access level using the provided JSON payload. Returns the updated store object reflecting the applied changes.
| Parameter | Type | Description |
|---|---|---|
storeId * | string | The unique identifier of the key-value store to update, either as a store ID or in the format username~store-name. |
generalAccess | string | The general access level for the key-value store, controlling who can read or interact with it. Use RESTRICTED to limit access, ANYONE_WITH_ID_CAN_READ or ANYONE_WITH_NAME_CAN_READ for broader read ac… |
name | string | The new name to assign to the key-value store. |
delete_key_value_store Delete Key-Value Store
Permanently deletes a key-value store and all of its contents. This action is irreversible and removes the store along with all stored key-value pairs.
| Parameter | Type | Description |
|---|---|---|
storeId * | string | The unique identifier of the key-value store to delete, either as a store ID or in the format username~store-name. |
list_key_value_store_keys List Key-Value Store Keys
Retrieves a paginated list of keys from a specified key-value store, including metadata about each key's associated value such as size. Supports filtering by collection or key prefix.
| Parameter | Type | Description |
|---|---|---|
storeId * | string | The unique identifier of the key-value store, either as a store ID or in the format username~store-name. |
collection | string | Restricts results to keys belonging to a specific collection defined in the key-value store's schema. Requires the store to have a schema configured. |
exclusiveStartKey | string | Pagination cursor — all keys up to and including this key are excluded from the results, allowing you to retrieve the next page of keys. |
limit | number | Maximum number of keys to return in a single response. Must be between 1 and 1000. |
prefix | string | Restricts results to keys that begin with the specified string prefix, useful for filtering logically grouped keys. |
get_key_value_store_record Get Key-Value Store Record
Retrieves the value stored under a specific key in a key-value store, returning the record with its original content type and encoding. Use the attachment parameter to fetch raw HTML content without Apify's security modifications.
| Parameter | Type | Description |
|---|---|---|
recordKey * | string | The key under which the record is stored in the key-value store. |
storeId * | string | The unique identifier of the key-value store, either as a store ID or in the format username~store-name. |
attachment | boolean | When set to true, the response is served with a Content-Disposition: attachment header, prompting browsers to download the file rather than render it, and bypasses Apify's HTML security modifications… |
put_store_record Put Store Record
Stores a value under a specific key in a key-value store, with the content type defined by the Content-Type header. Supports Gzip, Deflate, and Brotli compression via the Content-Encoding header to reduce payload size and improve upload speed.
| Parameter | Type | Description |
|---|---|---|
recordKey * | string | The key under which the value will be stored; must be unique within the store and is used to retrieve the record later. |
storeId * | string | The unique identifier of the key-value store, either as a store ID or in the format username~store-name. |
body | object | The value to store in the record; any data type or structure is supported, with the content type specified via the Content-Type request header. |
delete_key_value_store_record Delete Key-Value Store Record
Permanently removes a single record from a key-value store by its key. The store itself and all other records remain unaffected.
| Parameter | Type | Description |
|---|---|---|
recordKey * | string | The key identifying the specific record to delete within the store. |
storeId * | string | The unique identifier of the key-value store, either as a store ID or in the format username~store-name. |
check_key_value_store_record_exists Check Key-Value Store Record Exists
Checks whether a record exists in a key-value store under a specific key without retrieving its value. Useful for lightweight existence checks before performing read or write operations.
| Parameter | Type | Description |
|---|---|---|
recordKey * | string | The key identifying the record to check for existence within the key-value store. |
storeId * | string | The unique identifier of the key-value store, either as a store ID or in the format username~store-name. |
list_datasets List Datasets
Retrieves a paginated list of datasets accessible to the user, including basic metadata for each. Supports sorting, filtering by ownership, and optionally including unnamed datasets.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, results are sorted by creation date in descending order (newest first). By default, results are sorted in ascending order. |
limit | number | Maximum number of datasets to return in a single response. Accepts values up to 1000, which is also the default. |
offset | number | Number of datasets to skip from the beginning of the result set, used for pagination. Defaults to 0. |
ownership | string | Filters results by ownership relationship. Use 'ownedByMe' to return only datasets you own, or 'sharedWithMe' to return only datasets shared with you by others. Omit to return all accessible datasets. |
unnamed | boolean | When set to true, both named and unnamed datasets are returned. By default, only named datasets are included in the response. |
create_dataset Create Dataset
Creates a new dataset for storing structured data and returns its object. If a name is provided and a dataset with that name already exists, the existing dataset object is returned instead.
| Parameter | Type | Description |
|---|---|---|
name | string | Optional unique human-readable name for the dataset, allowing easy identification and retrieval in the future. If omitted, the dataset is unnamed and subject to the platform's data retention policy. |
get_dataset Get Dataset
Retrieves metadata and storage information for a specific dataset by its ID. Note that item count fields may lag up to 5 seconds behind actual data; use the list dataset items endpoint to retrieve the dataset's contents.
| Parameter | Type | Description |
|---|---|---|
datasetId * | string | The unique identifier of the dataset, either as a standalone dataset ID or in the combined username~dataset-name format. |
update_dataset Update Dataset
Updates a dataset's name and general access level by dataset ID or username-scoped name. Returns the full updated dataset object.
| Parameter | Type | Description |
|---|---|---|
datasetId * | string | The unique identifier of the dataset to update, either as a standalone dataset ID or in the format username~dataset-name. |
generalAccess | string | Controls who can access the dataset: restrict to specific users, allow anyone with the ID or name to read, or inherit from the user's default sharing setting. |
name | string | The new display name to assign to the dataset. |
delete_dataset Delete Dataset
Permanently deletes a specific dataset and its associated data. This action is irreversible and removes the dataset from the account.
| Parameter | Type | Description |
|---|---|---|
datasetId * | string | The unique identifier of the dataset to delete, accepted either as a standalone dataset ID or as a combined username and dataset name in the format `username~dataset-name`. |
list_dataset_items List Dataset Items
Retrieves items stored in a dataset, supporting multiple output formats (JSON, JSONL, XML, HTML, CSV, XLSX, RSS) with options for pagination, field filtering, sorting, and data transformation. Use this to export or inspect dataset contents produced by an Actor run.
| Parameter | Type | Description |
|---|---|---|
datasetId * | string | The unique identifier of the dataset, either as a dataset ID or in the format `username~dataset-name`. |
delimiter | string | Single character used as the field delimiter in CSV output; only applicable when `format=csv`. URL-encode special characters as needed (e.g., `%09` for tab, `%3B` for semicolon). Defaults to a comma. |
desc | boolean | When set to `true` or `1`, reverses the sort order so items are returned from newest to oldest. By default items are returned in insertion order (oldest first). Note that this does not reverse the ord… |
fields | string | Comma-separated list of top-level field names to include in each output item; all other fields are dropped. The order of fields in the output matches the order specified here, which can be used to enf… |
flatten | string | Comma-separated list of fields whose nested object values should be flattened into dot-notation keys on the parent object (e.g., `foo.bar`). The original nested object is replaced by the flattened rep… |
format | string | Output format for the response. Structured formats (`json`, `jsonl`, `xml`) return raw item objects; tabular formats (`html`, `csv`, `xlsx`) return rows and columns limited to 2000 columns with column… |
limit | number | Maximum number of items to include in the response. When omitted, all available items are returned. Note that using `skipEmpty` may cause fewer items to be returned than this limit. |
offset | number | Number of items to skip from the beginning of the result set, used for pagination. Defaults to `0`. |
omit | string | Comma-separated list of top-level field names to exclude from each output item; all other fields are retained. |
skipEmpty | boolean | When set to `true` or `1`, excludes empty items from the output. Be aware that the number of returned items may be less than the specified `limit` when this option is active. |
skipHeaderRow | boolean | When set to `true` or `1`, omits the header row from CSV output. Only applicable when `format=csv`. |
skipHidden | boolean | When set to `true` or `1`, excludes hidden fields (top-level fields whose names begin with `#`) from the output. Equivalent to enabling `clean`. |
unwind | string | Comma-separated list of fields to unwind, processed in the specified order. Array fields are expanded so each element becomes a separate item merged with the parent object; object fields are merged di… |
view | string | Name of a predefined view configuration defined in the dataset's schema, which controls how items are filtered and presented. Refer to the dataset schema documentation for how views are defined. |
xmlRoot | string | Overrides the name of the root XML element wrapping all results in XML output. Only applicable when `format=xml`. Defaults to `items`. |
xmlRow | string | Overrides the name of the XML element wrapping each individual item in XML output. Only applicable when `format=xml`. Defaults to `item`. |
append_dataset_items Append Dataset Items
Appends one or more JSON objects to the end of the specified dataset. The entire request is rejected with a 400 error if any item fails schema validation; payloads must not exceed 5 MB.
| Parameter | Type | Description |
|---|---|---|
datasetId * | string | The unique identifier of the target dataset, either as a dataset ID or in the format username~dataset-name. |
body | array | A single JSON object or an array of JSON objects to append to the dataset in order; total payload must not exceed 5 MB, so split larger arrays into smaller batches. |
get_dataset_statistics Get Dataset Statistics
Retrieves field-level statistics for a specified dataset. Returns aggregated metrics such as value counts, null rates, and type distributions for each field in the dataset.
| Parameter | Type | Description |
|---|---|---|
datasetId * | string | The unique identifier of the dataset, either as a dataset ID or in the format username~dataset-name. |
list_request_queues List Request Queues
Retrieves a paginated list of the user's request queues, returning basic metadata for each. Results are sorted by creation date ascending by default, supporting incremental fetching as new queues are created.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, reverses the sort order so queues are returned with the most recently created first instead of oldest first. |
limit | number | Maximum number of queues to return in a single response. Accepts values up to 1000, which is also the default. |
offset | number | Number of queues to skip from the beginning of the result set, used for pagination. Defaults to 0. |
ownership | string | Filters results by ownership relationship. Omitting this parameter returns all accessible queues, while specifying a value limits results to queues owned by the user or shared with them by others. |
unnamed | boolean | When set to true, returns both named and unnamed queues. By default, only named queues are included in the results. |
create_request_queue Create Request Queue
Creates a new request queue and returns its object, or returns the existing queue object if a queue with the given name already exists. Unnamed queues are subject to the platform's data retention policy.
| Parameter | Type | Description |
|---|---|---|
name | string | Optional unique name for the request queue, allowing easy identification and retrieval in the future. If omitted, an unnamed queue is created and subject to data retention limits. |
get_request_queue Get Request Queue
Retrieves metadata and configuration details for a specific request queue. Returns the full queue object including its properties and current state.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique identifier of the request queue to retrieve. Accepts either the queue's ID or a combined username and queue name in the format username~queue-name. |
update_request_queue Update Request Queue
Updates a request queue's name and resource access level by submitting a JSON payload with the desired changes. Returns the full updated request queue object upon success.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique identifier of the request queue to update, either as a queue ID or in the format username~queue-name. |
body | object | JSON object containing the fields to update on the request queue, such as its name or general resource access level. |
delete_request_queue Delete Request Queue
Permanently deletes a request queue and all its associated data. This action is irreversible and removes the queue identified by its ID or name.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique identifier of the request queue to delete, either as a queue ID or in the format username~queue-name. |
batch_add_requests Batch Add Requests
Adds up to 25 requests to a specified request queue in a single batch operation. Returns arrays of successfully processed and unprocessed requests, with unprocessed entries recommended for retry using exponential backoff.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique identifier of the target request queue, either as a queue ID or in the format username~queue-name. |
body | array | An array of request objects to add to the queue, with a maximum of 25 items per batch. Each item should include the request details such as URL and uniqueKey; order within the array does not affect qu… |
clientKey | string | A unique string identifier (1–32 characters) representing the calling client, used to detect whether the queue is being accessed by multiple clients simultaneously. Omitting this value causes the sy… |
forefront | string | Controls whether each request in the batch is inserted at the front (head) or back (end) of the queue. Accepts a boolean string value; defaults to false, placing requests at the end. |
batch_delete_queue_requests Batch Delete Queue Requests
Batch-deletes up to 25 requests from a specified request queue, identified by their ID or uniqueKey. Any requests that fail due to rate limiting or internal errors are returned in the response for retry, with exponential backoff recommended.
| Parameter | Type | Description |
|---|---|---|
Content-Type * | string | The media type of the request body, which must be set to application/json. |
queueId * | string | The unique identifier of the request queue, either as a queue ID or in the format username~queue-name. |
body | array | An array of request objects to delete, each identified by either an ID or uniqueKey field. The batch is limited to 25 requests; order is not significant. |
clientKey | string | A unique string identifier (1–32 characters) representing the client accessing the queue, used to detect whether the queue has been accessed by multiple clients. If omitted, the system treats this c… |
unlock_queue_requests Unlock Queue Requests
Unlocks all currently locked requests in the specified request queue that are held by the calling client. Within an Actor run, this releases locks held by both the current run and the same clientKey; outside a run, it releases all locks associated with the provided clientKey.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique identifier of the request queue, either as a queue ID or in the format username~queue-name. |
clientKey | string | A unique string identifier (1–32 characters) representing the client accessing the queue, used to track whether multiple clients have accessed the same queue. If omitted, the system treats the reque… |
list_queue_requests List Queue Requests
Retrieves a paginated list of requests from a specified request queue. Use exclusiveStartId and limit to page through large queues efficiently.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique identifier of the request queue, either as a queue ID or in the format username~queue-name. |
exclusiveStartId | string | Cursor for pagination — all requests up to and including this request ID are excluded from the results, returning only subsequent requests. |
limit | number | Maximum number of requests to return in a single response. Must be between 1 and 10000. |
add_queue_request Add Queue Request
Adds a new URL request to a specified request queue for processing. If a request with the same uniqueKey already exists in the queue, returns the ID of the existing request instead of creating a duplicate.
| Parameter | Type | Description |
|---|---|---|
method * | string | The HTTP method to use when executing this request (e.g., GET, POST, PUT, DELETE). |
queueId * | string | The ID of the target request queue, or a combined identifier in the format username~queue-name. |
uniqueKey * | string | A unique key used to deduplicate requests — requests sharing the same uniqueKey are treated as identical and will not be added twice. |
url * | string | The fully qualified URL to be fetched or processed by this request, must be a valid URI. |
clientKey | string | A unique string identifier (1–32 characters) representing the client making this request, used to detect whether the queue has been accessed by multiple clients. |
forefront | string | Controls where the request is inserted in the queue. Set to true to add at the front (head) of the queue, or false to append at the end. Defaults to false. |
get_queue_request Get Queue Request
Retrieves a specific request from a request queue by its ID. Returns the full request details including URL, metadata, and processing status.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique identifier of the request queue, either as a queue ID or in the format username~queue-name. |
requestId * | string | The unique identifier of the request to retrieve from the specified queue. |
update_queue_request Update Queue Request
Updates an existing request in a queue, allowing you to modify its properties or mark it as handled. Setting `handledAt` to the current time removes the request from the head of the queue and releases any lock on it.
| Parameter | Type | Description |
|---|---|---|
id * | string | The unique identifier assigned to this request object, used to reference it within the queue. |
queueId * | string | The ID of the request queue, either as a direct queue ID or in the format `username~queue-name`. |
requestId * | string | The unique ID of the request to update within the queue. |
uniqueKey * | string | A unique key used to deduplicate requests; requests sharing the same key are treated as identical and will not be added more than once. |
url * | string | The target URL for this request, must be a valid URI. |
clientKey | string | A unique string identifier (1–32 characters) representing the client making this call, used to detect whether the queue is being accessed by multiple clients simultaneously. |
forefront | string | Controls whether the updated request is repositioned to the front of the queue (`true`) or remains at the end (`false`). Defaults to `false`. |
headers | object | A key-value map of HTTP headers to include when executing this request. |
image | string | An optional URI pointing to an image associated with this request, must be a valid URI. |
label | string | An optional label for categorizing or routing the request during processing. |
method | string | The HTTP method to use when executing this request (e.g., GET, POST, PUT, DELETE). |
noRetry | boolean | When set to `true`, prevents the request from being retried automatically if its processing fails. |
payload | object | The body payload to send with the request, typically used for POST or PUT requests. |
delete_queue_request Delete Queue Request
Permanently removes a specific request from a request queue by its ID. Use this to discard requests that are no longer needed for processing.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique identifier of the request queue, either as a queue ID or in the format username~queue-name. |
requestId * | string | The unique identifier of the request to delete from the queue. |
clientKey | string | A unique string (1–32 characters) identifying the client making this call, used to track whether the queue has been accessed by multiple clients. If omitted, the system treats this call as originati… |
get_request_queue_head Get Request Queue Head
Retrieves the first N requests from the head of a request queue. Returns a `hadMultipleClients` flag indicating whether the queue has been accessed by more than one client, which helps SDKs determine local cache consistency.
| Parameter | Type | Description |
|---|---|---|
queueId * | string | The unique ID of the request queue, or a combined identifier in the format `username~queue-name`. |
clientKey | string | A unique string identifier (1–32 characters) representing the calling client, used to track whether the queue is being accessed by multiple clients. Omitting this value causes the system to treat th… |
limit | number | The maximum number of requests to return from the head of the queue. If omitted, a default limit is applied. |
lock_queue_head_requests Lock Queue Head Requests
Retrieves and locks a specified number of requests from the head of a request queue, preventing other clients or runs from accessing them for the duration of the lock period. Returns a flag indicating whether the queue has been accessed by multiple clients.
| Parameter | Type | Description |
|---|---|---|
lockSecs * | number | The duration in seconds for which the retrieved requests will be locked and unavailable to other clients or runs. |
queueId * | string | The unique identifier of the request queue, either as a queue ID or in the format username~queue-name. |
clientKey | string | A unique string identifier (1–32 characters) representing the calling client, used to detect whether the queue is being accessed by multiple distinct clients. Omitting this value causes the system t… |
limit | number | The maximum number of requests to retrieve from the head of the queue, between 1 and 25. |
prolong_request_lock Prolong Request Lock
Extends the lock duration on a specific request in a queue, preventing other clients from acquiring it. Only the client that originally locked the request can prolong its lock.
| Parameter | Type | Description |
|---|---|---|
lockSecs * | number | The number of seconds to extend the lock duration from the current time. Must be a positive value. |
queueId * | string | The unique identifier of the request queue, either as a queue ID or in the format username~queue-name. |
requestId * | string | The unique identifier of the request whose lock you want to prolong. |
clientKey | string | A unique string identifier (1–32 characters) representing the client accessing the queue. Must match the client key used when the request was originally locked in order to prolong or delete the lock… |
forefront | string | Controls where the request is placed in the queue after its lock expires — set to true to move it to the front of the queue, or false to place it at the end. |
delete_request_lock Delete Request Lock
Releases a lock on a specific request in a queue, making it available for other clients to process. Only the client that originally locked the request (via the lock head operation) can delete its lock.
| Parameter | Type | Description |
|---|---|---|
Content-Type * | string | The media type of the request body, which must be application/json. |
queueId * | string | The unique identifier of the request queue, either as a queue ID or in the format username~queue-name. |
requestId * | string | The unique identifier of the request whose lock should be deleted. |
clientKey | string | A unique string identifier (1–32 characters) representing the client releasing the lock. Must match the client key used when the lock was originally acquired. |
forefront | string | Controls where the request is re-inserted in the queue after the lock is removed — set to true to place it at the front of the queue, or false to append it to the end. |
list_webhooks List Webhooks
Retrieves a paginated list of webhooks created by the authenticated user. Results are sorted by creation date and capped at 1000 records per request.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, results are sorted by creation date in descending order (newest first); defaults to ascending order (oldest first). |
limit | number | Maximum number of webhook records to return in a single request, with an upper bound of 1000. |
offset | number | Number of records to skip from the beginning of the result set, used for paginating through results. |
create_webhook Create Webhook
Creates a new webhook that triggers HTTP POST requests to a target URL when specified Actor or task events occur. Use an idempotency key to safely retry creation without duplicating webhooks.
| Parameter | Type | Description |
|---|---|---|
eventTypes * | array | List of event types that will trigger this webhook. Each item must be a valid Apify event string (e.g., ACTOR.RUN.SUCCEEDED, ACTOR.RUN.FAILED, ACTOR.RUN.ABORTED). Order is not significant. |
requestUrl * | string | The target URL to which webhook event data is sent as an HTTP POST request with a JSON payload. Must be a valid absolute URI. |
actorId | string | ID of the Actor to assign this webhook to. Provide inside the condition object along with optionally actorTaskId to scope the webhook to a specific Actor. |
actorRunId | string | ID of a specific Actor run to associate with this webhook, used to scope the webhook to a particular run instance. |
actorTaskId | string | ID of the Actor task to assign this webhook to. Provide inside the condition object to scope the webhook to a specific task run. |
description | string | Optional human-readable label for the webhook to help identify its purpose. |
doNotRetry | boolean | When true, failed webhook dispatch attempts will not be retried. Defaults to false, meaning Apify will retry on failure. |
headersTemplate | string | A JSON-like template string defining custom HTTP headers sent with the webhook request. Supports Apify template variables. Note: host, Content-Type, X-Apify-Webhook, X-Apify-Webhook-Dispatch-Id, and X… |
idempotencyKey | string | Unique key used to prevent duplicate webhook creation. Multiple requests with the same key will only create the webhook once and return the existing webhook on subsequent calls. Use a UUID or sufficie… |
ignoreSslErrors | boolean | When true, SSL certificate errors on the target requestUrl will be ignored during webhook dispatch. Defaults to false. |
isAdHoc | boolean | When true, marks the webhook as ad-hoc (not permanently assigned to an Actor or task). Defaults to false for standard persistent webhooks. |
payloadTemplate | string | A JSON-like template string defining the payload sent to the requestUrl. Supports Apify template variables (e.g., {{userId}}, {{resource}}). If shouldInterpolateStrings is true, variables inside strin… |
shouldInterpolateStrings | boolean | When true, Apify template variables found inside string values within the payloadTemplate are interpolated. When false, only top-level variable placeholders are replaced. |
get_webhook Get Webhook
Retrieves full details of a specific webhook by its unique identifier. Returns all webhook configuration and metadata.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | The unique identifier of the webhook to retrieve. |
update_webhook Update Webhook
Updates an existing webhook's configuration by its ID, applying only the properties provided in the JSON request body. Returns the full updated webhook object.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | The unique identifier of the webhook to update. |
actorId | string | The ID of the Actor whose events should trigger this webhook. Scopes the webhook to a specific Actor. |
actorRunId | string | The ID of the Actor run whose events should trigger this webhook. Scopes the webhook to a specific run. |
actorTaskId | string | The ID of the Actor task whose events should trigger this webhook. Scopes the webhook to a specific task. |
description | string | A human-readable description of the webhook's purpose or configuration for identification. |
doNotRetry | boolean | When true, failed webhook delivery attempts will not be retried automatically. |
eventTypes | array | List of event types that trigger this webhook, such as actor run lifecycle events. Order is not significant; each item must be a valid event type string. |
headersTemplate | string | A template string defining custom HTTP headers included with each webhook request. Supports variable interpolation using double curly brace syntax. |
ignoreSslErrors | boolean | When true, SSL certificate errors on the target request URL are ignored. Use with caution in production environments. |
isAdHoc | boolean | Indicates whether the webhook is ad hoc (created for a single run) rather than a persistent webhook. |
payloadTemplate | string | A template string defining the JSON payload sent with each webhook request. Supports variable interpolation using double curly brace syntax. |
requestUrl | string | The destination URL to which the webhook will send HTTP POST requests when triggered. Must be a valid URI. |
shouldInterpolateStrings | boolean | When true, string values within the payload and headers templates will have variable placeholders interpolated before the request is sent. |
delete_webhook Delete Webhook
Permanently deletes a webhook by its unique identifier. This action is irreversible and will stop all event notifications associated with the webhook.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | The unique identifier of the webhook to delete. |
test_webhook Test Webhook
Sends a test dispatch to the specified webhook using a dummy payload. Useful for verifying that the webhook endpoint is correctly configured and reachable.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | The unique identifier of the webhook to test. |
list_webhook_dispatches_by_webhook List Webhook Dispatches
Retrieves the list of dispatch records for a specific webhook, showing its delivery history and execution events.
| Parameter | Type | Description |
|---|---|---|
webhookId * | string | The unique identifier of the webhook whose dispatch history you want to retrieve. |
list_webhook_dispatches List Webhook Dispatches
Retrieves a paginated list of webhook dispatches associated with the authenticated user. Results are sorted by creation date and capped at 1000 records per request.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, sorts the returned records by the createdAt field in descending order (newest first). Defaults to ascending order. |
limit | number | Maximum number of webhook dispatch records to return in a single response. Accepts values up to 1000, which is also the default. |
offset | number | Number of records to skip from the beginning of the result set, used for paginating through results. Defaults to 0. |
get_webhook_dispatch Get Webhook Dispatch
Retrieves a webhook dispatch record by its unique ID, returning full details about the dispatch event, status, and payload.
| Parameter | Type | Description |
|---|---|---|
dispatchId * | string | The unique identifier of the webhook dispatch record to retrieve. |
list_schedules List Schedules
Retrieves a paginated list of schedules created by the user. Results are sorted by creation date ascending by default, with a maximum of 1000 records per request.
| Parameter | Type | Description |
|---|---|---|
desc | boolean | When set to true, sorts the returned schedules by creation date in descending order instead of the default ascending order. |
limit | number | Maximum number of schedules to return in a single request, capped at 1000. |
offset | number | Number of schedules to skip from the beginning of the result set, used for paginating through records. |
create_schedule Create Schedule
Creates a new schedule with the specified configuration, including timing, timezone, and associated actions. Returns the fully created schedule object upon success.
| Parameter | Type | Description |
|---|---|---|
actions | array | List of actions to execute when the schedule triggers. Each item defines an action type and its configuration; order determines execution sequence. |
cronExpression | string | Defines the schedule's timing using standard cron syntax (minute, hour, day-of-month, month, day-of-week). |
description | string | Human-readable explanation of the schedule's purpose, useful for documentation and identifying what the schedule does. |
isEnabled | boolean | Controls whether the schedule is active and will trigger at its configured times. Set to false to create the schedule in a paused state. |
isExclusive | boolean | When true, ensures only one run of this schedule executes at a time, preventing overlapping executions if a previous run is still in progress. |
name | string | Unique identifier name for the schedule, used to reference it programmatically. |
timezone | string | IANA timezone name used to interpret the cron expression, ensuring the schedule fires at the correct local time. |
title | string | Display-friendly label for the schedule shown in the UI, distinct from the programmatic name. |
get_schedule Get Schedule
Retrieves a schedule object with all associated details by its unique identifier. Use this to inspect scheduling configuration, timing, and related metadata for a specific schedule.
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | The unique identifier of the schedule to retrieve. |
update_schedule Update Schedule
Updates an existing schedule by its ID, applying only the properties provided in the request body while leaving unspecified properties unchanged. Returns the full updated schedule object.
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | The unique identifier of the schedule to update. |
actions | array | An ordered list of action objects that the schedule will execute when triggered. Each item defines the type and configuration of an action to perform. |
cronExpression | string | The cron expression defining when the schedule triggers, using standard five-field cron syntax (minute, hour, day-of-month, month, day-of-week). |
description | string | A human-readable explanation of the schedule's purpose or context, useful for documentation and identification. |
isEnabled | boolean | Whether the schedule is active and will trigger its actions at the defined times. Set to false to pause the schedule without deleting it. |
isExclusive | boolean | Whether the schedule runs exclusively, preventing overlapping executions if a previous run is still in progress when the next trigger fires. |
name | string | A short machine-friendly identifier for the schedule, typically used for referencing it programmatically. |
timezone | string | The IANA timezone name used to interpret the cron expression, ensuring triggers fire at the correct local time. |
title | string | A human-friendly display name for the schedule, intended for presentation in UIs or dashboards. |
delete_schedule Delete Schedule
Permanently deletes a schedule by its unique identifier. This action cannot be undone.
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | The unique identifier of the schedule to delete. |
get_schedule_log Get Schedule Log
Retrieves the execution log for a specific schedule, returning a JSON array of up to 1000 recent invocation records. Useful for auditing schedule activity and diagnosing execution history.
| Parameter | Type | Description |
|---|---|---|
scheduleId * | string | The unique identifier of the schedule whose invocation log you want to retrieve. |
list_store_actors List Store Actors
Retrieves the list of publicly available Actors from the Apify Store, with support for keyword search, filtering, and sorting. Returns up to 1,000 results and supports pagination.
| Parameter | Type | Description |
|---|---|---|
allowsAgenticUsers | boolean | When true, restricts results to Actors that permit agentic users; when false, restricts results to Actors that do not permit agentic users. |
category | string | Filters results to only include Actors belonging to the specified category. |
limit | number | Maximum number of Actors to return in a single response. Accepts values up to 1,000. |
offset | number | Number of Actors to skip from the beginning of the result set, used for paginating through results. |
pricingModel | string | Filters results to only include Actors with the specified pricing model. Must be one of the supported pricing model values. |
search | string | Keyword or phrase used to search Actors across their title, name, description, username, and readme fields. |
sortBy | string | Field by which to sort the returned Actors. Supported values are relevance (default), popularity, newest, and lastUpdate. |
username | string | Filters results to only include Actors published by the specified username. |
get_run_log Get Run Log
Retrieves the log output for a specific Actor build or run. Supports real-time streaming for active runs and optional preservation of raw ANSI escape codes.
| Parameter | Type | Description |
|---|---|---|
buildOrRunId * | string | The unique identifier of the Actor build or run whose logs you want to retrieve. |
raw | boolean | When set to true, logs are returned verbatim including ANSI escape codes. By default, ANSI escape codes are stripped and only printable characters are returned. |
stream | boolean | When set to true, the response streams log output continuously while the build or run is still active, rather than returning a static snapshot. |
get_user Get User
Retrieves public profile information for a specific user account, equivalent to what is visible on their public profile page. No authentication is required to call this endpoint.
| Parameter | Type | Description |
|---|---|---|
userId * | string | The unique identifier or username of the user whose public profile data should be retrieved. |
get_current_user Get Current User
Retrieves both public and private profile data for the authenticated user account identified by the provided token. Note that plan, email, and profile fields are excluded when accessed from within an Actor run.
get_monthly_usage Get Monthly Usage
Retrieves a complete summary of your usage for the current or a specified billing cycle, including storage, data transfer, and request queue usage with both an overall total and a daily breakdown.
| Parameter | Type | Description |
|---|---|---|
date | string | The date within the billing cycle you want to retrieve usage for, in YYYY-MM-DD format. If omitted, the current billing cycle is returned. |
get_account_limits Get Account Limits
Retrieves a complete summary of the authenticated account's limits, current usage cycle, and usage statistics, equivalent to the Limits page in the Apify console.