Check if one or more albums is already saved in the current Spotify user's 'Your Music' library.
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.spotify.com/v1/me/albums/contains?ids=' \
--header'Authorization;'
Response Response Example
200 - Example 1
[true]
Request
Query Params
ids
string
required
A comma-separated list of the Spotify IDs for the albums. Maximum: 50 IDs.
Header Params
Authorization
string
required
A valid access token from the Spotify Accounts service: see the Web API Authorization Guide for details. The user-library-readscope must have been authorized by the user.
Responses
🟢200On success, the HTTP status code in the response header is `200` OK and the response body contains a JSON array of `true` or `false` values, in the same order in which the `ids` were specified.
On error, the header status code is an [error code](https://d