> ## Documentation Index
> Fetch the complete documentation index at: https://deepline.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Apify: Run Actor

> Running an Apify Actor asynchronously when you need non-blocking execution and can check later. Includes inputs, outputs, SDK V2 examples, and Deepline cost.

Running an Apify Actor asynchronously when you need non-blocking execution and can check later.

<Info>
  Tool ID: `apify_run_actor`
</Info>

## Run this action

Use the TypeScript SDK for a single call. Put `ctx.tools.execute(...)` inside a Play when the call should be durable, scheduled, or run across a CSV.

```ts theme={null}
import { Deepline } from 'deepline';

const deepline = await Deepline.connect();
const result = await deepline.tools.execute(
  'apify_run_actor',
  {
    "actorId": "actor_123"
  },
);

console.log(result.toolResponse.raw);
```

### CLI

```bash theme={null}
deepline tools execute apify_run_actor --input '{
  "actorId": "actor_123"
}' --json
```

## Example response

The SDK exposes this shape at `result.toolResponse.raw`. Values below are representative.

```json theme={null}
{
  "status": "example",
  "result": {
    "data": {
      "run": {
        "id": "id_123",
        "status": "example",
        "defaultDatasetId": "default_dataset_123",
        "defaultKeyValueStoreId": "default_key_value_store_123",
        "defaultRequestQueueId": "default_request_queue_123",
        "startedAt": "2026-01-15T12:00:00Z",
        "finishedAt": "2026-01-15T12:00:00Z"
      },
      "runId": "run_123",
      "defaultDatasetId": "default_dataset_123",
      "defaultKeyValueStoreId": "default_key_value_store_123",
      "defaultRequestQueueId": "default_request_queue_123"
    },
    "meta": {
      "status": 123
    }
  }
}
```

Use `deepline tools get apify_run_actor --json` for the latest machine-readable contract.

## Input reference

Apify run actor input.

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `payload.actorId` | `string` | Yes | — | — |
| `payload.input` | `unknown` | No | — | — |
| `payload.params` | `object` | No | — | — |

<details>
  <summary>Show raw input schema</summary>

  ### Input JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "description": "Apify run actor input.",
    "properties": {
      "actorId": {
        "type": "string"
      },
      "input": {},
      "params": {
        "type": "object",
        "properties": {
          "timeout": {
            "type": "number"
          },
          "memory": {
            "type": "number"
          },
          "build": {
            "type": "string"
          },
          "maxItems": {
            "type": "number"
          },
          "waitForFinish": {
            "type": "number"
          },
          "webhooks": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "required": [
      "actorId"
    ],
    "additionalProperties": false
  }
  ```
</details>

## Output reference

| Name | Type | Required | Default | Details |
| - | - | - | - | - |
| `result.status` | `string` | Yes | — | — |
| `result.result` | `object` | Yes | — | — |
| `result.result.data` | `object` | Yes | — | — |
| `result.result.data.run` | `object` | Yes | — | — |
| `result.result.data.run.id` | `string` | Yes | — | — |
| `result.result.data.run.status` | `string` | Yes | — | — |
| `result.result.data.run.defaultDatasetId` | `string` | Yes | — | — |
| `result.result.data.run.defaultKeyValueStoreId` | `string` | Yes | — | — |
| `result.result.data.run.defaultRequestQueueId` | `string` | Yes | — | — |
| `result.result.data.run.startedAt` | `string` | Yes | — | — |
| `result.result.data.run.finishedAt` | `string` | Yes | — | — |
| `result.result.data.runId` | `string` | Yes | — | — |
| `result.result.data.defaultDatasetId` | `string` | Yes | — | — |
| `result.result.data.defaultKeyValueStoreId` | `string` | Yes | — | — |
| `result.result.data.defaultRequestQueueId` | `string` | Yes | — | — |
| `result.result.meta` | `object` | Yes | — | — |
| `result.result.meta.status` | `integer` | Yes | — | — |

<details>
  <summary>Show raw output schema</summary>

  ### Output JSON Schema

  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "status": {
        "type": "string"
      },
      "result": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "run": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "status": {
                    "type": "string"
                  },
                  "defaultDatasetId": {
                    "type": "string"
                  },
                  "defaultKeyValueStoreId": {
                    "type": "string"
                  },
                  "defaultRequestQueueId": {
                    "type": "string"
                  },
                  "startedAt": {
                    "type": "string"
                  },
                  "finishedAt": {
                    "type": "string"
                  }
                },
                "required": [
                  "id",
                  "status",
                  "defaultDatasetId",
                  "defaultKeyValueStoreId",
                  "defaultRequestQueueId",
                  "startedAt",
                  "finishedAt"
                ],
                "additionalProperties": true
              },
              "runId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              }
            },
            "required": [
              "run",
              "runId",
              "defaultDatasetId",
              "defaultKeyValueStoreId",
              "defaultRequestQueueId"
            ],
            "additionalProperties": true
          },
          "meta": {
            "type": "object",
            "properties": {
              "status": {
                "type": "integer"
              }
            },
            "required": [
              "status"
            ],
            "additionalProperties": true
          }
        },
        "required": [
          "data",
          "meta"
        ],
        "additionalProperties": true
      }
    },
    "required": [
      "status",
      "result"
    ],
    "additionalProperties": true
  }
  ```
</details>

## Deepline cost

* Pricing model: `provider_usage` (provider usage).
* Estimated Deepline credits: `0` per pricing unit.

## Related documentation

* [Apify provider guide](/docs/providers/apify/guide)
* [SDK V2 quickstart](/docs/sdk-v2/quickstart)
* [SDK reference](/docs/sdk-v2/sdk-reference)
* [Run tools across a CSV](/docs/sdk-v2/batch-csv)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.