---
title: "List GitHub Actions caches for a repository"
method: GET
path: "/repos/{owner}/{repo}/actions/caches"
tags: ["actions"]
---

# List GitHub Actions caches for a repository

`GET /repos/{owner}/{repo}/actions/caches`

Lists the GitHub Actions caches for a repository.

OAuth tokens and personal access tokens (classic) need the `repo` scope to use this endpoint.

## Path parameters

- `owner` string, required
- `repo` string, required

## Query parameters

- `per_page` integer
- `page` integer
- `ref` string
- `key` string
- `sort` 'created_at' | 'last_accessed_at' | 'size_in_bytes'
- `direction` 'asc' | 'desc'

## Response `200`

Response

- ActionsCacheList — Repository actions caches
  - `total_count` integer, required — Total number of caches
  - `actions_caches` object[], required — Array of caches
    - `id` integer
    - `ref` string
    - `key` string
    - `version` string
    - `last_accessed_at` string, date-time
    - `created_at` string, date-time
    - `size_in_bytes` integer

---

[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)
