Sample - GitHub REST API
GET/repos/{owner}/{repo}/actions/artifacts/{artifact_id}

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.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

3 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.
artifact_idintegerrequired
The unique identifier of the artifact.

1 status code
200Response
idintegerrequired
node_idstringrequired
namestringrequired
The name of the artifact.
size_in_bytesintegerrequired
The size in bytes of the artifact.
urlstringrequired
archive_download_urlstringrequired
expiredbooleanrequired
Whether or not the artifact has expired.
created_atstringrequired
expires_atstringrequired
updated_atstringrequired
digeststringoptional
The SHA256 digest of the artifact. This field will only be populated on artifacts uploaded with upload-artifact v4 or newer. For older versions, this field will be null.
workflow_runobjectoptional