Skip to main content

Get an artifact

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.

GET/repos/{owner}/{repo}/actions/artifacts/{artifact_id}
Source
github-v3-rest.json
Revision
f5f067c1e6f6
Active snapshot
85e53e3d0d65

Request

Path Parameters
owner string
required
repo string
required
artifact_id integer
required

artifact_id parameter

Responses

application/json Artifact object

Response

archive_download_url string
required

Example: https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip

created_at string<date-time>
requirednullable
expired boolean
required

Whether or not the artifact has expired.

expires_at string<date-time>
requirednullable
id integer
required

Example: 5

name string
required

The name of the artifact.

Example: AdventureWorks.Framework

node_id string
required

Example: MDEwOkNoZWNrU3VpdGU1

size_in_bytes integer
required

The size in bytes of the artifact.

Example: 12345

updated_at string<date-time>
requirednullable
url string
required

Example: https://api.github.com/repos/github/hello-world/actions/artifacts/5