GitHub v3 REST API

Get pages statistics

get
{protocol}://{hostname}/api/v3/enterprise/stats/pages

Response

200 application/json

Response

Enterprise Pages Stats

total_pagesintegerrequired
get/enterprise/stats/pages
 
200 application/json

Get pull request statistics

get
{protocol}://{hostname}/api/v3/enterprise/stats/pulls

Response

200 application/json

Response

Enterprise Pull Request Stats

total_pullsintegerrequired
merged_pullsintegerrequired
mergeable_pullsintegerrequired
unmergeable_pullsintegerrequired
get/enterprise/stats/pulls
 
200 application/json

Get repository statistics

get
{protocol}://{hostname}/api/v3/enterprise/stats/repos

Response

200 application/json

Response

Repository Enterprise Stats

total_reposintegerrequired
root_reposintegerrequired
fork_reposintegerrequired
org_reposintegerrequired
total_pushesintegerrequired
total_wikisintegerrequired
get/enterprise/stats/repos
 
200 application/json

Get users statistics

get
{protocol}://{hostname}/api/v3/enterprise/stats/users

Response

200 application/json

Response

Enterprise User Stats

total_usersintegerrequired
admin_usersintegerrequired
suspended_usersintegerrequired
get/enterprise/stats/users
 
200 application/json

Get GitHub Actions permissions for an enterprise

Gets the GitHub Actions permissions policy for organizations and allowed actions in an enterprise.

You must authenticate using an access token with the admin:enterprise scope to use this endpoint.

get
{protocol}://{hostname}/api/v3/enterprises/{enterprise}/actions/permissions

Path Parameters

enterprisestringrequired

The slug version of the enterprise name. You can also substitute this value with the enterprise id.

Response

200 application/json

Response

actions-enterprise-permissions

enabled_organizationsstringrequired

The policy that controls the organizations in the enterprise that are allowed to run GitHub Actions. Can be one of: all, none, or selected.

Allowed values:allnoneselected

selected_organizations_urlstring

The API URL to use to get or set the selected organizations that are allowed to run GitHub Actions, when enabled_organizations is set to selected.

allowed_actionsstring

The permissions policy that controls the actions that are allowed to run. Can be one of: all, local_only, or selected.

Allowed values:alllocal_onlyselected

selected_actions_urlstring

The API URL to use to get or set the actions that are allowed to run, when allowed_actions is set to selected.

get/enterprises/{enterprise}/actions/permissions
 
200 application/json