Apple Music API > Fetch Recent > Can I get songs?

I want the recently played songs for a user. The documention doesn't specify what is included in the response other than to say "recently played resources." The responses I've gotten for myself contain only albums and playlists. Did I miss something or are songs not available in the Fetch Recent endpoint?


https://developer.apple.com/library/content/documentation/NetworkingInternetWeb/Conceptual/AppleMusicWebServicesReference/GetRecentlyPlayed.html#//apple_ref/doc/uid/TP40017625-CH62-SW1

Replies

Hey @Dott, 3 yrs later and I'm on the same boat as you. The endpoint for recently played returns only albums, playlists, and stations. But still no songs.

I tried playing song individually, and via "play next", but the individual tracks are not reflected in the endpoint's result.

This compares poorly against Spotify's API, which give you up to 50 most-recently played tracks.

Apple Music API Docs: https://developer.apple.com/documentation/applemusicapi/get_recently_played_resources
Spotify API Docs: https://developer dot spotify dot com/documentation/web-api/reference/#endpoint-get-the-users-currently-playing-track