---
title: "Get User Memory Statistics"
method: GET
path: "/user_memory_stats"
tags: ["Memory"]
---

# Get User Memory Statistics

`GET /user_memory_stats`

Retrieve paginated statistics about memory usage by user. Provides insights into user engagement and memory distribution across users.

## Query parameters

- `limit` integer, nullable — Number of user statistics to return per page
- `page` integer, nullable — Page number for pagination
- `user_id` string, nullable — User ID to filter statistics for
- `db_id` string, nullable — Database ID to query statistics from
- `table` string, nullable — Table to query statistics from

## Response `200`

User memory statistics retrieved successfully

- PaginatedResponseUserStatsSchema
  - `data` UserStatsSchema[], required — List of items for the current page
    - `user_id` string, required — User ID
    - `total_memories` integer, required — Total number of memories for this user
    - `last_memory_updated_at` string, date-time, nullable — Timestamp of the most recent memory update
  - `meta` PaginationInfo, required
    - `page` integer — Current page number (0-indexed)
    - `limit` integer — Number of items per page
    - `total_pages` integer — Total number of pages
    - `total_count` integer — Total count of items
    - `search_time_ms` number — Search execution time in milliseconds

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Not Found
- `422` — Validation Error
- `500` — Failed to retrieve user statistics

---

[API](https://skmtc.net/agno/apis/agno-api-reference.md) · [All operations](https://skmtc.net/agno/apis/agno-api-reference/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/agno/agno-api-reference/revisions/5f6149d395d0/schema)
