github_api_insights_get_route_stats_by_actor
Retrieve API route usage statistics for a specific actor within an organization. Filter by time period, sort by metrics like request count or rate limits.
Instructions
Get route stats by actor
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"org": "<org>",
"actor_type": "<actor_type>",
"actor_id": "<actor_id>",
"min_timestamp": "<min_timestamp>"
},
"name": "github_api_insights_get_route_stats_by_actor"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | org | |
| page | No | 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)." | |
| sort | No | The property to sort the results by. | |
| actor_id | Yes | actor_id | |
| per_page | No | 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)." | |
| direction | No | The direction to sort the results by. | |
| actor_type | Yes | actor_type | |
| max_timestamp | No | 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`. | |
| min_timestamp | Yes | 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`. | |
| api_route_substring | No | Providing a substring will filter results where the API route contains the substring. This is a case-insensitive search. |