I've been trying to display a list of upcoming songs from the queue in my app and I noticed that whenever Spotify player is shuffling the endpoint returns up to 20 songs, however when shuffle is disabled only 2 songs are coming from the endpoint. Please see the screenshots from Charles proxy:
Shuffle disabled:

Shuffle enabled:

Also, API always returns more songs that are actually in the queue. Please see the screenshots, I've attached a screenshot from Spotify app on Mac. You can see that it displays only 6 more songs in the queue (correct) but API returns 19 songs as seen in screenshots above.

This looks to me like a bug in API. At least the API should let us know if songs coming up are actually from the queue or from Radio
I hope you will take a look into it, this functionality is crucial to any music player API but it is clearly broken.