---
title: "Get stats (song/album/artist etc) by type and filter"
method: GET
path: "/albums/stats"
tags: ["Browsing, Indexes and Lists"]
---

# Get stats (song/album/artist etc) by type and filter

`GET /albums/stats`

## Query parameters

- `filter` 'newest' | 'highest' | 'frequent' | 'recent' | 'forgotten' | 'flagged' | 'random', required
- `user_id` integer
- `username` string
- `offset` integer
- `limit` integer
- `cond` string
- `sort` string

## Response `200`

Stats result

- object

## Other responses

- `400` — HTTP 400 Bad Request (errors 4705, 4710).
- `403` — HTTP 403 Forbidden (errors 4700, 4701, 4703, 4742).
- `404` — HTTP 404 Not Found (error 4704).
- `410` — HTTP 410 Gone (error 4706).
- `500` — HTTP 500 Internal Server Error (error 4702).

## Changes

- **2026-06-25** `7ed7a764efd9` — 5 info
  - added the non-success response with the status `400`
  - added the non-success response with the status `403`
  - added the non-success response with the status `404`
  - added the non-success response with the status `410`
  - …1 more
- **2026-02-26** `c3f202b17eb7` — 1 info
  - endpoint added
- **2026-02-19** `07f53972fdd7` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/ampache/apis/ampache-rest-api/changes/albums/stats/get.md)

---

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