---
title: "Browse tracks"
method: GET
path: "/v1/tracks/browse"
tags: ["Tracks"]
---

# Browse tracks

`GET /v1/tracks/browse`

## Request

- Base URL: `https://api.sonovault.now`
- URL: `https://api.sonovault.now/v1/tracks/browse`
- Auth: API key in header `x-api-key`

Discover tracks by filtering on label, artist, genre, or year. Returns up to 20 tracks ordered by release date (newest first) by default; pass `randomize=true` to sample 20 random tracks from the top-popularity pool instead. At least one filter parameter is required; calls with no filters return `400`. Filter by genre with either `genreId` (a canonical id from `GET /v1/genres`) or `genre` (a free-text exact name). Prefer `genreId` as it is stable and unambiguous; use `genre` only to reach rare subgenres that `/v1/genres` does not list. `genre` and `genreId` are mutually exclusive; passing both returns `400`.

**Requires a paid plan**: the free tier returns `403` for this endpoint.

## Query parameters

- `labelId` integer
- `artistId` integer
- `genre` string
- `genreId` integer
- `year` integer
- `randomize` boolean

## Response `200`

Successful response

- object
  - `results` Track[], required: Up to 20 tracks matching the filters. Not paginated: there is no `next_cursor` on this endpoint.
    - `id` integer, required: Sonovault track ID. Stable, and the id every other endpoint takes.
    - `title` string, required: Track title, including any mix or version suffix.
    - `releases` TrackRelease[], required: The release we treat as representative for this recording, as a one-element array. We pick it by release type, then a title match, then earliest date, so a track that appeared on twenty compilations still reports the release it belongs to.
      - `id` integer, required: Release ID. Use it with `GET /v1/releases/:id`.
      - `title` string, required: Release title.
      - `artist` ArtistRef, required: A minimal artist reference. Artists are always nested objects on the public API, never a flat `artist_name` column.
        - `id` integer, required: Artist ID.
        - `name` string, required: Artist name.
      - `label` LabelRef, required: A minimal label reference.
        - `id` integer, required: Label ID.
        - `name` string, required: Label name.
      - `release_date` string, nullable, required: Release date, `YYYY-MM-DD`. `null` when unknown.
    - `artists` TrackArtist[], required: Artist credits, primary artists first.
      - `id` integer, required: Artist ID. Use it with `GET /v1/artists/:id`.
      - `name` string, required: Artist name as credited.
      - `is_primary` boolean, required: `true` for a main artist, `false` for a featured or supporting credit.
      - `is_remixer` boolean, required: `true` when the credit is for a remix of the track.
    - `isrc` string, nullable, required: One representative ISRC. A recording often has several (radio edit, reissue, regional release); look them all up with `GET /v1/tracks/isrc/:isrc`. `null` when no ISRC is known.
    - `duration` integer, nullable, required: Duration in seconds. `null` when unknown.
    - `bpm` number, nullable, required: Tempo in beats per minute, up to two decimals (e.g. `123`, `123.48`). Measured by the Lexicon DJ beat detector on the audio itself, and reported at full tempo: a drum & bass track reads `174`, not the half-time `87`. `null` when the track has not been analysed yet.
    - `key_alphanumeric` string, nullable, required: Musical key in alphanumeric notation: a number from 1 to 12 plus `A` for minor or `B` for major (e.g. `10B`). Keys one step apart on the wheel, or with the same number, mix harmonically. Our preferred key, measured by OpenKeyScan. `null` when the track has not been analysed yet.
    - `key_musical` string, nullable, required: The same key in standard musical notation (e.g. `D`, `Am`, `F#m`, `Ebm`, `Db`). A trailing `m` means minor. `null` when the track has not been analysed yet.
    - `key_open` string, nullable, required: The same key in Open Key notation, lowercase: a number from 1 to 12 plus `d` for major or `m` for minor (e.g. `3d`, `1m`). `null` when the track has not been analysed yet.
    - `keys` TrackKey[], required: Every key we hold for the track, one entry per source, each in all three notations. The single `key_*` fields carry the preferred entry. Empty array when the track has not been analysed yet.
      - `key_alphanumeric` string, required: Alphanumeric notation, e.g. `10B` (1-12, `A` minor, `B` major).
      - `key_musical` string, required: Standard musical notation, e.g. `D`, `F#m`.
      - `key_open` string, required: Open Key notation, lowercase, e.g. `3d` (major) or `1m` (minor).
      - `source` string, required: Who measured this key. Currently always `openkeyscan` (our own analysis with OpenKeyScan). More sources may be added, so treat unknown values as valid.
    - `genre` string[], required: Canonical genres. Empty array when the track is unclassified.
    - `subgenre` string[], required: Canonical subgenres. Empty array when none apply.

---

[API](https://skmtc.dev/sonovault/apis/sonovault-api.md) · [All operations](https://skmtc.dev/sonovault/apis/sonovault-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sonovault/apis/sonovault-api/revisions/0152fff23f2c?raw)
