Albums

Save Albums for Current User

PUT
/me/albums

Save one or more albums to the current user's 'Your Music' library.

Authorization

oauth_2_0 user-library-modify
AuthorizationBearer <token>

Spotify supports OAuth 2.0 for authenticating all API requests.

In: header

Scope: user-library-modify

Query Parameters

ids*Spotify Album IDs

A comma-separated list of the Spotify IDs for the albums. Maximum: 20 IDs.

Request Body

application/json

ids?array<string>

A JSON array of the Spotify IDs. For example: ["4iV5W9uYEdYUVa79Axb7Rh", "1301WleyT98MSxVHPZCA6M"]A maximum of 50 items can be specified in one request. Note: if the ids parameter is present in the query string, any IDs listed here in the body will be ignored.

[key: string]?any

Response Body

application/json

application/json

application/json

curl -X PUT "https://example.com/me/albums?ids=382ObEPsp2rxGrnsizN5TX%2C1A2GTWGtFfWp7KSQTwWOyo%2C2noRn2Aes5aoNVsU6iWThc" \  -H "Content-Type: application/json" \  -d '{}'
Empty