Get-GitHubApiInsightSummaryStatsByActor

SYNOPSIS

Get summary stats by actor

SYNTAX

__AllParameterSets

Get-GitHubApiInsightSummaryStatsByActor [-Org] <string> [-ActorType] <string> [-ActorId] <long>
 -MinTimestamp <string> [-MaxTimestamp <string>] [-Accept <string>]

ALIASES

This cmdlet has the following aliases,

  • Get-GHApiInsightSummaryStatsByActor

DESCRIPTION

The Get-GitHubApiInsightSummaryStatsByActor cmdlet invokes the GET method of the /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id} endpoint (Get summary stats by actor)

Get overall statistics of API requests within the organization made by a specific actor. Actors can be GitHub App installations, OAuth apps or other tokens on behalf of a user.

Under normal conditions, you can expect API data to appear within 4-6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.

Endpoint: GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id} API version: 2026-03-10

EXAMPLES

EXAMPLE 1

'

Invokes GET /orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id}

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: ''

-ActorId

The ID of the actor

Path parameter [ actor_id ]

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

-ActorType

The type of the actor

Path parameter [ actor_type ]

Allowed values: ‘installation’, ‘classic_pat’, ‘fine_grained_pat’, ‘oauth_app’, ‘github_app_user_to_server’

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

-MaxTimestamp

The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) format: ‘YYYY-MM-DDTHH:MM:SSZ’.

Query parameter [ max_timestamp ]

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

-MinTimestamp

The minimum timestamp to query for stats. This is a timestamp in ISO 8601 (https://en.wikipedia.org/wiki/ISO_8601) format: ‘YYYY-MM-DDTHH:MM:SSZ’.

Query parameter [ min_timestamp ]

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

-Org

The organization name. The name is not case sensitive.

Path parameter [ org ]

Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: (All)
  Position: 0
  IsRequired: true
  ValueFromPipeline: false
  ValueFromPipelineByPropertyName: true
  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 }}

System.Int64

{{ Fill in the Description }}

OUTPUTS

The response of the GitHub API (objects

{{ Fill in the Description }}

NOTES

OperationId: api-insights/get-summary-stats-by-actor Category: orgs / api-insights