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

> ## Agent Instructions
> Automate.ax automations are TypeScript programs.
> Use Bun for installation and command examples.
> Use Automate.ax for the product name and automate.ax for the package, CLI, and domain.
> Treat documented public APIs as current; do not invent transitional or deprecated names.

# Get Actor run log

> Gets processed or raw text from an Apify Actor run log.

`apify.getRunLog` gets processed or raw text from an Apify Actor run log.

## Example

```ts automations/apify-get-run-log.automation.ts theme={null}
import { automation, onHttpRequest } from "automate.ax"
import { apify } from "automate.ax/apify"

export default automation("Get Actor run log", () => {
  onHttpRequest({ scope: "automation" })

  apify.getRunLog({ runId: "run-id", raw: true })
})
```

## Inputs

`runId` identifies the Actor run. Set `raw` to `true` for the unprocessed log; omit it for Apify's default processed text.

## Output

Returns `{ log: string }`.

The action fails when the run log is unavailable. Large logs remain subject to Apify's API response limits.
