How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

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 Billing API is one of 129 APIs that GitHub publishes on the APIs.io network, described by a machine-readable OpenAPI specification and an AsyncAPI event-driven specification.

This API exposes 1 JSON Schema definition.

Tagged areas include Billing and Usage. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an AsyncAPI specification, an API reference, and 1 JSON Schema.

This API exposes 15 operations across 12 paths, and defines 21 schemas. It is described by OpenAPI 3.2.0, at version 1.1.4.

Requests are made against 2 base URLs: https://api.github.com, {protocol}://{hostname}/api/v3.

15 operations 12 paths 21 schemas 1 DELETE12 GET1 PATCH1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
1.1.4
Base URL
https://api.github.com
Contact
License
Terms of Service
Resource Areas
1

Paths & Operations 15

Across 12 paths, the API surfaces 15 operations — 1 DELETE, 12 GET, 1 PATCH, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Billing 15

Monitor charges and usage from Actions and Packages.

GET
/organizations/{org}/settings/billing/ai_credit/usage
Get billing AI credit usage report for an organization
billing/get-github-billing-ai-credit-usage-report-org 7 params → 200400403404500503
GET
/organizations/{org}/settings/billing/budgets
Get all budgets for an organization
billing/get-all-budgets-org 5 params → 200404403500
POST
/organizations/{org}/settings/billing/budgets
Create a budget for an organization
billing/create-organization-budget 1 param body → 200400401403404422500
GET
/organizations/{org}/settings/billing/budgets/{budget_id}
Get a budget by ID for an organization
billing/get-budget-org 2 params → 200400404403500503
PATCH
/organizations/{org}/settings/billing/budgets/{budget_id}
Update a budget for an organization
billing/update-budget-org 2 params body → 200400401403404422500
DELETE
/organizations/{org}/settings/billing/budgets/{budget_id}
Delete a budget for an organization
billing/delete-budget-org 2 params → 200400404403500503
GET
/organizations/{org}/settings/billing/premium_request/usage
Get billing premium request usage report for an organization
billing/get-github-billing-premium-request-usage-report-org 7 params → 200400403404500503
GET
/organizations/{org}/settings/billing/usage
Get billing usage report for an organization
billing/get-github-billing-usage-report-org 4 params → 200400403500503
GET
/organizations/{org}/settings/billing/usage/summary
Get billing usage summary for an organization
billing/get-github-billing-usage-summary-report-org 7 params → 200400403500503
GET
/users/{username}/settings/billing/ai_credit/usage
Get billing AI credit usage report for a user
billing/get-github-billing-ai-credit-usage-report-user 6 params → 200400403404500503
GET
/users/{username}/settings/billing/premium_request/usage
Get billing premium request usage report for a user
billing/get-github-billing-premium-request-usage-report-user 6 params → 200400403404500503
GET
/users/{username}/settings/billing/usage
Get billing usage report for a user
billing/get-github-billing-usage-report-user 4 params → 200400403500503
GET
/users/{username}/settings/billing/usage/summary
Get billing usage summary for a user
billing/get-github-billing-usage-summary-report-user 7 params → 200400403404500503
GET
/enterprises/{enterprise}/settings/billing/advanced-security
GitHub Get GitHub Advanced Security Active Committers for an Enterprise
billing/get-github-advanced-security-billing-ghe 3 params → 200403
GET
/orgs/{org}/settings/billing/advanced-security
GitHub Get GitHub Advanced Security Active Committers for an Organization
billing/get-github-advanced-security-billing-org 3 params → 200403

Schemas 21

The contract defines 21 schemas that model the data the API accepts and returns. The most detailed are budget (11 properties), get-budget (10 properties), billing-usage-summary-report-user (6 properties), billing-ai-credit-usage-report-org (6 properties). Each schema is shown below with its type and property counts.

get_all_budgets
object
5 properties 1 required
billing-usage-report
object
1 property
basic-error
object
Basic Error
4 properties
billing-ai-credit-usage-report-user
object
5 properties 3 required
validation-error
object
Validation Error
3 properties 2 required
billing-usage-summary-report-user
object
6 properties 3 required
update-budget
object
2 properties 2 required
delete-budget
object
2 properties 2 required
billing-ai-credit-usage-report-org
object
6 properties 3 required
create-budget
object
2 properties 2 required
scim-error
object
Scim Error
6 properties
billing-premium-request-usage-report-org
object
6 properties 3 required
billing-premium-request-usage-report-user
object
5 properties 3 required
get-budget
object
10 properties 8 required
billing-usage-report-user
object
1 property
budget
object
11 properties 7 required
billing-usage-summary-report-org
object
6 properties 3 required
advanced-security-active-committers-repository
object
3 properties 3 required
advanced-security-active-committers-user
object
2 properties 2 required
basic-error_2
object
Basic Error
4 properties
advanced-security-active-committers
object
3 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

github-billing-api-openapi.yml Raw ↑

Other APIs GitHub publishes across the network.

GitHub Gists API
GitHub Issues API
GitHub Licenses API
GitHub Markdown API
GitHub Meta API
GitHub Projects API
GitHub Repos API
GitHub Search API
GitHub User API
GitHub Deployments API
GitHub Releases API
GitHub Pages API
Where this information came from

This is an independent, third-party profile of GitHub Billing API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.