---
title: "Search Tracks"
method: POST
path: "/api/v1/tracks/search"
---

# Search Tracks

`POST /api/v1/tracks/search`

Search for analyzed tracks with filtering options.

Parameters:
----------
<b>x_api_key</b> : str (API key for authentication)<br>
<b>genre</b> : str, optional (Filter by specific genre)<br>
<b>limit</b> : int, default=50 (Maximum number of results, max 100)<br>
<b>offset</b> : int, default=0 (Number of results to skip)<br>
<b>filters</b> : AnalysisFilters, optional (Audio feature filters)<br>

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

Notes:
-----
Supports pagination and complex audio feature filtering.

## Query parameters

- `genre` string, nullable
- `limit` integer
- `offset` integer

## Headers

- `x-api-key` string

## Request body

- AnalysisFilters
  - `tempo_min` number, nullable
  - `tempo_max` number, nullable
  - `energy_min` number, nullable
  - `energy_max` number, nullable
  - `danceability_min` number, nullable
  - `danceability_max` number, nullable
  - `valence_min` number, nullable
  - `valence_max` number, nullable
  - `instrumentalness_min` number, nullable
  - `instrumentalness_max` number, nullable
  - `acousticness_min` number, nullable
  - `acousticness_max` number, nullable
  - `popularity_min` integer, nullable
  - `popularity_max` integer, nullable
  - `key` integer, nullable
  - `mode` integer, nullable

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