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

[Web API] <playlist>.public not coherent across different requests

[Web API] <playlist>.public not coherent across different requests

Plan: Premium
Country: France
Device: Web API
Operating System: Ubuntu

 

 

Hello,

 

I'm trying to get the public status of the playlist with id 4LhrxxiWqYvmGCGZywiZAj .
According to my player (linux client), this playlist is public.

 

The 2 following requests to the API returns me a different result:

 

- https://developer.spotify.com/console/get-current-user-playlists/
GET https://api.spotify.com/v1/me/playlists
=> response.items.find(({id}) => id == "4LhrxxiWqYvmGCGZywiZAj").public == false
(however some playlists appear as public)

 

- https://developer.spotify.com/console/get-playlists/
GET https://api.spotify.com/v1/users/{user_id}/playlists
=> response.items.find(({id}) => id == "4LhrxxiWqYvmGCGZywiZAj").public == false
(however some playlists appear as public)

 


At the opposite, the following one gives me the same response as my client did:
https://developer.spotify.com/console/get-playlist/
GET https://api.spotify.com/v1/playlists/{playlist_id}
=> response.public == true

 

Is there a problem you have already identified?
Have you already a plan to fix it?
I'm asking for (theoretical) deadlines to know if I should wait a fix within 2 weeks or if I should better adapt my code to use the last request instead of the first 🙂


Note: The owner have less than 100 playlists, not all of them are public.

Reply
2 Replies

Update: I just tested again the 3 queries on https://developer.spotify.com/console .
They now all return <playlist>.public == false, but my client still say the playlist is public.

I tried to make that playlist private then public again on the client: it works on the client, but doesn't change the API result.

I also tried to restart my computer and my client: this doesn't change the API result.

I've got the same problem. The public status seems to be inconsistent across different api calls.

Suggested posts