GET
Tracks

List Tracks

Return a paginated list of tracks. Supports text search as well as filtering by artist, album, and explicit flag.

/v1/tracks
Method
GET
Path
/v1/tracks
Group
Tracks

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/tracks?q=afterimage&limit=20

Request parameters

Query parameters

ParameterTypeRequiredDescription
qstringNoSearch against track and artist names.
artist_iduuidNoFilter to tracks associated with an artist.
album_iduuidNoFilter to tracks from a specific album.
explicitbooleanNoFilter by explicit content.
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": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
      "name": "Afterimage",
      "duration_ms": 243187,
      "track_number": 3,
      "disc_number": 1,
      "explicit": false,
      "isrc": "GBAYE0601650",
      "popularity": 72,
      "preview_url": "https://cdn.tune.dev/previews/3f2504e0.mp3",
      "available_markets": ["US", "GB", "CA"],
      "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