---
title: "GET /v2/settings/users/{userId}/api-usage-stats"
method: GET
path: "/v2/settings/users/{userId}/api-usage-stats"
tags: ["Users Api Service"]
---

# GET /v2/settings/users/{userId}/api-usage-stats

`GET /v2/settings/users/{userId}/api-usage-stats`

## Request

- Base URL: `https://app.metricool.com/api`
- URL: `https://app.metricool.com/api/v2/settings/users/{userId}/api-usage-stats`
- Auth: none declared

## Path parameters

- `userId` integer, required

## Query parameters

- `from` string, required
- `to` string, required
- `aggregation` string, required
- `includeEndpoints` boolean

## Response `200`

OK

- JsonOkListResponseApiConsumptionData
  - `metadata` object
  - `page` JsonPaging
    - `next` string
  - `data` ApiConsumptionData[]
    - `userId` integer
    - `endpoint` string
    - `calls` integer
    - `timeBucket` DateTimeInfo
      - `dateTime` string, required: Local Date-time represented with a certain timezone
      - `timezone` string: Timezone applied to the datetime

---

[API](https://skmtc.dev/metricool/apis/metricool-api.md) · [All operations](https://skmtc.dev/metricool/apis/metricool-api/llms.txt) · [OpenAPI document](https://skmtc.dev/metricool/apis/metricool-api/revisions/cd0ca612fa01?raw)
