List artifacts for a repository
Lists all artifacts for a repository.
Anyone with read access to the repository can use this endpoint.
OAuth app tokens and personal access tokens (classic) need the repo scope to use this endpoint with a private repository.
Request
- Base URL: https://api.github.com
- URL: https://api.github.com/repos/{owner}/{repo}/actions/artifacts
- Auth: none declared
Path parameters
The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
Query parameters
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
The page number of the results to fetch. For more information, see "Using pagination in the REST API."
The name field of an artifact. When specified, only artifacts with this name will be returned.
Response
Response
Example response
{
"artifacts": [
{
"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",
"digest": "sha256:cfc3236bdad15b5898bca8408945c9e19e1917da8704adc20eaa618444290a8c",
"workflow_run": {
"id": 10,
"repository_id": 42,
"head_repository_id": 42,
"head_branch": "main",
"head_sha": "009b8a3a9ccbb128af87f9b1c0f4c62e8a304f6d"
}
}
]
}Changes
No recorded changes to this operation across all 23 revisions of this API.