provider orgs GET /orgs/{org}/insights/api/time-stats/users/{user_id}
@utdk/github /orgs/{org}/insights/api/time-stats/users/{user_id}
Get time stats by user
Get the number of API requests and rate-limited requests made within an organization by a specific user over a specified time period.
org path required
The organization name. The name is not case sensitive.
string
user_id path required
The ID of the user to query for stats
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
timestamp_increment query required
The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)
string

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.

apiInsights.getTimeStatsByUser
GET/orgs/{org}/insights/api/time-stats/users/{user_id}
Get the number of API requests and rate-limited requests made within an organization by a specific user over a specified time period.

Parameters

required

The organization name. The name is not case sensitive.

required

The ID of the user to query for stats

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`.

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`.

required

The increment of time used to breakdown the query results (5m, 10m, 1h, etc.)

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import github from '@utdk/github';

await github.apiInsights.getTimeStatsByUser()