> ## Documentation Index
> Fetch the complete documentation index at: https://docs.entityml.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get User Request Count

> Return the total logged API request count for a user.

## Request

<ParamField path="user_id" type="string" required>
  User ID to inspect.
</ParamField>

## Response

<ResponseField name="user_id" type="string" />

<ResponseField name="total_requests" type="integer" />

## Example

<CodeGroup>
  ```python Python SDK theme={null}
  from entityml import EntityMLClient

  client = EntityMLClient()
  count = client.analytics.get_user_request_count(user_id="YOUR_USER_ID")
  print(count["total_requests"])
  ```

  ```bash CLI theme={null}
  entityml analytics user-request-count --user-id YOUR_USER_ID
  ```

  ```bash Raw HTTP (cURL) theme={null}
  curl "https://api.entityml.com/api/v1/user/YOUR_USER_ID/requests/count"
  ```
</CodeGroup>

### Example response

```json theme={null}
{
  "user_id": "YOUR_USER_ID",
  "total_requests": 1420
}
```
