spotifyapple-musicapple-musickit

Apple Music API Get Currently Playing Song


I am working on an application using the Spotify and Apple Music APIs. Spotify has an endpoint called /me/player/currently-playing that returns the logged in user's currently playing song. Is there an equivalent for the Apple Music API?

I know the Apple Music API has a "get recently played" endpoint but I'm not sure if this endpoint will return the users currently playing song. Is there maybe another service I could use to accomplish this goal for Apple Music?


Solution

  • Unfortunately their API is pretty lame. If you not play anything at the moment you still got a song that was played recently even if that recently was a day ago. Even worse there is no unixdate attached result so you don't know when the song was last accessed.