v50

latestOpenAPI 3.0.3MITraw.githubusercontent.com2024-03-2585861610.1 MB
actions

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, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

get/repos/{owner}/{repo}/actions/artifacts/{artifact_id}

Path parameters

ownerstring required

The account owner of the repository. The name is not case sensitive.

repostring required

The name of the repository without the .git extension. The name is not case sensitive.

artifact_idinteger required

The unique identifier of the artifact.

Response

Response

idinteger required
node_idstring required
namestring required

The name of the artifact.

size_in_bytesinteger required

The size in bytes of the artifact.

urlstring required
archive_download_urlstring required
expiredboolean required

Whether or not the artifact has expired.

created_atstring date-time nullable required
expires_atstring date-time nullable required
updated_atstring date-time nullable required

Example response

{
  "id": 5,
  "node_id": "MDEwOkNoZWNrU3VpdGU1",
  "name": "AdventureWorks.Framework",
  "size_in_bytes": 12345,
  "url": "https://api.github.com/repos/github/hello-world/actions/artifacts/5",
  "archive_download_url": "https://api.github.com/repos/github/hello-world/actions/artifacts/5/zip",
  "workflow_run": {
    "id": 10,
    "repository_id": 42,
    "head_repository_id": 42,
    "head_branch": "main",
    "head_sha": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d"
  }
}