---
title: "Get an artifact"
method: GET
path: "/repos/{owner}/{repo}/actions/artifacts/{artifact_id}"
tags: ["actions"]
---

# Get an artifact

`GET /repos/{owner}/{repo}/actions/artifacts/{artifact_id}`

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.

## Path parameters

- `owner` string, required
- `repo` string, required
- `artifact_id` integer, required

## Response `200`

Response

- Artifact — An artifact
  - `id` integer, required
  - `node_id` string, required
  - `name` string, required — The name of the artifact.
  - `size_in_bytes` integer, required — The size in bytes of the artifact.
  - `url` string, required
  - `archive_download_url` string, required
  - `expired` boolean, required — Whether or not the artifact has expired.
  - `created_at` string, date-time, nullable, required
  - `expires_at` string, date-time, nullable, required
  - `updated_at` string, date-time, nullable, required
  - `workflow_run` object, nullable
    - `id` integer
    - `repository_id` integer
    - `head_repository_id` integer
    - `head_branch` string
    - `head_sha` string

---

[API](https://skmtc.net/github/apis/github-v3-rest-api-7.md) · [All operations](https://skmtc.net/github/apis/github-v3-rest-api-7/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/github-v3-rest-api-7/versions/5438365412fe/schema)
