Lists all artifacts for a repository run
GET
/repos/{owner}/{repo}/actions/runs/{run}/artifacts
const url = 'https://gitea.com/api/v1/repos/example/example/actions/runs/1/artifacts';const options = {method: 'GET', headers: {Authorization: 'Basic <credentials>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://gitea.com/api/v1/repos/example/example/actions/runs/1/artifacts \ --header 'Authorization: Basic <credentials>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”owner
required
string
Name of the owner
repo
required
string
Name of the repository
run
required
integer
Runid of the workflow run
Query Parameters
Section titled “Query Parameters”name
string
Name of the artifact
Responses
Section titled “Responses”ArtifactsList
Media typeapplication/json
ActionArtifactsResponse returns ActionArtifacts
object
artifacts
Array<object>
ActionArtifact represents a ActionArtifact
object
archive_download_url
string
created_at
string format: date-time
expired
boolean
expires_at
string format: date-time
id
integer format: int64
name
string
size_in_bytes
integer format: int64
updated_at
string format: date-time
url
string
workflow_run
ActionWorkflowRun represents a WorkflowRun
object
head_sha
string
id
integer format: int64
repository_id
integer format: int64
total_count
integer format: int64
Examplegenerated
{ "artifacts": [ { "archive_download_url": "example", "created_at": "2026-04-15T12:00:00Z", "expired": true, "expires_at": "2026-04-15T12:00:00Z", "id": 1, "name": "example", "size_in_bytes": 1, "updated_at": "2026-04-15T12:00:00Z", "url": "example", "workflow_run": { "head_sha": "example", "id": 1, "repository_id": 1 } } ], "total_count": 1}APIError is error format response
Media typeapplication/json
Headers
Section titled “Headers”message
string
url
string
APINotFound is a not found empty response
Media typeapplication/json