Skip to content
DocumentationAPI Reference

Check User's Saved Tracks

me.tracks.check(TrackCheckParams**kwargs) -> TrackCheckResponse
GET/me/tracks/contains

Check if one or more tracks is already saved in the current Spotify user's 'Your Music' library.

ParametersExpand Collapse
ids: str

A comma-separated list of the Spotify IDs. For example: ids=4iV5W9uYEdYUVa79Axb7Rh,1301WleyT98MSxVHPZCA6M. Maximum: 50 IDs.

ReturnsExpand Collapse
List[bool]

Check User's Saved Tracks

import os
from spotted import Spotted

client = Spotted(
    access_token=os.environ.get("SPOTIFY_ACCESS_TOKEN"),  # This is the default and can be omitted
)
response = client.me.tracks.check(
    ids="7ouMYWpwJ422jRcDASZB7P,4VqPOruhp5EdPBeR92t6lQ,2takcwOaAZWiXQijPHIx7B",
)
print(response)
[
  false,
  true
]
Returns Examples
[
  false,
  true
]