---
title: "Get Compatible Tracks"
method: POST
path: "/api/v1/recommendations/compatible"
---

# Get Compatible Tracks

`POST /api/v1/recommendations/compatible`

Get tracks that are musically compatible with a reference track.

Parameters:
----------
<b>params</b> : CompatibleParams<br>
    - track_id: str (Reference track ID)<br>
    - compatibility_type: str, default="both" (key, bpm, both)<br>
    - limit: int, default=20 (Number of recommendations)<br>
    - min_popularity: int, optional (Minimum popularity score)<br>
<b>x_api_key</b> : str (API key for authentication)<br>

Returns:
-------
TrackIDList<br>
    List of tracks compatible with the reference track<br>

Notes:
-----
Useful for DJ mixing, creating smooth transitions, or harmonic playlists.

## Headers

- `x-api-key` string

## Request body

- CompatibleParams
  - `track_id` string, required — Reference track ID
  - `compatibility_type` string — Type of compatibility: key, bpm, both
  - `limit` integer — Number of recommendations
  - `min_popularity` integer, nullable — Minimum popularity score

## 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)
