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

End of queue is ambiguous

End of queue is ambiguous

The new "Get the User's Queue" endpoint is pretty neat: https://developer.spotify.com/documentation/web-api/reference/#/operations/get-queue

 

However, it has a small problem that prevent it from being usable in all cases. You see, the queue will usually return exactly 20 items. The problem is that it never returns less, even when it's appropriate. This has the side effect that the end of a queue is never clear, as it simply repeats itself until 20 items are returned.

 

View on Spotify Client:

Selbi_0-1676390379939.png

 

Result of the API:

Selbi_1-1676390460874.png

 

There is no way to know if the queue is actually like this or if it's simply a side effect. It also doesn't give any information for whether the user has actually manually queued songs or if the upcomings songs are simply the next ones in the respective playlist context.

 

It would be nice if Spotify extended the API endpoint to reveal this information as well, as right now more than a good guess isn't possible.

Reply
0 Replies

Suggested posts