provider billing GET /organizations/{org}/settings/billing/premium_request/usage
@utdk/github /organizations/{org}/settings/billing/premium_request/usage
Get billing premium request usage report for an organization
Gets a report of premium request usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. **Note:** Only data from the past 24 months is accessible via this endpoint.
org path required
The organization name. The name is not case sensitive.
string
year query
If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year.
integer
month query
If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. Default value is the current month. If no year is specified the default `year` is used.
integer
day query
If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used.
integer
user query
The user name to query usage for. The name is not case sensitive.
string
model query
The model name to query usage for. The name is not case sensitive.
string
product query
The product name to query usage for. The name is not case sensitive.
string

Try it

Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

billing.getGithubBillingPremiumRequestUsageReportOrg
GET/organizations/{org}/settings/billing/premium_request/usage
Gets a report of premium request usage for an organization. To use this endpoint, you must be an administrator of an organization within an enterprise or an organization account. **Note:** Only data from the past 24 months is accessible via this endpoint.

Parameters

required

The organization name. The name is not case sensitive.

If specified, only return results for a single year. The value of `year` is an integer with four digits representing a year. For example, `2025`. Default value is the current year.

If specified, only return results for a single month. The value of `month` is an integer between `1` and `12`. Default value is the current month. If no year is specified the default `year` is used.

If specified, only return results for a single day. The value of `day` is an integer between `1` and `31`. If no `year` or `month` is specified, the default `year` and `month` are used.

The user name to query usage for. The name is not case sensitive.

The model name to query usage for. The name is not case sensitive.

The product name to query usage for. The name is not case sensitive.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.billing.getGithubBillingPremiumRequestUsageReportOrg()