Apify
App · AI Agents · 27 actions
Run Apify's web scrapers and automations from a workflow: start an Actor or a saved task with your input, wait for it, and get its results; read and fill datasets and key-value stores; and manage your Actors, tasks and runs.
Actions
| Action | What it does |
|---|---|
| Abort run | Stop an Apify run that is starting or running. |
| Add items to dataset | Add one item or a list of items to the end of an Apify dataset. |
| Create Actor | Create a new private Apify Actor. |
| Create dataset | Create a named Apify dataset to collect items in, or get the one that already has that name. |
| Create task | Save an Apify Actor with its input and run options as a task, so it can be run again by name. |
| Delete Actor | Permanently delete an Apify Actor, along with its versions and builds. |
| Delete dataset | Permanently delete an Apify dataset and every item in it. |
| Delete task | Permanently delete a saved Apify task. |
| Get account | Get the Apify account the token belongs to, its plan, and this billing month's spending and compute units against the plan's limits. |
| Get Actor | Get the full details of a single Apify Actor, including its versions, default run options, and run statistics. |
| Get dataset items | Get a page of the items in an Apify dataset, such as a run's results, with the dataset's total so later pages can be read. |
| Get last run | Get the most recent run of an Apify Actor or saved task, optionally the last one with a given status, such as the last that succeeded. |
| Get record | Get the value of a record in an Apify key-value store, such as the OUTPUT a run saved. |
| Get run | Get an Apify run's status, timing, cost and the IDs of its dataset and key-value store, optionally waiting up to a minute for it to finish. |
| List Actors | List the Apify Actors (web scrapers and automations) you created or used, with optional sorting and paging. |
| List datasets | List the datasets in your Apify account, where Actors keep their results as rows. |
| List key-value stores | List the key-value stores in your Apify account, where runs keep their input, output and files. |
| List record keys | List the keys of the records in an Apify key-value store, such as a run's INPUT, OUTPUT and screenshots, with each record's size. |
| List runs | List the runs of one Actor, one saved task, or your whole account, newest first, filtered by status and start time. |
| List tasks | List your saved Apify tasks: Actors set up with their own input and options, ready to run. |
| Run Actor | Start a run of an Apify Actor with the input you give, and get the run back. |
| Run Actor and get results | Run an Apify Actor, wait for it to succeed (up to 15 minutes), and get the results it saved to its dataset. |
| Run task | Start a run of a saved Apify task, optionally changing some of its input, and get the run back. |
| Run task and get results | Run a saved Apify task, wait for it to succeed (up to 15 minutes), and get the results it saved to its dataset. |
| Save record | Save a value under a key in an Apify key-value store, replacing any value already there. |
| Update Actor | Update an Apify Actor's settings. |
| Wait for run | Wait for an Apify run to finish, up to 15 minutes, and get how it ended. |
Abort run
Stop an Apify run that is starting or running. A run that has already finished is left as it is.
Inputs
- Run ID
run_idtextRequired - The run's ID, from 'Run Actor', 'List runs' or an earlier step.
- Let it save first
gracefullytrue/false - Give the run 30 seconds to save its state before it is stopped, so it can be resumed later.
Outputs
actor_idtext- The ID of the Actor that ran.
build_idtext- The ID of the build that ran.
build_numbertext- The number of the build that ran, such as 0.0.12.
compute_unitsnumber- The compute units the run has used.
default_dataset_idtext- The run's default dataset, where most Actors put their results.
default_key_value_store_idtext- The run's default key-value store, holding its INPUT and any OUTPUT.
default_request_queue_idtext- The run's default request queue.
exit_codenumber- The exit code of the run's process, once it has one.
finished_attext- When the run finished (ISO 8601), or blank while it runs.
idtext- The run's ID.
is_finishedtrue/false- True once the run has succeeded, failed, timed out or stopped.
memory_mbytesnumber- The memory the run was given, in megabytes.
origintext- How the run was started, such as API, WEB or SCHEDULER.
run_time_secsnumber- How long the run has run, in seconds.
started_attext- When the run started (ISO 8601).
statustext- READY, RUNNING, SUCCEEDED, FAILED, TIMING-OUT, TIMED-OUT, ABORTING or ABORTED.
status_messagetext- The run's latest status message, or blank.
task_idtext- The ID of the task it was started from, or blank.
timeout_secsnumber- The run's time limit in seconds (0 for none).
urltext- The run's page in Apify Console.
usage_total_usdnumber- What the run has cost so far, in US dollars.
Example output
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
}Add items to dataset
Add one item or a list of items to the end of an Apify dataset. Up to 5 MB at a time.
Inputs
- Dataset ID
dataset_idtextRequired - The dataset's ID, such as a run's default dataset ID, or a username~name for a named dataset.
- Items
itemslistRequired - The items, as a list of JSON objects such as [{"name": "Ada"}, {"name": "Grace"}], or one object.
Outputs
dataset_idtext- The dataset the items were added to.
pushed_countnumber- How many were added.
Example output
{
"dataset_id": "WkzbQMuFYuamGv3YF",
"pushed_count": 2
}Create Actor
Create a new private Apify Actor. Every Actor needs source code, so you can supply a script, point it at a Git repository, or leave both empty to start from a placeholder script you can edit in Apify Console.
Inputs
- Name
nametextRequired - Identifier for the Actor, using lowercase letters, numbers, and hyphens (for example, instagram-scraper). Must be unique in your account.
- Title
titletext - Human-readable name shown in Apify Store and Console (for example, Instagram Scraper).
- Description
descriptiontext - Short description of what the Actor does.
- Version number
version_numbertext - Version to create, as MAJOR.MINOR with each part between 0 and 99. Defaults to 0.0.
- Source code
source_codetext - JavaScript source saved as the Actor's src/main.js. Cannot be combined with a Git repository URL.
- Git repository URL
git_repo_urltext - Clone the Actor's source from this Git repository instead of supplying code. Cannot be combined with source code.
Outputs
categorieslist- The Apify Store categories the Actor is filed under.
created_attext- When the Actor was created (ISO 8601).
default_run_optionsobject- The options a run uses unless it is given others.
descriptiontext- The Actor's short description.
idtext- The Actor's ID.
is_deprecatedtrue/false- Whether the Actor is marked as deprecated.
is_publictrue/false- Whether the Actor is published in Apify Store.
modified_attext- When the Actor was last changed (ISO 8601).
nametext- The Actor's name, unique in its owner's account.
statsobject- Usage counts for the Actor.
titletext- The Actor's display name.
urltext- The Actor's page in Apify Console.
usernametext- The username of the Actor's owner.
versionslist- The Actor's source versions.
Example output
{
"categories": [
"DEVELOPER_TOOLS"
],
"created_at": "2024-07-08T11:27:57.401Z",
"default_run_options": {
"build": "latest",
"memory_mbytes": 2048,
"timeout_secs": 3600
},
"description": "My favorite Actor!",
"id": "zdc3Pyhyz3m8vjDeM",
"is_deprecated": false,
"is_public": false,
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "my-actor",
"stats": {
"last_run_started_at": "2024-07-08T14:01:05.546Z",
"total_builds": 9,
"total_runs": 16,
"total_users": 6
},
"title": "My Actor",
"url": "https://console.apify.com/actors/jane35~my-actor",
"username": "jane35",
"versions": [
"0.0"
]
}Create dataset
Create a named Apify dataset to collect items in, or get the one that already has that name. Named datasets are kept until deleted.
Inputs
- Name
nametext - The dataset's name: letters, numbers and hyphens, such as lead-list. Left empty, an unnamed dataset is made, which Apify deletes after its data retention period.
Outputs
accessed_attext- When it was last read or written (ISO 8601).
actor_idtext- The ID of the Actor whose run made it, or blank.
clean_item_countnumber- How many of those are neither empty nor hidden.
createdtrue/false- False when a dataset of that name already existed.
created_attext- When it was created (ISO 8601).
idtext- Its ID.
item_countnumber- How many items it holds.
modified_attext- When it was last changed (ISO 8601).
nametext- Its name, or blank for an unnamed one.
run_idtext- The ID of the run that made it, or blank.
urltext- The dataset's page in Apify Console.
Example output
{
"accessed_at": "2024-07-08T14:01:05.546Z",
"actor_id": "",
"clean_item_count": 0,
"created": true,
"created_at": "2024-07-08T11:27:57.401Z",
"id": "WkzbQMuFYuamGv3YF",
"item_count": 0,
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "lodol-results",
"run_id": "",
"url": "https://console.apify.com/storage/datasets/WkzbQMuFYuamGv3YF"
}Create task
Save an Apify Actor with its input and run options as a task, so it can be run again by name.
Inputs
- Actor
actor_idtextRequired - The Actor. Pick one, or give its ID or its owner and name joined by a tilde, such as apify~website-content-crawler.
- Name
nametextRequired - The task's name: lowercase letters, numbers and hyphens, unique in your account, such as weekly-price-check.
- Title
titletext - A display name for the task, such as Weekly price check.
- Input
inputobject - The input the task gives the Actor, as JSON, as the Actor's Input tab in Apify Console shows it.
- Build
buildtext - The build to run: a tag such as latest or beta, or a build number. Defaults to the Actor's own setting.
- Memory (MB)
memory_mbytesnumber - The memory the run gets, a power of 2 from 128 to 32768, such as 1024. Defaults to the Actor's own setting. More memory costs more.From 128 to 32768.
- Time limit (seconds)
timeout_secsnumber - Stop the run after this many seconds, 0 for no limit. Defaults to the Actor's own setting.At least 0.
Outputs
actor_idtext- The ID of the Actor the task runs.
buildtext- The build the task runs, or blank for the Actor's default.
created_attext- When the task was created (ISO 8601).
idtext- The task's ID.
inputobject- The input the task gives its Actor.
memory_mbytesnumber- The memory the task's runs get, if it sets it.
modified_attext- When the task was last changed (ISO 8601).
nametext- The task's name, unique in the account.
timeout_secsnumber- The task's run time limit in seconds, if it sets one.
titletext- The task's display name, or blank.
urltext- The task's page in Apify Console.
usernametext- The username of the task's owner.
Example output
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"build": "latest",
"created_at": "2024-07-08T11:27:57.401Z",
"id": "zdc3Pyhyz3m8vjDeN",
"input": {
"message": "Hello from Lodol"
},
"memory_mbytes": 256,
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "my-task",
"timeout_secs": 300,
"title": "My task",
"url": "https://console.apify.com/actors/tasks/zdc3Pyhyz3m8vjDeN",
"username": "jane35"
}Delete Actor
Permanently delete an Apify Actor, along with its versions and builds. This cannot be undone.
Inputs
- Actor
actor_idtextRequired - The Actor. Pick one, or give its ID or its owner and name joined by a tilde, such as apify~website-content-crawler.
Outputs
actor_idtext- The deleted Actor's ID.
deletedtrue/false- True once the Actor is deleted.
Example output
{
"actor_id": "zdc3Pyhyz3m8vjDeM",
"deleted": true
}Delete dataset
Permanently delete an Apify dataset and every item in it.
Inputs
- Dataset ID
dataset_idtextRequired - The dataset's ID, such as a run's default dataset ID, or a username~name for a named dataset.
Outputs
dataset_idtext- The deleted dataset's ID.
deletedtrue/false- True once the dataset is deleted.
Example output
{
"dataset_id": "WkzbQMuFYuamGv3YF",
"deleted": true
}Delete task
Permanently delete a saved Apify task. Its past runs and their results stay.
Inputs
- Task
task_idtextRequired - The saved task. Pick one, or give its ID from an earlier step.
Outputs
deletedtrue/false- True once the task is deleted.
task_idtext- The deleted task's ID.
Example output
{
"deleted": true,
"task_id": "zdc3Pyhyz3m8vjDeN"
}Get account
Get the Apify account the token belongs to, its plan, and this billing month's spending and compute units against the plan's limits.
Inputs
None.
Outputs
created_attext- When the account was created (ISO 8601).
emailtext- The account's email address.
idtext- The account's user ID.
is_payingtrue/false- Whether the account is on a paid plan.
nametext- The name on the account's profile.
plan_descriptiontext- The plan's name as Apify shows it.
plan_idtext- The account's plan, such as FREE or STARTER.
usageobject- This billing month's usage against the plan's limits.
usernametext- The account's username.
Example output
{
"created_at": "2022-11-29T14:48:29.381Z",
"email": "jane@example.com",
"id": "wRsJZtadYvn4mBZmm",
"is_paying": false,
"name": "Jane Doe",
"plan_description": "Free",
"plan_id": "FREE",
"usage": {
"active_runs": 0,
"cycle_end_at": "2024-07-31T23:59:59.999Z",
"cycle_start_at": "2024-07-01T00:00:00.000Z",
"max_concurrent_runs": 25,
"max_monthly_compute_units": 12.5,
"max_monthly_usage_usd": 5,
"monthly_compute_units": 3.1,
"monthly_usage_usd": 1.25
},
"username": "jane35"
}Get Actor
Get the full details of a single Apify Actor, including its versions, default run options, and run statistics.
Inputs
- Actor
actor_idtextRequired - The Actor. Pick one, or give its ID or its owner and name joined by a tilde, such as apify~website-content-crawler.
Outputs
categorieslist- The Apify Store categories the Actor is filed under.
created_attext- When the Actor was created (ISO 8601).
default_run_optionsobject- The options a run uses unless it is given others.
descriptiontext- The Actor's short description.
idtext- The Actor's ID.
is_deprecatedtrue/false- Whether the Actor is marked as deprecated.
is_publictrue/false- Whether the Actor is published in Apify Store.
modified_attext- When the Actor was last changed (ISO 8601).
nametext- The Actor's name, unique in its owner's account.
statsobject- Usage counts for the Actor.
titletext- The Actor's display name.
urltext- The Actor's page in Apify Console.
usernametext- The username of the Actor's owner.
versionslist- The Actor's source versions.
Example output
{
"categories": [
"DEVELOPER_TOOLS"
],
"created_at": "2024-07-08T11:27:57.401Z",
"default_run_options": {
"build": "latest",
"memory_mbytes": 2048,
"timeout_secs": 3600
},
"description": "My favorite Actor!",
"id": "zdc3Pyhyz3m8vjDeM",
"is_deprecated": false,
"is_public": false,
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "my-actor",
"stats": {
"last_run_started_at": "2024-07-08T14:01:05.546Z",
"total_builds": 9,
"total_runs": 16,
"total_users": 6
},
"title": "My Actor",
"url": "https://console.apify.com/actors/jane35~my-actor",
"username": "jane35",
"versions": [
"0.0"
]
}Get dataset items
Get a page of the items in an Apify dataset, such as a run's results, with the dataset's total so later pages can be read.
Inputs
- Dataset ID
dataset_idtextRequired - The dataset's ID, such as a run's default dataset ID, or a username~name for a named dataset.
- Skip
offsetnumber - How many to skip from the start, to read the next page.At least 0.
- Page size
limitnumber - How many items to return, 1 to 1,000. Defaults to 100.From 1 to 1000.
- Only these fields
fieldstext - Keep only these fields of each result, separated by commas, such as url,title. Every field is kept otherwise.
- Leave out these fields
omittext - Fields to drop from each item, separated by commas.
- Skip empty and hidden
cleantrue/false - Leave out empty results, and fields whose names start with #, which Actors use for their own bookkeeping.
- Newest first
desctrue/false - Start from the last item saved. The first comes first otherwise.
Outputs
countnumber- How many items were read.
dataset_idtext- The dataset read.
itemslist- The items, as they were saved.
limitnumber- The most items this page could hold.
offsetnumber- How many items were skipped first.
totalnumber- How many items the dataset holds in all.
Example output
{
"count": 2,
"dataset_id": "WkzbQMuFYuamGv3YF",
"items": [
{
"title": "Example Domain",
"url": "https://example.com"
},
{
"title": "Example Domain",
"url": "https://example.org"
}
],
"limit": 100,
"offset": 0,
"total": 2
}Get last run
Get the most recent run of an Apify Actor or saved task, optionally the last one with a given status, such as the last that succeeded.
Inputs
- Actor
actor_idtext - The Actor. Give this or a task.
- Task
task_idtext - The saved task. Give this or an Actor.
- Status
statustext - The last run in this state. The last run of any state otherwise.One of:
READY(Ready (starting)),RUNNING,SUCCEEDED,FAILED,TIMING-OUT(Timing out),TIMED-OUT(Timed out),ABORTING,ABORTED.
Outputs
actor_idtext- The ID of the Actor that ran.
build_idtext- The ID of the build that ran.
build_numbertext- The number of the build that ran, such as 0.0.12.
compute_unitsnumber- The compute units the run has used.
default_dataset_idtext- The run's default dataset, where most Actors put their results.
default_key_value_store_idtext- The run's default key-value store, holding its INPUT and any OUTPUT.
default_request_queue_idtext- The run's default request queue.
exit_codenumber- The exit code of the run's process, once it has one.
finished_attext- When the run finished (ISO 8601), or blank while it runs.
idtext- The run's ID.
is_finishedtrue/false- True once the run has succeeded, failed, timed out or stopped.
memory_mbytesnumber- The memory the run was given, in megabytes.
origintext- How the run was started, such as API, WEB or SCHEDULER.
run_time_secsnumber- How long the run has run, in seconds.
started_attext- When the run started (ISO 8601).
statustext- READY, RUNNING, SUCCEEDED, FAILED, TIMING-OUT, TIMED-OUT, ABORTING or ABORTED.
status_messagetext- The run's latest status message, or blank.
task_idtext- The ID of the task it was started from, or blank.
timeout_secsnumber- The run's time limit in seconds (0 for none).
urltext- The run's page in Apify Console.
usage_total_usdnumber- What the run has cost so far, in US dollars.
Example output
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
}Get record
Get the value of a record in an Apify key-value store, such as the OUTPUT a run saved. JSON comes back as JSON and text as text; a binary record such as an image is described.
Inputs
- Key-value store ID
store_idtextRequired - The store's ID, such as a run's default key-value store ID, or a username~name for a named store.
- Key
keytextRequired - The record's key, such as OUTPUT. Up to 256 letters, digits and ! - _ . ' ( )
Outputs
content_typetext- The record's content type, such as application/json.
is_binarytrue/false- True for a binary record, which is described, not returned.
keytext- The record's key.
size_bytesnumber- The record's size in bytes.
store_idtext- The key-value store read.
urltext- The record's API address, which needs the token unless shared.
valueobject- The value: JSON as JSON, text as text, and empty for a binary record such as an image.
Example output
{
"content_type": "application/json; charset=utf-8",
"is_binary": false,
"key": "OUTPUT",
"size_bytes": 28,
"store_id": "eJNzqsbPiopwJcgGQ",
"url": "https://api.apify.com/v2/key-value-stores/eJNzqsbPiopwJcgGQ/records/OUTPUT",
"value": {
"message": "Hello world!"
}
}Get run
Get an Apify run's status, timing, cost and the IDs of its dataset and key-value store, optionally waiting up to a minute for it to finish.
Inputs
- Run ID
run_idtextRequired - The run's ID, from 'Run Actor', 'List runs' or an earlier step.
- Wait up to (seconds)
wait_for_finish_secsnumber - Wait up to this many seconds, 0 to 60, for the run to finish before the step goes on. The run carries on either way. Defaults to 0.From 0 to 60.
Outputs
actor_idtext- The ID of the Actor that ran.
build_idtext- The ID of the build that ran.
build_numbertext- The number of the build that ran, such as 0.0.12.
compute_unitsnumber- The compute units the run has used.
default_dataset_idtext- The run's default dataset, where most Actors put their results.
default_key_value_store_idtext- The run's default key-value store, holding its INPUT and any OUTPUT.
default_request_queue_idtext- The run's default request queue.
exit_codenumber- The exit code of the run's process, once it has one.
finished_attext- When the run finished (ISO 8601), or blank while it runs.
idtext- The run's ID.
is_finishedtrue/false- True once the run has succeeded, failed, timed out or stopped.
memory_mbytesnumber- The memory the run was given, in megabytes.
origintext- How the run was started, such as API, WEB or SCHEDULER.
run_time_secsnumber- How long the run has run, in seconds.
started_attext- When the run started (ISO 8601).
statustext- READY, RUNNING, SUCCEEDED, FAILED, TIMING-OUT, TIMED-OUT, ABORTING or ABORTED.
status_messagetext- The run's latest status message, or blank.
task_idtext- The ID of the task it was started from, or blank.
timeout_secsnumber- The run's time limit in seconds (0 for none).
urltext- The run's page in Apify Console.
usage_total_usdnumber- What the run has cost so far, in US dollars.
Example output
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
}List Actors
List the Apify Actors (web scrapers and automations) you created or used, with optional sorting and paging.
Inputs
- Only my Actors
mytrue/false - Only list Actors you own, not every Actor you have used.
- Skip
offsetnumber - How many to skip from the start, to read the next page.At least 0.
- Page size
limitnumber - How many to return, 1 to 1,000. Defaults to 20.From 1 to 1000.
- Newest first
desctrue/false - Put the newest, or the most recently run, first. Oldest come first otherwise.
- Sort by
sort_bytext - Sort by when the Actor was created, or when it last ran.One of:
createdAt(Date created (default)),stats.lastRunStartedAt(Most recently run).
Outputs
actorslist- The Actors in this page.
countnumber- How many are in this page.
limitnumber- The most this page could hold.
offsetnumber- How many were skipped before this page.
totalnumber- How many there are in all.
Example output
{
"actors": [
{
"created_at": "2024-07-08T11:27:57.401Z",
"id": "zdc3Pyhyz3m8vjDeM",
"last_run_started_at": "2024-07-08T14:01:05.546Z",
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "my-actor",
"title": "My Actor",
"total_runs": 16,
"url": "https://console.apify.com/actors/jane35~my-actor",
"username": "jane35"
}
],
"count": 1,
"limit": 20,
"offset": 0,
"total": 1
}List datasets
List the datasets in your Apify account, where Actors keep their results as rows.
Inputs
- Include unnamed
unnamedtrue/false - Also list the unnamed ones runs make for themselves. Only named ones are listed otherwise.
- Skip
offsetnumber - How many to skip from the start, to read the next page.At least 0.
- Page size
limitnumber - How many to return, 1 to 1,000. Defaults to 20.From 1 to 1000.
- Newest first
desctrue/false - Put the most recently created first. Oldest come first otherwise.
Outputs
countnumber- How many are in this page.
datasetslist- The datasets in this page.
limitnumber- The most this page could hold.
offsetnumber- How many were skipped before this page.
totalnumber- How many there are in all.
Example output
{
"count": 1,
"datasets": [
{
"accessed_at": "2024-07-08T14:01:05.546Z",
"actor_id": "",
"clean_item_count": 2,
"created_at": "2024-07-08T11:27:57.401Z",
"id": "WkzbQMuFYuamGv3YF",
"item_count": 2,
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "lodol-results",
"run_id": "",
"url": "https://console.apify.com/storage/datasets/WkzbQMuFYuamGv3YF"
}
],
"limit": 20,
"offset": 0,
"total": 1
}List key-value stores
List the key-value stores in your Apify account, where runs keep their input, output and files.
Inputs
- Include unnamed
unnamedtrue/false - Also list the unnamed ones runs make for themselves. Only named ones are listed otherwise.
- Skip
offsetnumber - How many to skip from the start, to read the next page.At least 0.
- Page size
limitnumber - How many to return, 1 to 1,000. Defaults to 20.From 1 to 1000.
- Newest first
desctrue/false - Put the most recently created first. Oldest come first otherwise.
Outputs
countnumber- How many are in this page.
limitnumber- The most this page could hold.
offsetnumber- How many were skipped before this page.
storeslist- The key-value stores in this page.
totalnumber- How many there are in all.
Example output
{
"count": 1,
"limit": 20,
"offset": 0,
"stores": [
{
"accessed_at": "2024-07-08T14:01:05.546Z",
"actor_id": "",
"created_at": "2024-07-08T11:27:57.401Z",
"id": "eJNzqsbPiopwJcgGQ",
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "lodol-results",
"run_id": "",
"url": "https://console.apify.com/storage/key-value-stores/eJNzqsbPiopwJcgGQ"
}
],
"total": 1
}List record keys
List the keys of the records in an Apify key-value store, such as a run's INPUT, OUTPUT and screenshots, with each record's size.
Inputs
- Key-value store ID
store_idtextRequired - The store's ID, such as a run's default key-value store ID, or a username~name for a named store.
- Starts with
prefixtext - Only keys that start with this text.
- Page size
limitnumber - How many keys to return, 1 to 1,000. Defaults to 1,000.From 1 to 1000.
- Start after key
exclusive_start_keytext - List the keys after this one, from an earlier page's next key.
Outputs
countnumber- How many keys were listed.
is_truncatedtrue/false- True when there are more keys after these.
keyslist- The keys, in order.
next_exclusive_start_keytext- Give this as 'Start after key' for the next page, or blank.
store_idtext- The key-value store listed.
Example output
{
"count": 2,
"is_truncated": false,
"keys": [
{
"key": "INPUT",
"size_bytes": 28
},
{
"key": "OUTPUT",
"size_bytes": 32
}
],
"next_exclusive_start_key": "",
"store_id": "eJNzqsbPiopwJcgGQ"
}List runs
List the runs of one Actor, one saved task, or your whole account, newest first, filtered by status and start time.
Inputs
- Actor
actor_idtext - Only this Actor's runs. Leave this and Task empty for every run.
- Task
task_idtext - Only this saved task's runs.
- Status
statuslist - Only runs in these states. Every state otherwise.One or more of:
READY(Ready (starting)),RUNNING,SUCCEEDED,FAILED,TIMING-OUT(Timing out),TIMED-OUT(Timed out),ABORTING,ABORTED. - Started on or after
started_afterdate and time - Only runs that started at or after this time. Not for a task.
- Started on or before
started_beforedate and time - Only runs that started at or before this time. Not for a task.
- Order
ordertext - Newest or oldest first. Defaults to newest first.One of:
newest(Newest first (default)),oldest(Oldest first). - Skip
offsetnumber - How many to skip from the start, to read the next page.At least 0.
- Page size
limitnumber - How many to return, 1 to 1,000. Defaults to 20.From 1 to 1000.
Outputs
countnumber- How many are in this page.
limitnumber- The most this page could hold.
offsetnumber- How many were skipped before this page.
runslist- The runs in this page.
totalnumber- How many there are in all.
Example output
{
"count": 1,
"limit": 20,
"offset": 0,
"runs": [
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
}
],
"total": 1
}List tasks
List your saved Apify tasks: Actors set up with their own input and options, ready to run.
Inputs
- Skip
offsetnumber - How many to skip from the start, to read the next page.At least 0.
- Page size
limitnumber - How many to return, 1 to 1,000. Defaults to 20.From 1 to 1000.
- Newest first
desctrue/false - Put the most recently created first. Oldest come first otherwise.
Outputs
countnumber- How many are in this page.
limitnumber- The most this page could hold.
offsetnumber- How many were skipped before this page.
taskslist- The tasks in this page.
totalnumber- How many there are in all.
Example output
{
"count": 1,
"limit": 20,
"offset": 0,
"tasks": [
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"actor_name": "hello-world",
"actor_username": "apify",
"created_at": "2024-07-08T11:27:57.401Z",
"id": "zdc3Pyhyz3m8vjDeN",
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "my-task",
"title": "My task",
"total_runs": 3,
"url": "https://console.apify.com/actors/tasks/zdc3Pyhyz3m8vjDeN",
"username": "jane35"
}
],
"total": 1
}Run Actor
Start a run of an Apify Actor with the input you give, and get the run back. It can wait up to a minute for the run to finish; its results are then in the run's default dataset.
Inputs
- Actor
actor_idtextRequired - The Actor. Pick one, or give its ID or its owner and name joined by a tilde, such as apify~website-content-crawler.
- Input
inputobject - The Actor's input as JSON, as its Input tab in Apify Console shows it, such as {"startUrls": [{"url": "https://example.com"}]}. Left empty, the Actor uses its defaults.
- Build
buildtext - The build to run: a tag such as latest or beta, or a build number. Defaults to the Actor's own setting.
- Memory (MB)
memory_mbytesnumber - The memory the run gets, a power of 2 from 128 to 32768, such as 1024. Defaults to the Actor's own setting. More memory costs more.From 128 to 32768.
- Time limit (seconds)
timeout_secsnumber - Stop the run after this many seconds, 0 for no limit. Defaults to the Actor's own setting.At least 0.
- Most results to pay for
max_itemsnumber - For an Actor priced per result, the most results you are charged for. It may still return more.At least 1.
- Spending cap (USD)
max_total_charge_usdnumber - The most the run may cost in all, in US dollars, such as 0.5.
- Restart if it fails
restart_on_errortrue/false - Start the run again by itself if it fails.
- Wait up to (seconds)
wait_for_finish_secsnumber - Wait up to this many seconds, 0 to 60, for the run to finish before the step goes on. The run carries on either way. Defaults to 0.From 0 to 60.
Outputs
actor_idtext- The ID of the Actor that ran.
build_idtext- The ID of the build that ran.
build_numbertext- The number of the build that ran, such as 0.0.12.
compute_unitsnumber- The compute units the run has used.
default_dataset_idtext- The run's default dataset, where most Actors put their results.
default_key_value_store_idtext- The run's default key-value store, holding its INPUT and any OUTPUT.
default_request_queue_idtext- The run's default request queue.
exit_codenumber- The exit code of the run's process, once it has one.
finished_attext- When the run finished (ISO 8601), or blank while it runs.
idtext- The run's ID.
is_finishedtrue/false- True once the run has succeeded, failed, timed out or stopped.
memory_mbytesnumber- The memory the run was given, in megabytes.
origintext- How the run was started, such as API, WEB or SCHEDULER.
run_time_secsnumber- How long the run has run, in seconds.
started_attext- When the run started (ISO 8601).
statustext- READY, RUNNING, SUCCEEDED, FAILED, TIMING-OUT, TIMED-OUT, ABORTING or ABORTED.
status_messagetext- The run's latest status message, or blank.
task_idtext- The ID of the task it was started from, or blank.
timeout_secsnumber- The run's time limit in seconds (0 for none).
urltext- The run's page in Apify Console.
usage_total_usdnumber- What the run has cost so far, in US dollars.
Example output
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
}Run Actor and get results
Run an Apify Actor, wait for it to succeed (up to 15 minutes), and get the results it saved to its dataset. The step fails, naming the run, if the run fails or is still going when the wait ends.
Inputs
- Actor
actor_idtextRequired - The Actor. Pick one, or give its ID or its owner and name joined by a tilde, such as apify~website-content-crawler.
- Input
inputobject - The Actor's input as JSON, as its Input tab in Apify Console shows it, such as {"startUrls": [{"url": "https://example.com"}]}. Left empty, the Actor uses its defaults.
- Build
buildtext - The build to run: a tag such as latest or beta, or a build number. Defaults to the Actor's own setting.
- Memory (MB)
memory_mbytesnumber - The memory the run gets, a power of 2 from 128 to 32768, such as 1024. Defaults to the Actor's own setting. More memory costs more.From 128 to 32768.
- Time limit (seconds)
timeout_secsnumber - Stop the run after this many seconds, 0 for no limit. Defaults to the Actor's own setting.At least 0.
- Most results to pay for
max_itemsnumber - For an Actor priced per result, the most results you are charged for. It may still return more.At least 1.
- Spending cap (USD)
max_total_charge_usdnumber - The most the run may cost in all, in US dollars, such as 0.5.
- Restart if it fails
restart_on_errortrue/false - Start the run again by itself if it fails.
- Wait up to (seconds)
max_wait_secondsnumber - How long to wait for the run to finish, 1 to 900 seconds. Defaults to 300. A run still going after that carries on in Apify.From 1 to 900.
- Most results to read
item_limitnumber - How many results to read from the run's dataset, 1 to 1,000. Defaults to 100; 'Get dataset items' reads the rest.From 1 to 1000.
- Only these fields
fieldstext - Keep only these fields of each result, separated by commas, such as url,title. Every field is kept otherwise.
- Skip empty and hidden
cleantrue/false - Leave out empty results, and fields whose names start with #, which Actors use for their own bookkeeping.
Outputs
countnumber- How many results were read.
itemslist- The results the run saved to its default dataset.
runobject- The finished run.
totalnumber- How many results the dataset holds in all.
Example output
{
"count": 1,
"items": [
{
"title": "Example Domain",
"url": "https://example.com"
}
],
"run": {
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
},
"total": 1
}Run task
Start a run of a saved Apify task, optionally changing some of its input, and get the run back. It can wait up to a minute for the run to finish.
Inputs
- Task
task_idtextRequired - The saved task. Pick one, or give its ID from an earlier step.
- Input changes
inputobject - Input fields to change for this run only, as JSON. Fields left out keep the task's saved values.
- Build
buildtext - The build to run: a tag such as latest or beta, or a build number. Defaults to the Actor's own setting.
- Memory (MB)
memory_mbytesnumber - The memory the run gets, a power of 2 from 128 to 32768, such as 1024. Defaults to the Actor's own setting. More memory costs more.From 128 to 32768.
- Time limit (seconds)
timeout_secsnumber - Stop the run after this many seconds, 0 for no limit. Defaults to the Actor's own setting.At least 0.
- Most results to pay for
max_itemsnumber - For an Actor priced per result, the most results you are charged for. It may still return more.At least 1.
- Spending cap (USD)
max_total_charge_usdnumber - The most the run may cost in all, in US dollars, such as 0.5.
- Restart if it fails
restart_on_errortrue/false - Start the run again by itself if it fails.
- Wait up to (seconds)
wait_for_finish_secsnumber - Wait up to this many seconds, 0 to 60, for the run to finish before the step goes on. The run carries on either way. Defaults to 0.From 0 to 60.
Outputs
actor_idtext- The ID of the Actor that ran.
build_idtext- The ID of the build that ran.
build_numbertext- The number of the build that ran, such as 0.0.12.
compute_unitsnumber- The compute units the run has used.
default_dataset_idtext- The run's default dataset, where most Actors put their results.
default_key_value_store_idtext- The run's default key-value store, holding its INPUT and any OUTPUT.
default_request_queue_idtext- The run's default request queue.
exit_codenumber- The exit code of the run's process, once it has one.
finished_attext- When the run finished (ISO 8601), or blank while it runs.
idtext- The run's ID.
is_finishedtrue/false- True once the run has succeeded, failed, timed out or stopped.
memory_mbytesnumber- The memory the run was given, in megabytes.
origintext- How the run was started, such as API, WEB or SCHEDULER.
run_time_secsnumber- How long the run has run, in seconds.
started_attext- When the run started (ISO 8601).
statustext- READY, RUNNING, SUCCEEDED, FAILED, TIMING-OUT, TIMED-OUT, ABORTING or ABORTED.
status_messagetext- The run's latest status message, or blank.
task_idtext- The ID of the task it was started from, or blank.
timeout_secsnumber- The run's time limit in seconds (0 for none).
urltext- The run's page in Apify Console.
usage_total_usdnumber- What the run has cost so far, in US dollars.
Example output
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
}Run task and get results
Run a saved Apify task, wait for it to succeed (up to 15 minutes), and get the results it saved to its dataset. The step fails, naming the run, if the run fails or is still going when the wait ends.
Inputs
- Task
task_idtextRequired - The saved task. Pick one, or give its ID from an earlier step.
- Input changes
inputobject - Input fields to change for this run only, as JSON. Fields left out keep the task's saved values.
- Build
buildtext - The build to run: a tag such as latest or beta, or a build number. Defaults to the Actor's own setting.
- Memory (MB)
memory_mbytesnumber - The memory the run gets, a power of 2 from 128 to 32768, such as 1024. Defaults to the Actor's own setting. More memory costs more.From 128 to 32768.
- Time limit (seconds)
timeout_secsnumber - Stop the run after this many seconds, 0 for no limit. Defaults to the Actor's own setting.At least 0.
- Most results to pay for
max_itemsnumber - For an Actor priced per result, the most results you are charged for. It may still return more.At least 1.
- Spending cap (USD)
max_total_charge_usdnumber - The most the run may cost in all, in US dollars, such as 0.5.
- Restart if it fails
restart_on_errortrue/false - Start the run again by itself if it fails.
- Wait up to (seconds)
max_wait_secondsnumber - How long to wait for the run to finish, 1 to 900 seconds. Defaults to 300. A run still going after that carries on in Apify.From 1 to 900.
- Most results to read
item_limitnumber - How many results to read from the run's dataset, 1 to 1,000. Defaults to 100; 'Get dataset items' reads the rest.From 1 to 1000.
- Only these fields
fieldstext - Keep only these fields of each result, separated by commas, such as url,title. Every field is kept otherwise.
- Skip empty and hidden
cleantrue/false - Leave out empty results, and fields whose names start with #, which Actors use for their own bookkeeping.
Outputs
countnumber- How many results were read.
itemslist- The results the run saved to its default dataset.
runobject- The finished run.
totalnumber- How many results the dataset holds in all.
Example output
{
"count": 1,
"items": [
{
"title": "Example Domain",
"url": "https://example.com"
}
],
"run": {
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
},
"total": 1
}Save record
Save a value under a key in an Apify key-value store, replacing any value already there.
Inputs
- Key-value store ID
store_idtextRequired - The store's ID, such as a run's default key-value store ID, or a username~name for a named store.
- Key
keytextRequired - The record's key, such as OUTPUT. Up to 256 letters, digits and ! - _ . ' ( )
- Value
valuetextRequired - The value to save. As JSON (the default), such as {"count": 1} or a value from an earlier step; as text otherwise.
- Content type
content_typetext - How the value is saved. Defaults to JSON.One of:
application/json(JSON (default)),text/plain(Plain text),text/html(HTML),text/csv(CSV). Default:application/json.
Outputs
content_typetext- The content type it was saved with.
keytext- The record's key.
size_bytesnumber- How many bytes were saved.
store_idtext- The key-value store written.
urltext- The record's API address, which needs the token unless shared.
Example output
{
"content_type": "application/json; charset=utf-8",
"key": "OUTPUT",
"size_bytes": 28,
"store_id": "eJNzqsbPiopwJcgGQ",
"url": "https://api.apify.com/v2/key-value-stores/eJNzqsbPiopwJcgGQ/records/OUTPUT"
}Update Actor
Update an Apify Actor's settings. Only the fields you provide are changed; supply at least one.
Inputs
- Actor
actor_idtextRequired - The Actor. Pick one, or give its ID or its owner and name joined by a tilde, such as apify~website-content-crawler.
- Name
nametext - New identifier for the Actor, using lowercase letters, numbers, and hyphens.
- Title
titletext - New human-readable name shown in Apify Store and Console.
- Description
descriptiontext - New short description of what the Actor does.
- Publish to Apify Store
is_publictrue/false - List the Actor publicly in Apify Store, or keep it private. An Actor must have been built before it can be published.
- Mark as deprecated
is_deprecatedtrue/false - Mark the Actor as deprecated, so users are steered away from it.
Outputs
categorieslist- The Apify Store categories the Actor is filed under.
created_attext- When the Actor was created (ISO 8601).
default_run_optionsobject- The options a run uses unless it is given others.
descriptiontext- The Actor's short description.
idtext- The Actor's ID.
is_deprecatedtrue/false- Whether the Actor is marked as deprecated.
is_publictrue/false- Whether the Actor is published in Apify Store.
modified_attext- When the Actor was last changed (ISO 8601).
nametext- The Actor's name, unique in its owner's account.
statsobject- Usage counts for the Actor.
titletext- The Actor's display name.
urltext- The Actor's page in Apify Console.
usernametext- The username of the Actor's owner.
versionslist- The Actor's source versions.
Example output
{
"categories": [
"DEVELOPER_TOOLS"
],
"created_at": "2024-07-08T11:27:57.401Z",
"default_run_options": {
"build": "latest",
"memory_mbytes": 2048,
"timeout_secs": 3600
},
"description": "My favorite Actor!",
"id": "zdc3Pyhyz3m8vjDeM",
"is_deprecated": false,
"is_public": false,
"modified_at": "2024-07-08T14:01:05.546Z",
"name": "my-actor",
"stats": {
"last_run_started_at": "2024-07-08T14:01:05.546Z",
"total_builds": 9,
"total_runs": 16,
"total_users": 6
},
"title": "My Actor",
"url": "https://console.apify.com/actors/jane35~my-actor",
"username": "jane35",
"versions": [
"0.0"
]
}Wait for run
Wait for an Apify run to finish, up to 15 minutes, and get how it ended. If it is still going when the wait ends, the step says so and the run carries on.
Inputs
- Run ID
run_idtextRequired - The run's ID, from 'Run Actor', 'List runs' or an earlier step.
- Wait up to (seconds)
max_wait_secondsnumber - How long to wait for the run to finish, 1 to 900 seconds. Defaults to 300. A run still going after that carries on in Apify.From 1 to 900.
Outputs
actor_idtext- The ID of the Actor that ran.
build_idtext- The ID of the build that ran.
build_numbertext- The number of the build that ran, such as 0.0.12.
compute_unitsnumber- The compute units the run has used.
default_dataset_idtext- The run's default dataset, where most Actors put their results.
default_key_value_store_idtext- The run's default key-value store, holding its INPUT and any OUTPUT.
default_request_queue_idtext- The run's default request queue.
exit_codenumber- The exit code of the run's process, once it has one.
finished_attext- When the run finished (ISO 8601), or blank while it runs.
idtext- The run's ID.
is_finishedtrue/false- True once the run has succeeded, failed, timed out or stopped.
memory_mbytesnumber- The memory the run was given, in megabytes.
origintext- How the run was started, such as API, WEB or SCHEDULER.
run_time_secsnumber- How long the run has run, in seconds.
started_attext- When the run started (ISO 8601).
statustext- READY, RUNNING, SUCCEEDED, FAILED, TIMING-OUT, TIMED-OUT, ABORTING or ABORTED.
status_messagetext- The run's latest status message, or blank.
task_idtext- The ID of the task it was started from, or blank.
timed_outtrue/false- True when the wait ended before the run did. The run carries on.
timeout_secsnumber- The run's time limit in seconds (0 for none).
urltext- The run's page in Apify Console.
usage_total_usdnumber- What the run has cost so far, in US dollars.
Example output
{
"actor_id": "E2jjCZBezvAZnX8Rb",
"build_id": "HG7ML7M8z78YcAPEC",
"build_number": "0.0.12",
"compute_units": 0.0006,
"default_dataset_id": "wmKPijuyDnPZAPRMk",
"default_key_value_store_id": "eJNzqsbPiopwJcgGQ",
"default_request_queue_id": "FL35cSF7jrxr3BY39",
"exit_code": 0,
"finished_at": "2024-07-08T14:05:09.000Z",
"id": "HG7ML7M8z78YcAPEB",
"is_finished": true,
"memory_mbytes": 256,
"origin": "API",
"run_time_secs": 9.1,
"started_at": "2024-07-08T14:05:00.000Z",
"status": "SUCCEEDED",
"status_message": "Actor finished successfully (exit code 0)",
"task_id": "",
"timed_out": false,
"timeout_secs": 300,
"url": "https://console.apify.com/actors/E2jjCZBezvAZnX8Rb/runs/HG7ML7M8z78YcAPEB",
"usage_total_usd": 0.0003
}