Suggestions

:seedling:

Apple Music

As last.fm is no alternative for me due to public accounts, I found out that Apple provides an API for “[…] access[ing] information about the media found in […] the user’s personal iCloud Music Library.” Most interesting should be access to “user’s most recently played content”, so that the implementation of the Apple Music API is an alternative to last.fm.

Related: developer.apple.com/documentation/applemusicapi

19 votes

Tagged as Integration

Suggested 30 March 2019 by user deleted user

  • Sign in to comment and vote. Sign in by email
  • 01 April 2019 Belle Cooper approved this task

  • 01 April 2019 Belle Cooper edited this task

  • avatar

    Although there is an API (thank you Apple), the example for getting recently played music does not make it clear whether it will list each track. It implies only the related album is provided, but it could just be a bad example.

    01 April 2019
  • avatar

    Seems like there’s a different way to query the user’s played tracks that only includes music downloaded to the user’s device. This must be what the iOS last.fm app does, as it can only scrobble music played from Apple Music that’s downloaded to your device.

    A couple of Apple developer forum posts (1, 2) seem to indicate that you’re right, and the recently played endpoint only returns albums and stations, but not individual tracks.

    01 April 2019
  • avatar

    Both of those options are pretty sub-optimal then.

    02 April 2019
  • 02 April 2019
  • avatar

    Hi there, is it possible that Apple made some changes to their api as the history section mentions “Get historical information about which songs and stations the user played recently” (https://developer.apple.com/documentation/applemusicapi/history)? If so, I would really like an Apple Music integration :).

    08 December 2019
  • avatar

    Going by the example output, it still looks like it only lists albums, not individual tracks, unfortunately.

    08 December 2019
  • avatar

    Gotcha. Thanks for looking into this again.

    09 December 2019
  • avatar

    I think Apple changed this in the newest ios17 release, so this might be possible now? (quiteScrob, does this, even though it’s not picking up everything for me, but that might be a bug on their end, or just a limitation of iPhone / airPlay interactions with HomePods etc.

    The current workaround I have is using AirScrobble, which tracks all songs to last.fm, and connect that to exist.io. It comes with other trade-offs (AirScrobble basically Shazam’s all songs playing using the new Shazam API, and that has some hiccups still)

    22 September 2023