GET
/orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}Get route stats by actor
Get API request count statistics for an actor broken down by route within a specified time frame.
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.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
orgstringrequired
The organization name. The name is not case sensitive.
actor_typestringrequired
The type of the actor
actor_idintegerrequired
The ID of the actor
min_timestampstringrequired
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`.
max_timestampstringoptional
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`.
pageintegeroptional
The page number of the results to fetch. For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
per_pageintegeroptional
The number of results per page (max 100). For more information, see "[Using pagination in the REST API](https://docs.github.com/rest/using-the-rest-api/using-pagination-in-the-rest-api)."
directionstringoptional
The direction to sort the results by.
sortarray<string>optional
The property to sort the results by.
api_route_substringstringoptional
Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.
200Response
http_methodstringoptional
The HTTP method
api_routestringoptional
The API path's route template
total_request_countintegeroptional
The total number of requests within the queried time period
rate_limited_request_countintegeroptional
The total number of requests that were rate limited within the queried time period
last_rate_limited_timestampstringoptional
last_request_timestampstringoptional