---
title: "Get subject stats"
method: GET
path: "/orgs/{org}/insights/api/subject-stats"
tags: ["orgs"]
---

# Get subject stats

`GET /orgs/{org}/insights/api/subject-stats`

Get API request statistics for all subjects within an organization within a specified time frame. Subjects can be users or GitHub Apps.

Under normal conditions, you can expect API data to appear within 4–6 hours after making a request. During incidents or periods of unusually high volume, it may take longer to show up.

## Path parameters

- `org` string, required

## Query parameters

- `min_timestamp` string, required
- `max_timestamp` string
- `page` integer
- `per_page` integer
- `direction` 'asc' | 'desc'
- `sort` string[]
- `subject_name_substring` string

## Response `200`

Response

- object[] — API Insights usage subject stats for an organization
  - `subject_type` string
  - `subject_name` string
  - `subject_id` integer
  - `total_request_count` integer
  - `rate_limited_request_count` integer
  - `last_rate_limited_timestamp` string, nullable
  - `last_request_timestamp` string

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
