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

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

`GET /playlists/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` — Ampache API error response payload.

## Changes

- **2026-07-17** `9abb9bf6d3bf` — 1 info
  - removed the non-success response with the status `400`
- **2026-06-25** `7ed7a764efd9` — 1 info
  - added the non-success response with the status `400`
- **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/playlists/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-service-production.skmtc.workers.dev/v1/apis/ampache/ampache-rest-api/revisions/0366bc42fb8f/schema)
