Get route stats by actor
Get API request count statistics for an actor broken down by route within a specified time frame.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The organization name. The name is not case sensitive.
The type of the actor
The ID of the actor
Query Parameters
Section titled “ Query Parameters ”The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
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.
The page number of the results to fetch. For more information, see “Using pagination in the REST API.”
The number of results per page (max 100). For more information, see “Using pagination in the REST API.”
The direction to sort the results by.
The property to sort the results by.
Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search.
Responses
Section titled “ Responses ”Response
API Insights usage route stats for an actor
object
The HTTP method
The API path’s route template
The total number of requests within the queried time period
The total number of requests that were rate limited within the queried time period
Examples
[ { "http_method": "GET", "api_route": "/repositories/:repository_id", "total_request_count": 544665, "rate_limited_request_count": 13, "last_request_timestamp": "2024-09-18T15:43:03Z", "last_rate_limited_timestamp": "2024-09-18T06:30:09Z" }]