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.
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. 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 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.
Responses
Section titled “ Responses ”Response when getting a billing premium request usage report
object
object
The year for the usage report.
The month for the usage report.
The day for the usage report.
The unique identifier of the user.
The product for the usage report.
The model for the usage report.
object
Product name.
SKU name.
Model name.
Unit type of the usage line item.
Price per unit of the usage line item.
Gross quantity of the usage line item.
Gross amount of the usage line item.
Discount quantity of the usage line item.
Discount amount of the usage line item.
Net quantity of the usage line item.
Net amount of the usage line item.
Examples
{ "timePeriod": { "year": 2025 }, "user": "monalisa", "usageItems": [ { "product": "Copilot", "sku": "Copilot Premium Request", "model": "GPT-5", "unitType": "requests", "pricePerUnit": 0.04, "grossQuantity": 100, "grossAmount": 4, "discountQuantity": 0, "discountAmount": 0, "netQuantity": 100, "netAmount": 4 } ]}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"}Resource not found
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"}