Home / Servers / GitHub API / api_insights_get_route_stats_by_actor
Get route stats by actor
An MCP tool from the GitHub API server, hosted on mcp.hjlabs.in.
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.… [GET /orgs/{org}/insights/api/route-stats/{actor_type}/{actor_id}]
Name on the gateway: github_api__api_insights_get_route_stats_by_actor · read-only.
Parameters
| Name | Type | Description |
|---|---|---|
org required | string | The organization name. The name is not case sensitive. |
actor_type required | installation | classic_pat | fine_grained_pat | oauth_app | github_app_user_to_server | The type of the actor |
actor_id required | integer | The ID of the actor |
min_timestamp required | string | The minimum timestamp to query for stats. This is a timestamp in ISO 8601… |
max_timestamp | string | The maximum timestamp to query for stats. Defaults to the time 30 days ago.… |
page | integer | The page number of the results to fetch. For more information, see "Using… |
per_page | integer | The number of results per page (max 100). For more information, see "Using… |
direction | asc | desc | The direction to sort the results by. |
sort | array | The property to sort the results by. |
api_route_substring | string | Providing a substring will filter results where the API route contains the… |
How to call it
Through the Smart Gateway, any client can run it by name with call_tool, or let the gateway find it with search_tools:
{
"name": "github_api__api_insights_get_route_stats_by_actor",
"arguments": {
"org": "…",
"actor_type": "…",
"actor_id": 0,
"min_timestamp": "…"
}
}Or connect the GitHub API server directly, which lists 1,221 tools including this one:
claude mcp add --transport http hj-github-api https://mcp.hjlabs.in/mcp/github-api \
--header "Authorization: Bearer YOUR_API_KEY"Try asking
Use the get route stats by actor tool with org set to ….