---
title: "Get Duration Recommendations"
method: POST
path: "/api/v1/recommendations/duration"
---

# Get Duration Recommendations

`POST /api/v1/recommendations/duration`

Get track recommendations based on specific duration requirements.

## Headers

- `x-api-key` string

## Request body

- DurationParams
  - `min_duration_ms` integer — Minimum track duration in milliseconds
  - `max_duration_ms` integer — Maximum track duration in milliseconds
  - `genre` string, nullable — Optional genre filter
  - `limit` integer — Number of recommendations

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