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

# Get user stats

`GET /orgs/{org}/insights/api/user-stats/{user_id}`

Get API usage statistics within an organization for a user broken down by the type of access.

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
- `user_id` string, required

## Query parameters

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

## Response `200`

Response

- object[] — API Insights usage stats for a user
  - `actor_type` string
  - `actor_name` string
  - `actor_id` integer
  - `integration_id` integer, nullable
  - `oauth_application_id` integer, nullable
  - `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/ghec.md) · [All operations](https://skmtc.net/github/apis/ghec/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/ghec/revisions/8ae6d0c8716e/schema)
