UserService

GET /api/users/{user}:getStats

Changed on

GetUserStats returns memo statistics for one user, counting the user's memos that the caller can read.

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

userstring required

The user id.

Query parameters

filterstring

Optional. A CEL expression selecting the readable non-comment memos to count. Supports the same fields as ListMemos, including space.

Response

OK

namestring

Identifier. The resource name of the user statistics singleton. Format: users/{user}/stats

totalMemoCountinteger

The number of counted memos.

tagCountsobject

The number of counted memos per tag.

pinnedMemosstring[]

The pinned memos among the counted memos. Format: memos/{memo}

memoCreatedTimestampsstring[]

The creation timestamps of the counted memos, one per memo.

memoUpdatedTimestampsstring[]

The latest update timestamps of the counted memos (one per memo, mirrors memo_created_timestamps). Used by the activity heatmap when the client's view is set to update_time basis.

attachmentStorageBytesstring

Output only. Total persisted attachment size in bytes, including unlinked uploads and attachments in all spaces. Excludes temporary uploads and derived files. Returned only by GetUserStats for the authenticated user's own stats, independently of the request's memo filter.

Changes