Skip to content

Apify

Apify

Apify is a platform for building, deploying, and managing web scraping and automation tools known as Actors. With the Apify integration in SquadOS, your agents can run any public Actor from the Apify Store, store and retrieve data from datasets and key-value stores, manage scheduled tasks, and automate complete data collection and processing workflows on the web.

This tool uses an API key (API_KEY) to connect.

You will need the following fields:

FieldRequiredDescription
api_keyYesAPI token from your Apify account, used to authenticate all requests.
  1. Go to apify.com and log in (or create a free account).
  2. Click your avatar in the top-right corner and go to Settings.
  3. In the sidebar, select Integrations (or API & Integrations).
  4. Find the Personal API tokens section and click + Create new token.
  5. Give the token a name (e.g., squados) and copy the generated value.
  1. Go to Tools in the side menu (/admin/tools).
  2. Open the Available tab and search for Apify.
  3. Click the card to open the details modal and hit Connect.
  4. You’re taken to the secure connection page hosted by Composio, where you enter the API key obtained above.
  5. Once done, you’re sent back to SquadOS with the account connected and the tool available for your agents. (Connection-flow details in Organization Tools.)

APIFY_RUN_ACTOR

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.

NameTypeRequiredDescription
actorIdstringYesActor ID or <username>~<actorName> (tilde) or <username>/<actorName> (forward slash), e.g., apify~hello-world.
bodyobjectNoJSON input object passed to the Actor. Each Actor has its own input schema — check the documentation on Apify Store.
buildstringNoTag or build number of the Actor build to run.
memorynumberNoMemory limit for the run in megabytes. Must be power of 2, minimum 128.
timeoutnumberNoTimeout for the run in seconds.
maxItemsnumberNoMaximum number of items that the Actor run should return.
waitForFinishnumberNoMax seconds the server waits for the run to finish. Default: 0, max: 60.
maxTotalChargeUsdnumberNoSpecifies the maximum cost of the Actor run in USD.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_RUN_ACTOR_SYNC

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. To avoid timeouts, scope inputs to specific URLs rather than broad crawls and request only necessary fields.

NameTypeRequiredDescription
actorIdstringYesActor ID or a tilde-separated owner and actor name (e.g., user~actor-name).
inputobjectYesJSON object passed as input to the Actor run.
buildstringNoBuild tag or number to run (default Actor’s default build, usually latest).
memoryintegerNoMemory limit in MB; power of two, minimum 128.
timeoutnumberNoRun timeout in seconds. HTTP wait max 300s.
maxItemsintegerNoMaximum number of dataset items to return.
outputRecordKeystringNoKey of the record in the default key-value store to return (default OUTPUT).
maxTotalChargeUsdnumberNoMaximum total charge in USD for the run. For pay-per-result actors, required and minimum $1.00.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_RUN_ACTOR_SYNC_GET_DATASET_ITEMS

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

NameTypeRequiredDescription
actorIdstringYesActor ID or name in format username/actor-name or username~actor-name. The actor must exist on Apify Store.
inputobjectNoJSON input object passed to the Actor run. Check the exact input schema for the Actor before calling.
buildstringNoTag or number of the Actor build to run (e.g., beta or 1.2.345).
memoryintegerNoMemory limit for the Actor run in megabytes.
timeoutintegerNoTimeout for the Actor run in seconds. Zero means no timeout.
formatstringNoResponse format. Default: json.
limitintegerNoMaximum number of items to return.
offsetintegerNoNumber of items to skip from the start.
maxItemsintegerNoMaximum number of dataset items charged for pay-per-result Actors.
waitForFinishintegerNoMaximum time in seconds the server waits for the run to finish (0-300).
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_GET_ACTOR_LAST_RUN_DATASET_ITEMS

Tool to get dataset items from the last run of an Actor. Use when you need to retrieve output data from the most recent Actor execution, optionally filtered by run status (e.g., status='SUCCEEDED').

NameTypeRequiredDescription
actorIdstringYesActor ID or tilde-separated owner’s username and Actor name (e.g., janedoe~my-actor).
statusstringNoFilter to return dataset items only from runs with a specific status (READY, RUNNING, SUCCEEDED, FAILED, TIMED-OUT, ABORTED).
formatstringNoOutput format for the dataset items. Default is JSON.
limitintegerNoMaximum number of items to return. API has a limit of 250,000 items per request.
offsetintegerNoNumber of items to skip from the start (pagination). Default is 0.
cleanbooleanNoShortcut for skipHidden=true and skipEmpty=true. Removes Apify-specific metadata and empty items.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_GET_RUN_DATASET_ITEMS

Tool to get dataset items from a specific Actor run. Use when you need to retrieve the output data from a completed or running Actor run.

NameTypeRequiredDescription
runIdstringYesThe unique identifier of the Actor run to retrieve dataset items from.
formatstringNoOutput format for the dataset items. Default is JSON.
limitintegerNoMaximum number of items to return.
offsetintegerNoNumber of items to skip from the start (pagination). Default is 0.
cleanbooleanNoWhen true, removes any Apify-specific metadata from items.
descbooleanNoIf true, returns items in reverse order (newest to oldest).
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_GET_DATASET_ITEMS

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. For datasets larger than 1000 items, issue multiple calls incrementing offset by limit until the response returns fewer items than limit.

NameTypeRequiredDescription
datasetIdstringYesIdentifier of the dataset to retrieve items from (e.g., username/datasetName or dataset ID).
formatstringNoOutput format of dataset items. Only json is fully supported.
limitintegerNoMaximum number of items to return (pagination). Default and max is 1000.
offsetintegerNoNumber of items to skip (pagination). Default is 0.
cleanbooleanNoWhen true, removes any Apify-specific metadata from items.
descbooleanNoIf true, return items in reverse order.
fieldsstringNoComma-separated list of fields to include in the returned items.
omitstringNoComma-separated list of fields to exclude from the returned items.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_STORE_DATA_IN_DATASET

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.

NameTypeRequiredDescription
datasetIdstringYesDataset ID or name (e.g., username/datasetName or dataset ID).
dataarrayYesArray of JSON-serializable objects to store in the dataset.
omitstringNoComma-separated list of fields to exclude when storing items.
fieldsstringNoComma-separated list of fields to include when storing items.
deduplicatebooleanNoIf true, deduplicate incoming items by their foreignId.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_CREATE_DATASET

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

NameTypeRequiredDescription
namestringNoCustom unique name for the dataset (1-63 characters). Must contain only lowercase letters (a-z), digits (0-9), and hyphens (-). Hyphens can only appear in the middle. If omitted, a random name is generated.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_GET_KEY_VALUE_RECORD

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.

NameTypeRequiredDescription
storeIdstringYesID of the key-value store.
recordKeystringYesKey of the record to retrieve.
formatstringNoDesired format of the retrieved record (json, xml, html, text).
disableRedirectbooleanNoIf true, do not redirect to the raw value; return metadata only.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_STORE_DATA_IN_KEY_VALUE_STORE

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.

NameTypeRequiredDescription
storeIdstringYesID of the key-value store where the record will be stored.
recordKeystringYesKey under which the record will be stored or updated.
recordValueobjectYesThe JSON object to store. Must be JSON-serializable.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_KEY_VALUE_STORE_KEYS_GET

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.

NameTypeRequiredDescription
storeIdstringYesKey-value store ID or username~store-name.
limitintegerNoNumber of keys to return. Maximum value is 1000.
prefixstringNoLimits results to keys starting with the specified prefix.
exclusiveStartKeystringNoAll keys up to this one (including) are skipped from the result. Used for pagination.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_GET_ACTOR

Tool to get details of a specific Actor. Use when you need actor metadata by ID or username/actorName. Response includes isDeprecated and notice fields indicating deprecation status, and pricingInfos for per-unit cost details — review both before scheduling runs.

NameTypeRequiredDescription
actorIdstringYesActor ID as either username and actor name separated by tilde (~) or forward slash (/), e.g., apify~web-scraper or apify/web-scraper, or 24-character hexadecimal ID.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_ACTS_GET

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.

NameTypeRequiredDescription
mybooleanNoIf true or 1, returns only Actors owned by the user. Default is false.
descbooleanNoIf true or 1, sorts objects by createdAt field in descending order. Default is false (ascending).
limitintegerNoMaximum number of records to return (pagination). Default and max is 1000.
offsetintegerNoNumber of records to skip at the start (pagination). Default is 0.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_STORE_GET

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.

NameTypeRequiredDescription
searchstringNoSearch string to filter Actors by title, name, description, username, and readme. Example: web scraper.
limitintegerNoMaximum number of Actors to return (pagination). Default is 10, maximum is 1000.
offsetintegerNoNumber of Actors to skip at the start (pagination). Default is 0.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_CREATE_ACTOR

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

NameTypeRequiredDescription
namestringYesUnique name for the new actor (must be 1-63 characters, lowercase letters, digits, and dashes).
titlestringNoHuman-readable title for the actor.
descriptionstringNoDetailed description of what the actor does.
isPublicbooleanNoWhether the actor should be publicly visible on Apify Store. Cannot be true on actor creation — actors must be created as private, then built and published later.
versionsarrayNoInitial actor versions definition.
categoriesarrayNoList of category IDs to which this actor belongs.
defaultRunOptionsobjectNoDefault execution options for running the Actor.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_ACT_BUILDS_POST

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.

NameTypeRequiredDescription
actorIdstringYesActor ID or a tilde-separated owner’s username and Actor name (e.g., janedoe~my-actor).
tagstringNoOptional version tag specification for the build.
versionNumberstringNoActor version to build (e.g., 0.1). If not provided, the latest version is used.
useCachebooleanNoIf true, uses cached layers from previous builds. Default: true.
waitForFinishintegerNoOptional timeout value (in seconds) to wait for build completion before returning response. Max 300 seconds.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_ACTOR_RUN_GET

Tool to get details about a specific Actor run including its execution status, resource usage, storage IDs, and metadata.

NameTypeRequiredDescription
runIdstringYesThe unique identifier of the Actor run to retrieve.
waitForFinishintegerNoMaximum seconds to wait for run completion before returning response. Range: 0-60.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_ACTOR_RUN_ABORT_POST

Tool to abort a running or starting Actor run. For runs with status FINISHED, FAILED, ABORTING, and TIMED-OUT this call does nothing.

NameTypeRequiredDescription
runIdstringYesThe unique identifier of the Actor run to abort.
gracefulAbortbooleanNoIf true, the Actor run will abort gracefully. It will send aborting and persistStates events into the run and force-stop the run after 30 seconds. This is helpful when you plan to resurrect the run later. Default: false.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_GET_LIST_OF_RUNS

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.

NameTypeRequiredDescription
actorIdstringYesActor ID (e.g., HG7ML7M8z78YcAPEB) or a tilde-separated owner username and Actor name (e.g., janedoe~my-actor).
statusstringNoFilter runs by this lifecycle status (READY, RUNNING, SUCCEEDED, FAILED, TIMED-OUT, ABORTED).
descbooleanNoIf true, sort by startedAt descending. Default is ascending.
limitintegerNoMaximum number of runs to return (pagination). Default and max is 1000.
offsetintegerNoNumber of runs to skip at the start (pagination). Default is 0.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_CREATE_TASK

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

NameTypeRequiredDescription
namestringYesName of the task. Must contain only lowercase letters (a-z), digits (0-9), and hyphens (only in the middle).
actIdstringYesID or username~actorName of the Actor to attach the task to.
inputobjectNoInput configuration for the task. Keys must exactly match the target Actor’s input schema.
titlestringNoDisplay title for the task.
optionsobjectNoTask execution options such as memoryMbytes, timeoutSecs, build.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_RUN_TASK

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.

NameTypeRequiredDescription
actorTaskIdstringYesTask ID (e.g., HG7ML7M8z78YcAPEB) or tilde-separated owner username and task name (e.g., janedoe~my-task). Note: Use tilde (~) as separator, not slash (/).
bodyobjectNoJSON input object passed to the Actor.
buildstringNoSpecifies the Actor build to run (tag or build number).
memorynumberNoMemory limit for the run, in megabytes. Must be power of 2 and at least 128.
timeoutnumberNoOptional timeout for the run, in seconds.
waitForFinishnumberNoMax seconds the server waits for the run to finish. Default 0, max 60.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_SCHEDULES_POST

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.

NameTypeRequiredDescription
isEnabledbooleanYesTrue if the schedule should be enabled.
isExclusivebooleanYesWhen set to true, don’t start Actor or Actor task if it’s still running from the previous schedule.
cronExpressionstringYesThe cron expression used by this schedule (e.g., @monthly, @daily, 0 0 * * *).
namestringNoThe schedule’s name (should be 3-63 characters long).
titlestringNoA human-friendly display title for the schedule.
actionsarrayNoActors or tasks that should be run on this schedule.
timezonestringNoTimezone in which your cron expression runs (TZ database name format, e.g., UTC, America/New_York). Defaults to UTC.
NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_USERS_ME_GET

Tool to get private user account information including profile, subscription plan, and proxy settings. Note: plan, email, and profile fields are omitted when accessed from Actor run.

NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_USERS_ME_LIMITS_GET

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.

NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not

APIFY_USERS_ME_USAGE_MONTHLY_GET

Tool to get the monthly usage of the account. Use when you need to check consumption statistics for the current period.

NameTypeRequiredDescription
datastringYesData from the action execution
errorstringNoError if any occurred during the execution of the action
successfulbooleanYesWhether or not the action execution was successful or not