Get time stats
GET
/orgs/{org}/insights/api/time-stats https://api.github.com
Get the number of API requests and rate-limited requests made within an organization over a specified time period.
Parameters
path Path Parameters
| Name | Type |
|---|---|
org
required
The organization name. The name is not case sensitive. | string |
query Query Parameters
| Name | Type |
|---|---|
min_timestamp
required
The minimum timestamp to query for stats. This is a timestamp in ISO 8601 format: | string |
max_timestamp The maximum timestamp to query for stats. Defaults to the time 30 days ago. This is a timestamp in ISO 8601 format: | string |
timestamp_increment
required
The increment of time used to breakdown the query results (5m, 10m, 1h, etc.) | string |
Responses
200 application/json
Response
type ApiInsightsTimeStats = { timestamp?: string;total_request_count?: number;rate_limited_request_count?: number; }[]