Announcements

Help Wizard

Step 1

NEXT STEP

Playlist created successfully but tracks not visible — API reports total > 0 but no items shown

Playlist created successfully but tracks not visible — API reports total > 0 but no items shown

Plan

Premium

Country

Canada

Device

(iPhone 12, MacBook Pro 14-inch 2021)

Operating System

(iOS 18.7.1, Sequoia 15.6.1.)

 

My Question or Issue

 

Hi everyone,

I’m seeing an issue with the Spotify Web API when adding items to a playlist.
Here’s what happens:

  • I successfully created a playlist using the /v1/users/{user_id}/playlists endpoint.

  • I then call POST /v1/playlists/{playlist_id}/tracks to add track URIs (e.g., spotify:track:xxxx).

  • The call returns 201 Created with a snapshot_id, indicating success.

  • When I subsequently fetch the playlist (GET /v1/playlists/{playlist_id}/tracks), the totalfield shows > 0, but the items array is empty.

  • The playlist appears in my Spotify app, but no tracks are visible — even though the total suggests they were added.

Details:

  • Scopes requested: playlist-modify-public playlist-modify-private playlist-read-private.

  • Token type: authorization code (user token).

  • Using the same token, I can create playlists and add other metadata successfully.

  • I’ve verified that my URIs are valid and the API returns no errors.

  • Fetching with market=from_token sometimes reveals unplayable tracks, suggesting a visibility/market mismatch.

Expected:
Added tracks should appear in the playlist’s items array and be visible in the client.

Actual:
Playlist total increases, but items array is empty and no tracks appear in Spotify UI.

Question:
Has anyone else experienced this recently? Is this a known issue with the Add Items to Playlist endpoint or playlist market filtering?

Reply
0 Replies

Suggested posts

Let's introduce ourselves!

Hey there you,   Yeah, you! 😁   Welcome - we're glad you joined the Spotify Community!   While you here, let's have a fun game and get…

ModeratorStaff / Moderator/ 4 years ago  in Social & Random