I'm trying to write a small app against the Spotify Web API with which I want to capture the currently active song. If the song is currently playing, I can easily use the /me/player/currently-playing endpoint to get the track and context. If the song is paused, however, this endpoint does only return HTTP 204, same with the /me/player endpoint (even though both in principle have an is_playing flag). This is why I'm trying to fall back to /me/player/recently-played in this case.
Just as a clarification: I started playback by clicking "Shuffle" on one of my public playlists. When playing, I can access the context through /me/player/currently-playing. I'm not in offline mode or a private session.
Thank you for your help!
P.S.: If there is a better way to get the currently playing song even if it has been paused for the last few minutes, please let me know as well. I've read the /me/player API documentation, but feel like I've missed some way to do better 🙂