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.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
The organization name. The name is not case sensitive.
Responses
Section titled “Responses”Response
Media typeapplication/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
Exampledefault
{ "total_active_caches_size_in_bytes": 3344284, "total_active_caches_count": 5}Headers
Section titled “Headers”Link
string
Example
<https://api.github.com/resource?page=2>; rel="next", <https://api.github.com/resource?page=5>; rel="last"