---
title: "GET /api/v1/users/{user}:getStats"
method: GET
path: "/api/v1/users/{user}:getStats"
tags: ["UserService"]
---

# GET /api/v1/users/{user}:getStats

`GET /api/v1/users/{user}:getStats`

GetUserStats returns statistics for a specific user.

## Path parameters

- `user` string, required

## Response `200`

OK

- UserStats — User statistics messages
  - `name` string — The resource name of the user statistics singleton. Format: users/{user}/stats
  - `memoTypeStats` UserStatsMemoTypeStats — Memo type statistics.
    - `linkCount` integer
    - `codeCount` integer
    - `todoCount` integer
    - `undoCount` integer
  - `tagCount` object — The count of tags.
  - `memoCreatedTimestamps` string[] — The creation timestamps of the user's memos.
  - `memoUpdatedTimestamps` string[] — The latest update timestamps of the user's memos (one per memo, mirrors memo_created_timestamps). Used by the activity heatmap when the client's view is set to update_time basis.
  - `pinnedMemos` string[] — The pinned memos of the user.
  - `totalMemoCount` integer — Total memo count.

## Other responses

- `default` — Default error response

---

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