Skip to content

Get GitHub Actions cache usage for an organization

GET
/orgs/{org}/actions/cache/usage

Gets the total GitHub Actions cache usage for an organization. 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.

OAuth tokens and personal access tokens (classic) need the read:org scope to use this endpoint.

API method documentation

org
required
string

The organization name. The name is not case sensitive.

Response

Media type application/json
object
total_active_caches_count
required

The count of active caches across all repositories of an enterprise or an organization.

integer
total_active_caches_size_in_bytes
required

The total size in bytes of all active cache items across all repositories of an enterprise or an organization.

integer
Examples
Example default
{
"total_active_caches_size_in_bytes": 3344284,
"total_active_caches_count": 5
}
Link
string
Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"