GitHub Billing API

The GitHub Billing API lets you view billing and usage information for organizations and enterprises, including Actions minutes, Packages storage and data transfer, Codespaces usage, and shared storage consumption. It provides endpoints for retrieving current usage summaries and managing billing budgets and thresholds.

GitHub OpenAPI

Operations 13

0 of 13 operations are conformant: apis.io called them with no credentials and the responses matched this contract; 5 more answered but could not be checked against a schema. Checked 2026-11-12. how this works · status file

GET /organizations/{org}/settings/billing/ai_credit/usage Get billing AI credit usage report for an organization observed #
GET /organizations/{org}/settings/billing/budgets Get all budgets for an organization observed #
POST /organizations/{org}/settings/billing/budgets Create a budget for an organization #
GET /organizations/{org}/settings/billing/budgets/{budget_id} Get a budget by ID for an organization #
PATCH /organizations/{org}/settings/billing/budgets/{budget_id} Update a budget for an organization #
DELETE /organizations/{org}/settings/billing/budgets/{budget_id} Delete a budget for an organization #
GET /organizations/{org}/settings/billing/premium_request/usage Get billing premium request usage report for an organization observed #
GET /organizations/{org}/settings/billing/usage Get billing usage report for an organization observed #
GET /organizations/{org}/settings/billing/usage/summary Get billing usage summary for an organization observed #
GET /users/{username}/settings/billing/ai_credit/usage Get billing AI credit usage report for a user #
GET /users/{username}/settings/billing/premium_request/usage Get billing premium request usage report for a user #
GET /users/{username}/settings/billing/usage Get billing usage report for a user #
GET /users/{username}/settings/billing/usage/summary Get billing usage summary for a user #

Documentation

📖
Documentation
https://docs.github.com/en/rest/apps
📖
Documentation
https://docs.github.com/en/rest/codes-of-conduct/codes-of-conduct
📖
Documentation
https://docs.github.com/en/rest/emojis
📖
Documentation
https://docs.github.com/en/rest/gitignore
📖
Documentation
https://docs.github.com/en/rest/apps/installations
📖
Documentation
https://docs.github.com/en/rest/enterprise-admin
📖
Documentation
https://docs.github.com/en/rest/activity/events
📖
Documentation
https://docs.github.com/en/rest/orgs
📖
Documentation
https://docs.github.com/en/rest/rate-limit
📖
Documentation
https://docs.github.com/en/enterprise-cloud@latest/rest/scim
📖
Documentation
https://docs.github.com/en/rest/using-the-rest-api/getting-started-with-the-rest-api
📖
Documentation
https://docs.github.com/en/rest/teams
📖
Documentation
https://docs.github.com/en/rest/meta/meta
📖
Documentation
https://docs.github.com/en/rest/actions
📖
Documentation
https://docs.github.com/en/rest/branches
📖
Documentation
https://docs.github.com/en/rest/code-scanning
📖
Documentation
https://docs.github.com/en/rest/collaborators
📖
Documentation
https://docs.github.com/en/rest/dependabot
📖
Documentation
https://docs.github.com/en/rest/webhooks
📖
Documentation
https://docs.github.com/en/rest/pulls
📖
Documentation
https://docs.github.com/en/rest/git/tags
📖
Documentation
https://docs.github.com/en/rest/repos/autolinks
📖
Documentation
https://docs.github.com/en/rest/collaborators/invitations
📖
Documentation
https://docs.github.com/en/rest/billing

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/github:github-billing-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

github-billing-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Github Billing API
  version: 1.1.4
  contact:
    name: Support
    url: https://support.github.com/contact?tags=dotcom-rest-api
  license:
    name: MIT
    url: https://spdx.org/licenses/MIT
  termsOfService: https://docs.github.com/articles/github-terms-of-service
  x-github-plan: api.github.com
  description: 'Operations tagged billing across 2 of this provider''s published API definitions: github-github-full.yml, github-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.github.com
tags:


# --- truncated at 32 KB (89 KB total) ---
# Full source: https://artifacts.apis.io/github/openapi/github-billing-api-openapi.yml