Do you want to connect Apple Music to Last.fm? You can do that with the method introduced in this post.
How to Scrobble Apple Music with Last.fm on All Devices
How to Scrobble Apple Music with Last.fm - Pazusoft
Track My Music
How to connect your music app to last.fm · Exist
How to Scrobble Local iTunes Music to Last.fm
is there a way to connect my account to apple music? : r/lastfm
How to connect Last.fm to your Spotify account and see all of your music listening stats
Sing along with Apple Music on iPad - Apple Support
How do I connect Apple Music to Last FM : r/lastfm
How to Scrobble Apple Music with Last.fm - Pazusoft
View albums, playlists, and more in Music on iPhone - Apple Support