v68

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-011,21696712.3 MB
billing

Get billing premium request usage report for a user

Gets a report of premium request usage for a user.

Note: Only data from the past 24 months is accessible via this endpoint.

get/users/{username}/settings/billing/premium_request/usage

Path parameters

usernamestring required

The handle for the GitHub user account.

Query parameters

yearinteger

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.

monthinteger

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.

dayinteger

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.

modelstring

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

productstring

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

Response

Response when getting a billing premium request usage report

userstring required

The unique identifier of the user.

productstring

The product for the usage report.

modelstring

The model for the usage report.