v68

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

Get time stats by actor

Get the number of API requests and rate-limited requests made within an organization by a specific actor within a specified time period.

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/time-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.

timestamp_incrementstring required

The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)

Response

Response

timestampstring
total_request_countinteger
rate_limited_request_countinteger