Get-GitHubBillingGithubBillingUsageReportUser

SYNOPSIS

Get billing usage report for a user

SYNTAX

__AllParameterSets

Get-GitHubBillingGithubBillingUsageReportUser [-Username] <string> [-Year <long>] [-Month <long>]
 [-Day <long>] [-Accept <string>]

ALIASES

This cmdlet has the following aliases,

  • Get-GHBillingGithubBillingUsageReportUser

DESCRIPTION

The Get-GitHubBillingGithubBillingUsageReportUser cmdlet invokes the GET method of the /users/{username}/settings/billing/usage endpoint (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.

Endpoint: GET /users/{username}/settings/billing/usage API version: 2026-03-10

EXAMPLES

EXAMPLE 1

Get-GitHubBillingGithubBillingUsageReportUser -Username 'octocat'

Invokes GET /users/{username}/settings/billing/usage

PARAMETERS

-Accept

The Accept header (media type) of the request Default value: application/vnd.github+json

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Day

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.

Query parameter [ day ]

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Month

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.

Query parameter [ month ]

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Username

The handle for the GitHub user account.

Path parameter [ username ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

-Year

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.

Query parameter [ year ]

Type: System.Int64
DefaultValue: 0
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: Named
  IsRequired: false
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: false
  ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

Objects with properties named like the path parameters can be piped to this function

{{ Fill in the Description }}

System.String

{{ Fill in the Description }}

OUTPUTS

The response of the GitHub API (objects

{{ Fill in the Description }}

NOTES

OperationId: billing/get-github-billing-usage-report-user Category: billing / usage