Sample - GitHub REST API
GET/repos/{owner}/{repo}/actions/cache/usage

Get GitHub Actions cache usage for a repository

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, OAuth tokens and personal access tokens (classic) need the repo scope to use this endpoint.

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.

1 status code
200Response
full_namestringrequired
The repository owner and name for the cache usage being shown.
active_caches_size_in_bytesintegerrequired
The sum of the size in bytes of all the active cache items in the repository.
active_caches_countintegerrequired
The number of active caches in the repository.