# Get an artifact

From **GitHub v3 REST API**.

`GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`

Gets a specific artifact 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`

### `artifact_id`

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

artifact_id parameter

## Responses

### `200`

Response

### `application/json`

- Type: `object`

An artifact

```json
{
  "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-01-21T14:59:22Z",
  "id": 11,
  "name": "Rails",
  "node_id": "MDg6QXJ0aWZhY3QxMQ==",
  "size_in_bytes": 556,
  "updated_at": "2020-01-21T14:59:22Z",
  "url": "https://api.github.com/repos/octo-org/octo-docs/actions/artifacts/11"
}
```

```json
{"description":"An artifact","properties":{"archive_download_url":{"example":"https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip","type":"string"},"created_at":{"format":"date-time","nullable":true,"type":"string"},"expired":{"description":"Whether or not the artifact has expired.","type":"boolean"},"expires_at":{"format":"date-time","nullable":true,"type":"string"},"id":{"example":5,"type":"integer"},"name":{"description":"The name of the artifact.","example":"AdventureWorks.Framework","type":"string"},"node_id":{"example":"MDEwOkNoZWNrU3VpdGU1","type":"string"},"size_in_bytes":{"description":"The size in bytes of the artifact.","example":12345,"type":"integer"},"updated_at":{"format":"date-time","nullable":true,"type":"string"},"url":{"example":"https://api.github.com/repos/github/hello-world/actions/artifacts/5","type":"string"}},"required":["id","node_id","name","size_in_bytes","url","archive_download_url","expired","created_at","expires_at","updated_at"],"title":"Artifact","type":"object"}
```

## Request examples

### cURL

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