v68

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

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.

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

Path parameters

orgstring required

The organization name. The name is not case sensitive.

actor_type'installation' | 'classic_pat' | 'fine_grained_pat' | 'oauth_app' | 'github_app_user_to_server' required

The type of the actor

actor_idinteger required

The ID of the actor

Query parameters

min_timestampstring required

The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

max_timestampstring

The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.

Response

Response

total_request_countinteger

The total number of requests within the queried time period

rate_limited_request_countinteger

The total number of requests that were rate limited within the queried time period