---
title: "Get Recommendations By Features"
method: POST
path: "/api/v1/recommendations/by-features"
---

# Get Recommendations By Features

`POST /api/v1/recommendations/by-features`

Get track recommendations matching specific audio features.

Parameters:
----------
<b>features</b> : TargetFeatures (Target audio characteristics)<br>
    - tempo: float, optional (Target BPM, 0-300)<br>
    - energy: float, optional (Target energy level, 0-1)<br>
    - danceability: float, optional (Target danceability, 0-1)<br>
    - duration_ms: int, optional (Target duration in ms, 30000-900000)<br>
    - other audio features...<br>
<b>x_api_key</b> : str (API key for authentication)<br>

Returns:
-------
TrackIDList<br>
    List of matching track IDs<br>

Notes:
-----
Finds tracks that best match the specified audio characteristics.

## Headers

- `x-api-key` string

## Request body

- TargetFeatures
  - `tempo` number, nullable
  - `energy` number, nullable
  - `danceability` number, nullable
  - `valence` number, nullable
  - `instrumentalness` number, nullable
  - `acousticness` number, nullable
  - `duration_ms` integer, nullable — Target track duration in milliseconds (30s-15min)
  - `genre` string, nullable
  - `limit` integer

## Response `200`

Successful Response

- TrackIDList
  - `track_ids` string[], required

## Other responses

- `422` — Validation Error

---

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