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.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The handle for the GitHub user account.
Query Parameters
Section titled “ Query Parameters ”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. 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.
Responses
Section titled “ Responses ”Response when getting a billing usage report
object
object
Date of the usage line item.
Product name.
SKU name.
Quantity of the usage line item.
Unit type of the usage line item.
Price per unit of the usage line item.
Gross amount of the usage line item.
Discount amount of the usage line item.
Net amount of the usage line item.
Name of the repository.
Examples
{ "usageItems": [ { "date": "2023-08-01", "product": "Actions", "sku": "Actions Linux", "quantity": 100, "unitType": "minutes", "pricePerUnit": 0.008, "grossAmount": 0.8, "discountAmount": 0, "netAmount": 0.8, "repositoryName": "user/example" } ]}Bad Request
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Scim Error
object
Example generated
{ "message": "example", "documentation_url": "example", "detail": "example", "status": 1, "scimType": "example", "schemas": [ "example" ]}Forbidden
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Internal Error
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Service unavailable
object
Example generated
{ "code": "example", "message": "example", "documentation_url": "example"}