GET
Tracks

Recommendations

Return recommended tracks based on one or more seed artists and/or genres. Pass either artist_ids, genres, or both.

/v1/recommendations
Method
GET
Path
/v1/recommendations
Group
Tracks

At least one of artist_ids or genres is required. Multiple values are passed as comma-separated lists.

Overview

How to use this endpoint

Use this endpoint when you need structured API data in a predictable JSON shape. Reference the request example, required parameters, and response fields below to wire it into your product or internal tool.

Response format

JSON response

All successful responses return data in a stable JSON envelope and use Tune UUIDs for resource identifiers.

Code example

Example request

request
GET /v1/recommendations?artist_ids=a87ff679-a2f3-71d1-9ad8-0800200c9a66&genres=electronic,ambient&limit=20

Request parameters

Query parameters

ParameterTypeRequiredDescription
artist_idsstringNoComma-separated list of artist Tune IDs to seed recommendations from.
genresstringNoComma-separated list of genre slugs such as electronic, ambient, or indie-pop.
limitintegerNoNumber of records to return. Default 20, maximum 100.
cursorstringNoOpaque cursor returned by a previous paginated response.

Response schema

Response fields

FieldTypeDescription
tune_iduuidUnique Tune track identifier.
namestringTrack title.
duration_msintegerTrack duration in milliseconds.
track_numberintegerPosition on the release.
disc_numberintegerDisc number on multi-disc releases.
explicitbooleanWhether the track is explicit.
isrcstring | nullInternational recording code.
popularityintegerRelative popularity score from 0 to 100.
preview_urlstring | nullShort preview audio URL if available.
available_marketsstring[]Country codes where the track is available.
albumobjectAlbum summary with tune_id, name, and release_date.
artistsobject[]Artist summaries with tune_id and name.
imagesobject[]Artwork images with url, width, and height.

Code example

Example response

application/json
{
  "data": [
    {
      "tune_id": "b3f6e4a0-4cf0-4c17-9eb1-b7456005d111",
      "name": "Midnight Runner",
      "duration_ms": 226420,
      "track_number": 6,
      "disc_number": 1,
      "explicit": false,
      "isrc": "QZDAA2331187",
      "popularity": 69,
      "preview_url": "https://cdn.tune.dev/previews/b3f6e4a0.mp3",
      "available_markets": ["US", "GB"],
      "album": {
        "tune_id": "7c9e6679-7425-40de-944b-e07fc1f90ae7",
        "name": "Signal Loss",
        "release_date": "2023-06-14"
      },
      "artists": [
        {
          "tune_id": "a87ff679-a2f3-71d1-9ad8-0800200c9a66",
          "name": "Nova Circuit"
        }
      ],
      "images": [
        {
          "url": "https://cdn.tune.dev/images/7c9e6679_300.jpg",
          "width": 300,
          "height": 300
        }
      ]
    }
  ],
  "pagination": {
    "limit": 20,
    "next_cursor": "eyJvZmZzZXQiOjIwfQ=="
  }
}

Next steps

Keep exploring the reference