Announcements

Help Wizard

Step 1

NEXT STEP

FAQs

Please see below the most popular frequently asked questions.

Loading article...

Loading faqs...

VIEW ALL

Ongoing Issues

Please see below the current ongoing issues which are under investigation.

Loading issue...

Loading ongoing issues...

VIEW ALL

create playlist track api give error

Solved!

create playlist track api give error

I'm having trouble with playlist add track api on spotipy, i'm trying to add playlist_id which provide by the create playlist api of playlist id 
i found the error  "Invalid base62 id"

Reply

Accepted Solutions
Marked as solution

Hi Bhumika12,

 

I can reproduce the error, but only when I don't provide a item URI. When I filled in a track URI, it worked.

The Add Items to Playlist endpoint requires you to provide item URIs, else it throws an error.

 

XimzendRising Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

View solution in original post

4 Replies

Hi Bhumika12,

 

Can you please post your code, so I can have a look at it? I use Spotipy myself regularly.

 

On PC, you can insert a code block by first clicking on … and then on </>

Note: remove the client secret before posting.

 

Cheers,

XimzendRising Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

Bhumika12_0-1725250348600.png
https://developer.spotify.com/documentation/web-api/reference/add-tracks-to-playlist

I tried on spotify playground and I still got the same error. I already checked the ids  :
playlistId : 1BN2svkAdkFbqlamX0TORJ, 

5zIvDmHYKv2k2GYpS4fVK0, 3WSjtW42zRM52MlcvWVM8I







Marked as solution

Hi Bhumika12,

 

I can reproduce the error, but only when I don't provide a item URI. When I filled in a track URI, it worked.

The Add Items to Playlist endpoint requires you to provide item URIs, else it throws an error.

 

XimzendRising Star
Help others find this answer and click "Accept as Solution".
If you appreciate my answer, maybe give me a Like.
Note: I'm not a Spotify employee.

thankyou for suggestion its working 😊

Suggested posts