Apify

Learn how to use Apify with Composio

Overview

SLUG: APIFY

Description

Apify is a platform for building, deploying, and managing web scraping and automation tools, known as Actors.

Authentication Details

generic_api_key
stringRequired

Connecting to Apify

Create an auth config

Use the dashboard to create an auth config for the Apify toolkit. This allows you to connect multiple Apify accounts to Composio for agents to use.

1

Select App

Navigate to Apify.

2

Configure Auth Config Settings

Select among the supported auth schemes of and configure them here.

3

Create and Get auth config ID

Click “Create Apify Auth Config”. After creation, copy the displayed ID starting with ac_. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database. This ID will be used to create connections to the toolkit for a given user.

Connect Your Account

Using API Key

1from composio import Composio
2
3# Replace these with your actual values
4apify_auth_config_id = "ac_YOUR_APIFY_CONFIG_ID" # Auth config ID created above
5user_id = "0000-0000-0000" # UUID from database/app
6
7composio = Composio()
8
9def authenticate_toolkit(user_id: str, auth_config_id: str):
10 # Replace this with a method to retrieve an API key from the user.
11 # Or supply your own.
12 user_api_key = input("[!] Enter API key")
13
14 connection_request = composio.connected_accounts.initiate(
15 user_id=user_id,
16 auth_config_id=auth_config_id,
17 config={"auth_scheme": "API_KEY", "val": {"generic_api_key": user_api_key}}
18 )
19
20 # API Key authentication is immediate - no redirect needed
21 print(f"Successfully connected Apify for user {user_id}")
22 print(f"Connection status: {connection_request.status}")
23
24 return connection_request.id
25
26
27connection_id = authenticate_toolkit(user_id, apify_auth_config_id)
28
29# You can verify the connection using:
30connected_account = composio.connected_accounts.get(connection_id)
31print(f"Connected account: {connected_account}")

Tools

Executing tools

To prototype you can execute some tools to see the responses and working on the Apify toolkit’s playground

Python
1from composio import Composio
2from openai import OpenAI
3import json
4
5openai = OpenAI()
6composio = Composio()
7
8# User ID must be a valid UUID format
9user_id = "0000-0000-0000" # Replace with actual user UUID from your database
10
11tools = composio.tools.get(user_id=user_id, toolkits=["APIFY"])
12
13print("[!] Tools:")
14print(json.dumps(tools))
15
16def invoke_llm(task = "What can you do?"):
17 completion = openai.chat.completions.create(
18 model="gpt-4o",
19 messages=[
20 {
21 "role": "user",
22 "content": task, # Your task here!
23 },
24 ],
25 tools=tools,
26 )
27
28 # Handle Result from tool call
29 result = composio.provider.handle_tool_calls(user_id=user_id, response=completion)
30 print(f"[!] Completion: {completion}")
31 print(f"[!] Tool call result: {result}")
32
33invoke_llm()

Tool List

Tool Name: Abort Act Build (Deprecated)

Description

Tool to abort an Actor build using the deprecated endpoint. Use when you need to cancel a build in progress. Only builds with STARTING or RUNNING status are aborted; builds in terminal states (FINISHED, FAILED, ABORTING, TIMED-OUT) are not affected. Note: This endpoint is deprecated; use ActorBuildAbortPost for the new endpoint.

Action Parameters

actorId
stringRequired
buildId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Build

Description

Tool to get detailed information about a specific Actor build by actor ID and build ID. Use when you need to retrieve complete build details. Optionally wait for the build to finish using the waitForFinish parameter to avoid polling.

Action Parameters

actorId
stringRequired
buildId
stringRequired
waitForFinish
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Build Actor

Description

Tool to build an Actor with specified configuration. Use when you need to create a new build of an Actor with a specific version. The build process compiles the Actor's source code into a Docker image.

Action Parameters

actorId
stringRequired
betaPackages
boolean
tag
string
useCache
boolean
versionNumber
string
waitForFinish
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Abort Actor Build

Description

Tool to abort an Actor build that is starting or running. Use when you need to cancel a build in progress. Builds in terminal states (FINISHED, FAILED, ABORTING, TIMED-OUT) are not affected.

Action Parameters

buildId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Actor Build

Description

Tool to delete an Actor build permanently. Use when you need to remove a specific build by its ID. The default build for an Actor cannot be deleted. Only users with build permissions can delete builds.

Action Parameters

buildId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor Build

Description

Tool to get detailed information about a specific Actor build. Use when you need to retrieve complete build details by build ID. Optionally wait for the build to finish using the waitForFinish parameter to avoid polling.

Action Parameters

buildId
stringRequired
waitForFinish
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor Build Log

Description

Tool to retrieve the log file for a specific Actor build. Use when you need to inspect logs generated during an Actor build process. Only the trailing 5 million characters of the log are stored.

Action Parameters

buildId
stringRequired
raw
boolean
stream
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor Build OpenAPI Definition

Description

Tool to get the OpenAPI definition for a specific Actor build. Use when you need the API schema for a build identified by its unique buildId. Authentication is based on the build's unique ID; no authentication token is required.

Action Parameters

buildId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get user builds list

Description

Tool to get a paginated list of all builds for a user. Use when you need to retrieve build history across all actors. Supports pagination up to 1000 records.

Action Parameters

desc
boolean
limit
integer
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Abort Actor Run

Description

Tool to abort a running or starting Actor run. Use when you need to stop an Actor run that is currently in STARTING or RUNNING status. For runs with status FINISHED, FAILED, ABORTING, and TIMED-OUT this call does nothing.

Action Parameters

gracefulAbort
boolean
runId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Actor Run

Description

Tool to delete a finished Actor run. Use when you need to permanently remove a completed run. Only finished runs can be deleted by the initiating user or organization.

Action Parameters

runId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor Run

Description

Tool to get details about a specific Actor run. Use when you need to retrieve comprehensive information about a run including its execution status, resource usage, storage IDs, and metadata.

Action Parameters

runId
stringRequired
waitForFinish
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Actor Run Status Message

Description

Tool to update the status message of an Actor run. Use when you need to set progress information or status updates that will be displayed in the Apify Console UI during Actor execution.

Action Parameters

isStatusMessageTerminal
boolean
runId
stringRequired
statusMessage
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Actor Task

Description

Tool to delete an Actor task permanently. Use when you need to remove a task by its ID or username~taskName. Confirm before calling.

Action Parameters

actorTaskId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor Task

Description

Tool to get complete details about an Actor task. Use when you need to retrieve task configuration, input settings, or metadata by task ID or username~task-name.

Action Parameters

actorTaskId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Actor Task

Description

Tool to update Actor task settings using JSON payload. Only specified properties are updated; others remain unchanged. Use when you need to modify task configuration, input, or execution options.

Action Parameters

actorTaskId
stringRequired
description
string
input
object
options
object
title
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get last actor task run

Description

Tool to get the most recent run of a specific Actor task. Use when you need to retrieve the last execution details. You can filter by status to get only successful runs using status='SUCCEEDED'.

Action Parameters

actorTaskId
stringRequired
status
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Task Sync (GET)

Description

Tool to run a specific task synchronously and return its output. Use when immediate task results are needed with pre-configured settings. The run must finish within 300 seconds otherwise the HTTP request fails with a timeout error.

Action Parameters

actorTaskId
stringRequired
build
string
maxItems
integer
maxTotalChargeUsd
number
memory
integer
restartOnError
boolean
timeout
integer
webhooks
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Task Sync & Get Dataset Items

Description

Tool to run an actor task synchronously and retrieve its dataset items. Use when immediate access to task run results is needed. The run must finish within 300 seconds otherwise the request times out.

Action Parameters

actorTaskId
stringRequired
bom
boolean
build
string
clean
boolean
delimiter
string
desc
boolean
fields
string
flatten
string
format
stringDefaults to json
limit
integer
memory
integer
offset
integer
omit
string
skipEmpty
boolean
skipHeaderRow
boolean
skipHidden
boolean
timeout
integer
unwind
string
view
string
waitForFinish
integer
xmlRoot
string
xmlRow
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Task Sync with Input Override & Get Dataset Items

Description

Tool to run an actor task synchronously with input overrides and retrieve its dataset items. Use when you need to override task input configuration and get immediate results. The run must finish within 300 seconds otherwise the request times out.

Action Parameters

actorTaskId
stringRequired
build
string
clean
boolean
desc
boolean
fields
string
format
stringDefaults to json
inputOverrides
object
limit
integer
maxItems
integer
memory
integer
offset
integer
omit
string
skipEmpty
boolean
skipHidden
boolean
timeout
integer
unwind
string
waitForFinish
integer
webhooks
string
xmlRoot
string
xmlRow
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Task Sync (POST)

Description

Tool to run an Actor task synchronously with input override and return its output. Use when immediate task results are needed with custom input parameters. The run must finish within 300 seconds otherwise the HTTP request fails with a timeout error (though the run continues server-side).

Action Parameters

actorTaskId
stringRequired
build
string
inputOverrides
object
maxItems
integer
memory
integer
timeout
integer
waitForFinish
integer
webhooks
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Actor

Description

Tool to update Actor settings using JSON payload. Only specified fields will be updated. Use when you need to modify Actor configuration, make an Actor public, or update version settings.

Action Parameters

actorId
stringRequired
categories
array
defaultRunOptions
object
description
string
exampleRunInput
object
isPublic
boolean
name
string
seoDescription
string
seoTitle
string
taggedBuilds
object
title
string
versions
array

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Abort Act Run (Deprecated)

Description

Tool to abort an Actor run using the deprecated endpoint. Use when you need to stop an Actor run that is currently in STARTING or RUNNING status. For runs with status FINISHED, FAILED, ABORTING, and TIMED-OUT this call does nothing. Note: This endpoint is deprecated; use ActorRunAbortPost for the new endpoint.

Action Parameters

actorId
stringRequired
gracefully
boolean
runId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor Run (Deprecated)

Description

Tool to get details about a specific Actor run using the deprecated /acts endpoint. Use when you need to retrieve comprehensive information about a run including its execution status, resource usage, storage IDs, and metadata. Note: This endpoint is deprecated; prefer using the actor-runs endpoint instead.

Action Parameters

actorId
stringRequired
runId
stringRequired
waitForFinish
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Resurrect Actor Run (Deprecated)

Description

Tool to resurrect a finished Actor run using the deprecated endpoint. Use when you need to restart a completed, failed, aborted, or timed-out run. This endpoint is deprecated; prefer using the actor-runs namespace instead.

Action Parameters

actorId
stringRequired
build
string
maxItems
integer
maxTotalChargeUsd
number
memoryMbytes
integer
restartOnError
boolean
runId
stringRequired
timeoutSecs
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get last actor run

Description

Tool to get the most recent run of a specific Actor. Use when you need to retrieve the last execution details of an Actor and optionally filter by status (e.g., status='SUCCEEDED' to get only the last successful run).

Action Parameters

actorId
stringRequired
status
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Actor Sync without Input (GET)

Description

Tool to run a specific Actor synchronously without input and return its output. Use when immediate Actor results are needed without providing input data; the run must finish within 300 seconds otherwise the HTTP request fails with a timeout error.

Action Parameters

actorId
stringRequired
build
string
maxItems
integer
maxTotalChargeUsd
number
memory
integer
outputRecordKey
string
timeout
integer
webhooks
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Actor Sync & Get Dataset Items (No Input)

Description

Tool to run Actor synchronously without input and get dataset items. Use when immediate access to Actor results is needed without providing input. The run must finish within 300 seconds otherwise the request times out.

Action Parameters

actorId
stringRequired
attachment
boolean
bom
boolean
build
string
clean
boolean
delimiter
string
desc
boolean
fields
string
flatten
string
format
stringDefaults to json
limit
integer
maxItems
integer
memory
integer
offset
integer
omit
string
simplified
boolean
skipEmpty
boolean
skipHeaderRow
boolean
skipHidden
boolean
timeout
integer
unwind
string
view
string
waitForFinish
integer
xmlRoot
string
xmlRow
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of Actors

Description

Tool to get the list of all Actors that the user created or used. Use when you need to enumerate or browse Actors. Add my=1 to get only user-created Actors.

Action Parameters

desc
boolean
limit
integerDefaults to 1000
my
boolean
offset
integer
sortBy
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Actor Version

Description

Tool to delete a specific version of an Actor's source code. Use when you need to remove an Actor version by actor ID and version number. Confirm before calling.

Action Parameters

actorId
stringRequired
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Actor Version Environment Variable

Description

Tool to delete an environment variable from a specific Actor version. Use when removing environment variables from Actor versions.

Action Parameters

actorId
stringRequired
envVarName
stringRequired
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor Version Environment Variable

Description

Tool to get environment variable details for a specific Actor version. Use when retrieving environment variable information from an Actor version. Returns name, value (if not secret), and secret status.

Action Parameters

actorId
stringRequired
envVarName
stringRequired
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Actor Version Environment Variable

Description

Tool to update environment variable for a specific Actor version using JSON payload. Only specified fields will be updated. Use when modifying existing environment variables in Actor versions.

Action Parameters

actorId
stringRequired
envVarName
stringRequired
isSecret
boolean
name
stringRequired
value
stringRequired
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of Actor version environment variables

Description

Tool to get the list of environment variables for a specific Actor version. Use when you need to retrieve environment variable configurations for an Actor version.

Action Parameters

actorId
stringRequired
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Actor Version Environment Variable

Description

Tool to create an environment variable for a specific Actor version. Use when adding new environment variables to Actor versions. Requires name and value parameters.

Action Parameters

actorId
stringRequired
isSecret
boolean
name
stringRequired
value
stringRequired
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor version

Description

Tool to get details about a specific version of an Actor. Use when you need version metadata including source type, build tag, and configuration details.

Action Parameters

actorId
stringRequired
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Actor Version

Description

Tool to update an Actor version's configuration and source code. Use when modifying version properties such as buildTag, sourceType, or environment variables. Only specified properties will be updated.

Action Parameters

actorId
stringRequired
applyEnvVarsToBuild
boolean
buildTag
string
envVars
array
gitHubGistUrl
string
gitRepoUrl
string
sourceFiles
array
sourceType
string
tarballUrl
string
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of Actor versions

Description

Tool to get the list of versions of a specific Actor. Use when you need to retrieve version metadata including source type, version number, and configuration details.

Action Parameters

actorId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Actor Version

Description

Tool to create a new version of an Actor. Use when you need to add a new version with specific source code location and configuration. Requires versionNumber and sourceType parameters, plus conditional parameters based on the sourceType.

Action Parameters

actorId
stringRequired
applyEnvVarsToBuild
boolean
buildTag
string
envVars
array
gitHubGistUrl
string
gitRepoUrl
string
sourceFiles
array
sourceType
stringRequired
tarballUrl
string
versionNumber
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of Actor webhooks

Description

Tool to get a list of webhooks for a specific Actor. Use when you need to review or manage webhooks configured for an Actor.

Action Parameters

actorId
stringRequired
desc
boolean
limit
integerDefaults to 1000
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Actor

Description

Tool to create a new Actor with specified configuration. Use when you need to initialize a fresh Actor programmatically before publishing or running it.

Action Parameters

categories
array
defaultRunOptions
object
description
string
isDeprecated
boolean
isPublic
boolean
name
stringRequired
title
string
versions
array

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Dataset

Description

Tool to create a new dataset. Use when you need to initialize or retrieve a dataset by name.

Action Parameters

name
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Actor Task

Description

Tool to create a new Actor task with specified settings. Use when you need to configure or schedule recurring Actor runs programmatically.

Action Parameters

actId
stringRequired
name
stringRequired
options
object

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Task Webhook

Description

Tool to create a webhook for an Actor task. Use when you need external notifications about task run events (e.g., completion or failure) in downstream systems.

Action Parameters

condition
objectRequired
description
string
eventTypes
arrayRequired
headersTemplate
string
idempotencyKey
string
isAdHoc
boolean
payloadTemplate
string
requestUrl
stringRequired
shouldInterpolateStrings
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Dataset

Description

Tool to delete a dataset permanently. Use when you need to remove a dataset by its ID or username~dataset-name. Confirm before calling.

Action Parameters

datasetId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Dataset

Description

Tool to retrieve dataset metadata by dataset ID. Use when you need information about a dataset's structure, item counts, or access URLs. This does not return dataset items themselves.

Action Parameters

datasetId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Dataset

Description

Tool to update a dataset's name via JSON payload. Use when you need to rename an existing dataset.

Action Parameters

datasetId
stringRequired
name
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of datasets

Description

Tool to get list of datasets for a user. Use when you need to enumerate or browse user's datasets. Supports pagination with up to 1000 items per page.

Action Parameters

desc
boolean
limit
integerDefaults to 1000
offset
integer
unnamed
boolean

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Dataset Statistics

Description

Tool to get dataset field statistics by dataset ID. Use when you need statistical information about dataset fields including min, max, null count, and empty count. Only provides field statistics when dataset schema is configured.

Action Parameters

datasetId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Actor

Description

Tool to delete an Actor permanently. Use when you need to remove an Actor by its ID or username~actorName. Confirm before calling.

Action Parameters

actorId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Webhook

Description

Tool to delete a webhook by its ID. Use when removing a webhook after confirming the webhook ID.

Action Parameters

webhookId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Actor Details

Description

Tool to get details of a specific Actor. Use when you need actor metadata by ID or username/actorName.

Action Parameters

actorId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get all webhooks

Description

Tool to get a list of all webhooks created by the user. Use when you need to enumerate webhooks before filtering or maintenance.

Action Parameters

desc
boolean
limit
integer
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get dataset items

Description

Tool to retrieve items from a dataset. Use when you need to fetch data from a specified dataset by pagination or filtering. Only JSON format is fully supported.

Action Parameters

asciiHeaders
boolean
attachment
boolean
bom
boolean
clean
boolean
datasetId
stringRequired
delimiter
string
desc
boolean
fields
string
flatten
boolean
format
stringDefaults to json
limit
integerDefaults to 1000
offset
integer
offsetKey
string
omit
string
skipEmpty
boolean
skipHidden
boolean
unwind
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Default Build

Description

Tool to get the default build for an Actor. Use after specifying the Actor ID; optionally wait for the build to finish before returning.

Action Parameters

actorId
stringRequired
waitForFinish
number

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Key-Value Record

Description

Tool to retrieve a record from a key-value store. Use when you need to fetch a specific value by key from an Apify Key-Value Store.

Action Parameters

attachment
boolean
disableRedirect
boolean
format
string
recordKey
stringRequired
storeId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of builds

Description

Tool to get a list of builds for a specific Actor. Use when you need paginated access to an Actor’s build (version) history.

Action Parameters

actorId
stringRequired
desc
boolean
limit
integer
offset
integer
status
string
unnamed
boolean
waitForFinish
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of runs

Description

Tool to get a list of runs for a specific Actor. Use when you need to paginate through runs and optionally filter by status before processing run data.

Action Parameters

actorId
stringRequired
desc
boolean
limit
integerDefaults to 1000
offset
integer
status
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of task runs

Description

Tool to get a list of runs for a specific Actor task. Use when you need to paginate through task runs and optionally filter by status.

Action Parameters

actorTaskId
stringRequired
desc
boolean
limit
integerDefaults to 1000
offset
integer
status
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of tasks

Description

Tool to fetch a paginated list of tasks belonging to the authenticated user. Use when you need to browse or sort tasks created by the user.

Action Parameters

desc
boolean
limit
integerDefaults to 1000
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of task webhooks

Description

Tool to get a list of webhooks for a specific Actor task. Use when you need to review or paginate webhooks after creating or updating a task.

Action Parameters

actorTaskId
stringRequired
desc
boolean
limit
integerDefaults to 1000
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get log

Description

Tool to retrieve logs for a specific Actor run or build. Use after initiating an actor run or build when you need to inspect execution logs.

Action Parameters

buildOrRunId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get OpenAPI Definition

Description

Tool to get the OpenAPI definition for a specific Actor build. Use when you need the API schema for code generation or analysis.

Action Parameters

actorId
stringRequired
buildId
stringRequired
token
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Task Input

Description

Tool to retrieve the input configuration of a specific task. Use when you need to inspect stored task input before execution or debugging.

Action Parameters

taskId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Key-Value Store

Description

Tool to delete a key-value store permanently. Use when you need to remove a key-value store by its ID. Confirm before calling.

Action Parameters

storeId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Key-Value Store

Description

Tool to retrieve key-value store metadata by store ID. Use when you need detailed information about a specific key-value store including stats and access URLs.

Action Parameters

storeId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Key-Value Store Keys

Description

Tool to retrieve a list of keys from a key-value store. Use when you need to list keys in a store with optional filtering and pagination support.

Action Parameters

collection
string
exclusiveStartKey
string
limit
integer
prefix
string
signature
string
storeId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Key-Value Store Record

Description

Tool to delete a record from a key-value store. Use when you need to remove a specific record by its key from an Apify Key-Value Store.

Action Parameters

recordKey
stringRequired
storeId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Check Key-Value Store Record Exists

Description

Tool to check if a record exists in a key-value store. Use when you need to verify whether a specific key exists in an Apify Key-Value Store without retrieving its content.

Action Parameters

recordKey
stringRequired
storeId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of key-value stores

Description

Tool to get the list of key-value stores owned by the user. Use when you need to enumerate or browse available stores. Supports pagination up to 1000 records per request.

Action Parameters

desc
boolean
limit
integer
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Key-Value Store

Description

Tool to create a new key-value store or retrieve an existing one by name. Use when you need to initialize a store for saving data records or files. If a store with the given name already exists, returns that store instead of creating a duplicate.

Action Parameters

name
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Request Queue

Description

Tool to delete a request queue permanently. Use when you need to remove a request queue by its ID.

Action Parameters

queueId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Request Queue

Description

Tool to retrieve request queue metadata by queue ID. Use when you need information about a specific request queue including its statistics and request counts.

Action Parameters

queueId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Request Queue Head

Description

Tool to retrieve first requests from the queue for inspection. Use when you need to examine pending requests without locking them.

Action Parameters

clientKey
string
limit
integer
queueId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Head and Lock Queue Requests

Description

Tool to get and lock head requests from the queue. Returns the given number of first requests from the queue and locks them for the given time, preventing other clients from accessing them during the lock period. Use when you need to process requests exclusively without concurrent access by other clients.

Action Parameters

clientKey
string
limit
integer
lockSecs
integerRequired
queueId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Request Queue

Description

Tool to update request queue name using JSON payload. Use when you need to rename an existing request queue.

Action Parameters

name
stringRequired
queueId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Request from Queue

Description

Tool to delete a specific request from a request queue. Use when you need to remove a request by its ID from an Apify request queue.

Action Parameters

queueId
stringRequired
requestId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Request from Queue

Description

Tool to retrieve a specific request from a request queue by its ID. Use when you need to get detailed information about a request in an Apify request queue.

Action Parameters

queueId
stringRequired
requestId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Request Lock

Description

Tool to delete a request lock from a request queue. Use when you need to unlock a previously locked request. Only the client that locked the request can delete its lock.

Action Parameters

clientKey
stringRequired
forefront
boolean
queueId
stringRequired
requestId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Prolong Request Lock

Description

Tool to prolong request lock in a request queue. Use when you need to extend the lock duration on a previously locked request. Only the client that locked the request can prolong its lock.

Action Parameters

clientKey
stringRequired
forefront
string
lockSecs
numberRequired
queueId
stringRequired
requestId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Request in Queue

Description

Tool to update a request in a request queue. Use when you need to modify request properties or mark a request as handled by setting handledAt to the current date/time. If handledAt is set, the request will be removed from the head of the queue and unlocked if applicable.

Action Parameters

clientKey
string
errorMessages
array
forefront
boolean
handledAt
string
headers
object
id
stringRequired
loadedUrl
string
method
string
noRetry
boolean
payload
string
queueId
stringRequired
requestId
stringRequired
retryCount
integer
uniqueKey
stringRequired
url
stringRequired
userData
object

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Batch Delete Requests from Queue

Description

Tool to batch-delete up to 25 requests from a queue. Use when you need to remove multiple requests efficiently. Failed requests due to rate limits should be retried with exponential backoff.

Action Parameters

queueId
stringRequired
requests
arrayRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Batch Add Requests to Queue

Description

Tool to batch-add up to 25 requests to a request queue. Use when you need to add multiple requests efficiently. Failed requests due to rate limits should be retried with exponential backoff.

Action Parameters

clientKey
string
forefront
boolean
queueId
stringRequired
requests
arrayRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: List Request Queue Requests

Description

Tool to list requests in a request queue with pagination support. Use when you need to retrieve multiple requests from an Apify request queue.

Action Parameters

exclusiveStartId
string
limit
integer
queueId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Add Request to Queue

Description

Tool to add a request to the queue. Use when you need to add a web page URL to a request queue for crawling. If a request with the same uniqueKey was already present in the queue, returns the ID of the existing request.

Action Parameters

clientKey
string
errorMessages
array
forefront
boolean
handledAt
string
headers
object
id
string
loadedUrl
string
method
string
noRetry
boolean
payload
string
queueId
stringRequired
retryCount
integer
uniqueKey
string
url
stringRequired
userData
object

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Unlock Queue Requests

Description

Tool to unlock requests in a request queue that are currently locked by the client. If the client is within an Actor run, unlocks all requests locked by that specific run plus all requests locked by the same clientKey. If the client is outside of an Actor run, unlocks all requests locked using the same clientKey.

Action Parameters

clientKey
string
queueId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of request queues

Description

Tool to get list of request queues for a user. Use when you need to enumerate or browse user's request queues. Supports pagination with up to 1000 items per page.

Action Parameters

desc
boolean
limit
integer
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Request Queue

Description

Tool to create a new request queue or retrieve an existing one by name. Use when you need to initialize a queue for storing and managing web scraping requests. If a queue with the given name already exists, returns that queue instead of creating a duplicate. Unnamed queues follow data retention period policies.

Action Parameters

name
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Resurrect Run

Description

Tool to resurrect a finished Actor run. Use when you need to restart a completed or failed run. Deprecated endpoint; may be removed in future.

Action Parameters

runId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Actor Asynchronously

Description

Tool to run a specific Actor asynchronously. Use when you need to trigger an Actor run without waiting for completion and retrieve its run details immediately.

Action Parameters

actorId
stringRequired
body
object
build
string
maxItems
number
maxTotalChargeUsd
number
memory
number
timeout
number
waitForFinish
number
webhooks
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Actor Sync

Description

Tool to run a specific Actor synchronously with input and return its output record. Use when immediate Actor results are needed; runs may timeout after 300 seconds.

Action Parameters

actorId
stringRequired
build
string
input
objectRequired
maxItems
integer
maxTotalChargeUsd
number
memory
integer
outputRecordKey
string
timeout
number
webhooks
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Actor Sync & Get Dataset Items

Description

Tool to run an Actor synchronously and retrieve its dataset items. Use when immediate access to run results is needed.

Action Parameters

actorId
stringRequired
format
stringDefaults to json
input
object
limit
integerDefaults to 100
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Run Task Asynchronously

Description

Tool to run a specific Actor task asynchronously. Use when you need to trigger a task run without waiting for completion and immediately retrieve its run details.

Action Parameters

actorTaskId
stringRequired
body
object
build
string
maxItems
number
maxTotalChargeUsd
number
memory
number
timeout
number
waitForFinish
number
webhooks
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Delete Schedule

Description

Tool to delete a schedule by its ID. Use when you need to remove a schedule from the Apify system.

Action Parameters

scheduleId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Schedule

Description

Tool to get schedule details by ID. Use when you need to retrieve comprehensive information about a schedule including cron expression, timezone, actions, and execution times.

Action Parameters

scheduleId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Schedule Log

Description

Tool to get schedule log by ID. Use when you need to retrieve execution history for a schedule, including invocation timestamps and status messages. Returns up to 1000 invocations.

Action Parameters

scheduleId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Schedule

Description

Tool to update an existing schedule with new settings. Use when you need to modify schedule properties like cron expression, timezone, enabled status, or actions. Only specified fields are updated; others remain unchanged.

Action Parameters

actions
array
cronExpression
string
description
string
isEnabled
boolean
isExclusive
boolean
name
string
notifications
object
scheduleId
stringRequired
timezone
string
title
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of schedules

Description

Tool to get list of schedules created by the user. Use when you need to browse or enumerate user's schedules. Supports pagination with up to 1000 items per page.

Action Parameters

desc
integer
limit
integerDefaults to 1000
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Create Schedule

Description

Tool to create a new schedule with specified settings. Use when you need to automate Actor or Actor task execution at specific times using cron expressions.

Action Parameters

actions
array
cronExpression
stringRequired
description
string
isEnabled
booleanRequired
isExclusive
booleanRequired
name
string
notifications
object
timezone
string
title
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Store Data in Dataset

Description

Tool to store data items in a dataset. Use after collecting data when you want to batch-append or update items in an existing dataset.

Action Parameters

data
arrayRequired
datasetId
stringRequired
deduplicate
boolean
fields
string
omit
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Store Data in Key-Value Store

Description

Tool to create or update a record in a key-value store. Use after you have the store ID and record key to persist JSON data.

Action Parameters

recordKey
stringRequired
recordValue
objectRequired
storeId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of Actors in Store

Description

Tool to get list of public Actors from Apify Store. Use when you need to browse or search public Actors available in the store. Supports searching by title, name, description, username, and readme.

Action Parameters

limit
integerDefaults to 10
offset
integer
search
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Key-Value Store

Description

Tool to update a key-value store's properties. Use when renaming or changing access or schema version of the store after confirming the store ID.

Action Parameters

access
string
name
string
schemaVersion
integer
storeId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Task Input

Description

Tool to update the input configuration of a specific Actor task. Use when you need to modify a scheduled tasks input before execution.

Action Parameters

input
objectRequired
taskId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Public User Data

Description

Tool to get public user data. Use when you need to retrieve publicly accessible information about a specific Apify user account, similar to what can be seen on public profile pages. This operation requires no authentication token.

Action Parameters

userId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Current User Account Data

Description

Tool to get private user account information. Use when you need to retrieve comprehensive data about the current user identified by the authentication token, including profile, subscription plan, and proxy settings. Note: 'plan', 'email', and 'profile' fields are omitted when accessed from Actor run.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Account Limits

Description

Tool to get a complete summary of account limits and usage. Use when you need to retrieve information about usage cycles, spending caps, compute resources, data transfer quotas, and other account limits. This shows the same information as the Limits page in Apify console.

Action Parameters

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Account Limits

Description

Tool to update account limits manageable on the Limits page. Use when you need to set or modify the monthly spending cap (maxMonthlyUsageUsd) or data retention period (dataRetentionDays). At least one limit parameter must be provided.

Action Parameters

dataRetentionDays
integer
maxMonthlyUsageUsd
number

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Monthly Usage

Description

Tool to get monthly usage summary with daily breakdown. Use when you need detailed usage information including storage, data transfer, and request queue metrics for the current or a specific billing cycle. This shows the same information as the Billing page in Apify console.

Action Parameters

date
string

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get list of webhook dispatches

Description

Tool to get list of webhook dispatches for the user. Use when you need to retrieve webhook execution history with pagination support.

Action Parameters

desc
boolean
limit
integerDefaults to 1000
offset
integer

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get Webhook Dispatch

Description

Tool to get webhook dispatch object with all details. Use when you need to retrieve information about a specific webhook dispatch including its status, event data, and call history.

Action Parameters

dispatchId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get webhook

Description

Tool to get webhook object with all details. Use when you need to retrieve complete information about a specific webhook by its ID.

Action Parameters

webhookId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Update Webhook

Description

Tool to update webhook using JSON payload. Only specified properties are updated; others remain unchanged. Use when you need to modify webhook settings like event types, target URL, or other configuration.

Action Parameters

condition
object
description
string
doNotRetry
boolean
eventTypes
array
headersTemplate
string
ignoreSslErrors
boolean
isAdHoc
boolean
payloadTemplate
string
requestUrl
string
shouldInterpolateStrings
boolean
webhookId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Test Webhook

Description

Tool to test a webhook by creating a test dispatch with a dummy payload. Use when you need to verify webhook configuration before production use.

Action Parameters

webhookId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired

Tool Name: Get webhook dispatches

Description

Tool to get list of webhook dispatches for a specific webhook. Use when you need to retrieve dispatch history for a particular webhook with pagination support.

Action Parameters

desc
boolean
limit
integerDefaults to 1000
offset
integer
webhookId
stringRequired

Action Response

data
objectRequired
error
string
successful
booleanRequired