v68

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

Get billing usage report for a user

Gets a report of the total usage for a user.

Note: This endpoint is only available to users with access to the enhanced billing platform.

get/users/{username}/settings/billing/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. 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.

Response

Response when getting a billing usage report