# List workflow run artifacts

From **GitHub v3 REST API**.

`GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts`

Lists artifacts for a workflow run. Anyone with read access to the repository can use this endpoint. If the repository is private you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.

## Parameters

### `owner`

- Location: path
- Required: true
- Type: `string`

### `repo`

- Location: path
- Required: true
- Type: `string`

### `run_id`

- Location: path
- Required: true
- Type: `integer`

The id of the workflow run.

### `per_page`

- Location: query
- Required: false
- Type: `integer`
- Default: `30`

Results per page (max 100)

### `page`

- Location: query
- Required: false
- Type: `integer`
- Default: `1`

Page number of the results to fetch.

## Responses

### `200`

Response

#### Headers

##### `Link`

- Type: `string`

- Example: `<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"`

### `application/json`

- Type: `object`

```json
{
  "artifacts": [
    {
      "archive_download_url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/11/zip",
      "created_at": "2020-01-10T14:59:22Z",
      "expired": false,
      "expires_at": "2020-03-21T14:59:22Z",
      "id": 11,
      "name": "Rails",
      "node_id": "MDg6QXJ0aWZhY3QxMQ==",
      "size_in_bytes": 556,
      "updated_at": "2020-02-21T14:59:22Z",
      "url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/11"
    },
    {
      "archive_download_url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/13/zip",
      "created_at": "2020-01-10T14:59:22Z",
      "expired": false,
      "expires_at": "2020-03-21T14:59:22Z",
      "id": 13,
      "name": "",
      "node_id": "MDg6QXJ0aWZhY3QxMw==",
      "size_in_bytes": 453,
      "updated_at": "2020-02-21T14:59:22Z",
      "url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/13"
    }
  ],
  "total_count": 2
}
```

```json
{"properties":{"artifacts":{"items":{"$ref":"#/components/schemas/artifact"},"type":"array"},"total_count":{"type":"integer"}},"required":["total_count","artifacts"],"type":"object"}
```

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/repos/{owner}/{repo}/actions/runs/{run_id}/artifacts
```
