GET
GET /organizations/{org}/settings/billing/budgets — GitHub API
GitHub token (required); https://api.github.com
GitHub APIGet all budgets for an organization
- Base URL
- https://api.github.com
- Auth
- Authorization: Bearer <GITHUB_API_KEY>
- Last verified
- 2026-10-20 · upstream hash matched
Actions Try in browser→
Agents: curl -H "Accept: text/markdown" this URL
→ 268 tokens · Vary: Accept
→ 268 tokens · Vary: Accept
Critical gotchas
GitHub recommends an Accept: application/vnd.github+json header and an explicit X-GitHub-Api-Version header.
Fine-grained tokens only authorize repositories and permissions selected when the token is created.
cURL
curl -X GET 'https://api.github.com/organizations/example-org/settings/billing/budgets?page=1&per_page=10&scope=enterprise&user=example-user' \ -H "Authorization: Bearer $GITHUB_TOKEN" \ -H 'Accept: application/vnd.github+json' \ -H 'X-GitHub-Api-Version: 2026-03-10'
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
| org | path | string | Yes | The organization name. The name is not case sensitive. |
| page | query | integer | No | The page number of the results to fetch. |
| per_page | query | integer | No | The number of results per page (max 100). |
| scope | query | string | No | Filter budgets by scope type. - `organization`: Budgets scoped to the organization. - `repository`: Budgets scoped to a repository. - `multi_user_customer`: Universal budgets that apply to all users in the organization. - `user`: Budgets scoped to an individual user. |
| user | query | string | No | Filter consumed amount details for budgets by the specified user login. |
Response 200 OK
{
"budgets": [
{
"id": "2066deda-923f-43f9-88d2-62395a28c0cdd",
"budget_type": "SkuPricing",
"budget_amount": 0,
"prevent_further_usage": true,
"budget_scope": "enterprise",
"budget_entity_name": "octocat/hello-world",
"user": "octocat",
"consumed_amount": 0,
"budget_product_sku": "string",
"budget_alerting": {
"will_alert": true,
"alert_recipients": [
"mona",
"lisa"
]
},
"expires_at": "2026-12-31"
}
],
"user": "string",
"effective_budget": {
"id": "string",
"budget_amount": 0,
"consumed_amount": 0
},
"has_next_page": true,
"total_count": 0
} Get a free GitHub API key → sponsored Affiliate link - we may earn a commission, at no extra cost to you.