# Get log


```
GET 
https://api.apify.com/v2/logs/:buildOrRunId
```


Retrieves logs for a specific Actor build or run.

## Request

### Path Parameters

* **buildOrRunId** string required

  ID of the Actor build or run.

  **Example:** `HG7ML7M8z78YcAPEB`

### Query Parameters

* **stream** boolean required

  If `true` or `1` then the logs will be streamed as long as the run or build is running.

  **Example:** `false`

  **download** boolean required

  If `true` or `1` then the web browser will download the log file rather than open it in a tab.

  **Example:** `false`

  **raw** boolean

  If `true` or `1`, the logs will be kept verbatim. By default, the API removes ANSI escape codes from the logs, keeping only printable characters.

  **Example:** `false`

<!-- -->

### Status 200

**Response Headers**




```
2017-07-14T06:00:49.733Z Application started.
2017-07-14T06:00:49.741Z Input: { test: 123 }
2017-07-14T06:00:49.752Z Some useful debug information follows.
```


**Schema**

* **string** string\
  **Example:** `2017-07-14T06:00:49.733Z Application started. 2017-07-14T06:00:49.741Z Input: { test: 123 } 2017-07-14T06:00:49.752Z Some useful debug information follows.`

### Status 400

Bad request - invalid input parameters or request body.


```
{
  "error": {
    "type": "invalid-input",
    "message": "Invalid input: The request body contains invalid data."
  }
}
```


**Schema**

* **error** object required

  * **type** string required\
    **Example:** `run-failed`
  * **message** string required\
    **Example:** `Actor run did not succeed (run ID: 55uatRrZib4xbZs, status: FAILED)`
