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

# Get GitHub Actions cache usage for a repository

`GET /repos/{owner}/{repo}/actions/cache/usage`

Gets GitHub Actions cache usage for a repository.
The data fetched using this API is refreshed approximately every 5 minutes, so values returned from this endpoint may take at least 5 minutes to get updated.
Anyone with read access to the repository can use this endpoint. If the repository is private, you must use an access token with the `repo` scope. GitHub Apps must have the `actions:read` permission to use this endpoint.

## Path parameters

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

## Response `200`

Response

- ActionsCacheUsageByRepository — GitHub Actions Cache Usage by repository.
  - `full_name` string, required — The repository owner and name for the cache usage being shown.
  - `active_caches_size_in_bytes` integer, required — The sum of the size in bytes of all the active cache items in the repository.
  - `active_caches_count` integer, required — The number of active caches in the repository.

---

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