provider orgs GET
/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id} @utdk/github
/orgs/{org}/insights/api/summary-stats/{actor_type}/{actor_id} Get summary stats by actor
Get overall statistics of API requests within the organization made by a specific actor. Actors can be GitHub App installations, OAuth apps or other tokens on behalf of a user.
- org path required
- The organization name. The name is not case sensitive.
- string
- min_timestamp query required
- 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`.
- string
- max_timestamp query
- 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`.
- string
- actor_type path required
- The type of the actor
- enum: installation, classic_pat, fine_grained_pat, oauth_app…
- actor_id path required
- The ID of the actor
- integer
Try it
Authentication
Configure credentials for GitHub v3 REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.
Saved automatically to browser storage.
Code snippet
Updates live as you fill in the form above.
TypeScript
import github from '@utdk/github';
await github.apiInsights.getSummaryStatsByActor()