
Apple Music Scrobbler
Scrobble the Apple Music app to Last.fm, on Windows and Mac. No browser extension and no iTunes needed.
The Apple Music app on Windows 11/10 doesn't support Last.fm, and the Music app on the Mac doesn't either. This small app sits in the Windows tray or the Mac menu bar, watches what Apple Music is playing and sends it to your Last.fm profile.

- Now playing shows up on your Last.fm profile while a song plays
- Scrobbles follow Last.fm's rules: songs longer than 30 seconds count once you've played half of them or 4 minutes, whichever comes first
- Clean titles: "Song [2022 Remaster]" is scrobbled as "Song" and "Album (Deluxe Edition)" as "Album", so your plays land on the normal Last.fm pages (this can be turned off)
- Works offline: scrobbles are saved and sent when you're back online
- Discord status: Listening to Apple Music on your Discord profile, with the song, artist, album art, a progress bar and an Apple Music link (this can be turned off)
- ♥ Love the current song from the tray menu
- Recent scrobbles in the menu, with anything still waiting to be sent
- Collaborations like "Joji & BENEE" can be scrobbled as the main artist (optional)
- One-click updates: when a new version is out, the app installs it and restarts
- Report a problem from the menu: opens a GitHub issue with the details already filled in
- Ignore list for artists you don't want on Last.fm or Discord
- Mac: catch up on iPhone plays: songs from your library played on your iPhone or iPad are scrobbled too (optional)
- English and Spanish, following your system language
- Dark mode on Windows, following your Windows setting (the Mac app follows macOS automatically)
- Keyboard shortcut to love the current song from any app
- Windows: a single ~80 KB
.exe. There's no installer and nothing else to download, because it uses the .NET Framework 4.8 that already comes with Windows 10/11
- Mac: a native menu bar app of about 1 MB for macOS 13 Ventura or newer, on Apple Silicon and Intel
Install on Windows
- Download
AppleMusicScrobbler.exe from the latest release.
- Put it somewhere permanent, for example
%LOCALAPPDATA%\Programs\AppleMusicScrobbler\. The "Start with Windows" option points at wherever the exe is.
- Run it. The setup window walks you through connecting your Last.fm account.
> Windows SmartScreen may warn about an unrecognized app because the exe isn't code-signed. Click More info → Run anyway, or build it yourself from source (see below). Each release lists the exe's SHA-256 so you can verify your download.
Updates: when a new version is out, the app shows a notification and an Update available menu item. Click either, then Yes to install it: the app downloads the new exe, checks it against the SHA-256 GitHub publishes for the release, swaps it in and restarts. Your settings and login are kept. (If the exe is in a folder you can't write to, such as Program Files, it opens the download page instead.) You can also always update by hand: quit, replace the exe, start it again.
Install on Mac

-
Download AppleMusicScrobbler-macOS.zip from the latest release and double-click it to unzip.
-
Move Apple Music Scrobbler to your Applications folder before opening it. (If you forget, the app offers to move itself there: from anywhere else it can't update itself or start at login.)
-
Open it. The first time, macOS blocks it because it isn't notarized by Apple (that needs a paid Apple developer account). To allow it once:
- Click Done on the warning.
- Open System Settings › Privacy & Security, scroll down to "Apple Music Scrobbler" was blocked, and click Open Anyway. Confirm with your password.
On macOS 15 and later, right-click › Open no longer skips this. Each release lists the zip's SHA-256 so you can verify your download, or you can build it yourself (see below).
-
The setup window walks you through connecting Last.fm. It also asks for access to Music: click Allow when macOS asks "Apple Music Scrobbler" wants access to control "Music". The app only reads how far into a song you are, so songs you play on repeat count every time. Everything else works without it.

The app lives in the menu bar as a ♪ note. There's no Dock icon.
Updates: when a new version is out, the app shows a notification and an Update Available menu item. Click either, then Install and Restart: the app downloads the new version, checks it against the SHA-256 GitHub publishes for the release, replaces itself and restarts. Your settings, login and Music permission are kept, and you don't go through the Open Anyway step again. (The app clears the download's quarantine flag after checking it, the same way other Mac apps' updaters do.) Updating by hand works too: quit, replace the app in Applications, open it again.
About the Last.fm API key
Release builds include an API key, so you only need to click Connect and then Yes, allow access on Last.fm.
If you built the app yourself without a key, setup asks you to create one. It's free and takes a minute:
Creating a Last.fm API key
- Open last.fm/api/account/create while signed in to Last.fm.
- Enter any application name and description, and leave Callback URL empty.
- Copy the API key and Shared secret into the setup window and click Connect.
- Click Yes, allow access on the Last.fm page that opens.
Usage
On Windows the app lives in the system tray as a red note icon (you may need to click the ^ arrow to see it). On the Mac it's the ♪ note in the menu bar. Click it for:
| Menu item | What it does |
|---|
| Now playing / Last scrobbled | Status. On the Mac the current song shows its album art; click it to open the song on Last.fm |
| Recent scrobbles | The last 10 songs sent to Last.fm (click one to open it there), anything still waiting to be sent with a Send now button, and a link to your Last.fm library |
| ♥ Love this song on Last.fm | Loves the current track. Checked when it's already loved on Last.fm; click again to remove the love. Shortcut from any app: Win+Alt+L (Windows), ⌃⌥L (Mac) |
| Don't scrobble artist | Adds the current artist to the ignore list: their songs aren't sent to Last.fm or shown on Discord (collaborations led by them too). Click again to undo |
| Pause scrobbling / Pause for 1 hour | Stops sending anything to Last.fm (the icon turns grey), until you turn it back on or for an hour. The Discord status keeps working |
| Your week | Your last 7 days on Last.fm: scrobbles, top artist and top song, with a link to the full list |
| Open my Last.fm profile | Opens your profile in the browser |
| Options › Start with Windows / Start at Login | Runs automatically when you sign in |
| Options › Show "Listening to" on Discord | Shows the current song on your Discord profile while the Discord app is running (on by default; hidden while paused) |
| Options › Weekly summary on Sunday evenings | A notification with Your week every Sunday from 7 pm (off by default) |
| Options › Show a notification when a song starts | Off by default. On the Mac it includes the album art |
| Options › ♥ Keyboard shortcut | Picks the love shortcut: Windows Win+Alt+L (standard), Alt+Shift+L or Ctrl+Shift+Alt+L; Mac ⌃⌥L (standard), ⌃⌘L or ⌃⌥⌘L; or Off. If another app already uses it, the menu stops showing it next to ♥ and the log says so |
| Options › Clean up titles | Removes "Remaster", "Deluxe Edition", "- Single" and similar from names (on by default) |
| Options › Scrobble only the main artist of collaborations | Scrobbles "Joji & BENEE" as "Joji", so collaborations count toward the main artist (off by default). Bands like Simon & Garfunkel or Earth, Wind & Fire are left alone: the app compares Last.fm's listener counts for the full name and the first artist, and only a collaboration's combined name has a tiny share of the first artist's listeners |
| Options › Catch Up on Plays from Other Devices (Mac) | Scrobbles songs you played on your iPhone or iPad. Music records the latest play of each library song and syncs it to the Mac through iCloud (within seconds); every 15 minutes the app looks for plays it didn't see itself and that aren't on Last.fm yet, and scrobbles them with the time you played them. Only songs in your library, only the latest play of each, and the Mac has to be on. Off by default. If you use Scan in the Last.fm iPhone app, use one or the other |
| Options › Ignored artists | The ignore list; click an artist to scrobble them again |
| Options › Check for updates automatically | Checks GitHub once a day (on by default) |
| Options › Switch Last.fm account... | Reconnects, or connects a different account |
| Options › Open log | Shows what was sent and any errors |
| Allow Access to Music… (Mac) | Shown only if Music access isn't allowed yet |
| Report a problem… | Opens a new GitHub issue with your app version, system and the last lines of the log filled in. You can edit it before submitting; the log shows the songs you played |
How it works
- Windows: reads the Windows System Media Transport Controls session belonging to Apple Music (
AppleInc.AppleMusicWin), polling once a second.
- Apple Music for Windows reports the artist field as
Artist — Album and leaves the album empty. The app splits that field back into artist and album.
- Mac: listens to the
com.apple.Music.playerInfo notification the Music app sends whenever a song starts, pauses or changes (this needs no permission). The notification doesn't include the playback position, and Music sends nothing when a song restarts on Repeat One, so the app also asks Music for its position once a second with AppleScript (that's the Automation permission). Without the permission it estimates the position with its own clock.
- Both versions use the same scrobble rules, title cleanup and Discord status, and share their unit tests.
- Calls the Last.fm API directly:
track.updateNowPlaying, track.scrobble (in batches of up to 50) and track.love. Sign-in uses Last.fm's desktop auth flow, so the app never sees your password.
- The Discord status goes through the Discord desktop app's local Rich Presence connection. Nothing is sent to Discord's servers by this app directly. Album art and Apple Music links come from Apple's public iTunes Search API.
Your data
On Windows, everything is stored in %APPDATA%\AppleMusicScrobbler\:
settings.xml: your options, your Last.fm username, and the session key and API secret encrypted with Windows DPAPI, so only your Windows user can read them
queue.xml: scrobbles waiting to be sent
scrobbler.log: activity log, capped at about 1 MB
On the Mac:
- Options are in the app's preferences (
~/Library/Preferences/io.github.ivanxfernandez.AppleMusicScrobbler.plist)
~/Library/Application Support/AppleMusicScrobbler/secrets.json: the Last.fm session key (and your API secret, if you use your own key), readable only by your Mac user
~/Library/Application Support/AppleMusicScrobbler/queue.json: scrobbles waiting to be sent
~/Library/Logs/AppleMusicScrobbler/scrobbler.log: activity log, capped at about 1 MB (Options › Open log opens it in Console)
The app talks to ws.audioscrobbler.com (Last.fm's API), itunes.apple.com (album art for Discord), api.github.com (update checks), and the Discord app on your computer.
Known limitations
- Only the Apple Music app is supported, not iTunes or Apple Music in a browser. For the web player, use Web Scrobbler.
- Radio stations and other streams with no artist aren't scrobbled.
- Repeat detection depends on Apple Music reporting the playback position. If you play the same song twice in a row, it normally scrobbles twice. On the Mac without Music access, a repeat after you've skipped around in the song can be missed.
Building
Windows
Requires the .NET SDK (8 or later) on Windows.
dotnet build AppleMusicScrobbler.sln -c Release
dotnet test AppleMusicScrobbler.sln -c Release
The exe is written to src/AppleMusicScrobbler/bin/Release/net48/AppleMusicScrobbler.exe.
Optional build properties:
| Property | Purpose |
|---|
-p:LastFmApiKey=… -p:LastFmApiSecret=… | Bake in a Last.fm API key so users skip creating their own. Pass it only at build time and keep it out of the repository. |
-p:GitHubRepo=owner/repo | Turn on update checks against that repository's releases. |
-p:DiscordClientId=… | Use a different Discord application for the status (its name is what appears after "Listening to"). An empty value hides the feature. |
-p:Version=1.2.3 | Set the version. |
Mac
Requires the Xcode Command Line Tools (xcode-select --install); full Xcode isn't needed. The code is in macos/: a Swift package with the app and its tests.
cd macos
swift test
./build-app.sh
That writes macos/build/Apple Music Scrobbler.app and a zip of it. The same values as on Windows can be passed as environment variables: LASTFM_API_KEY, LASTFM_API_SECRET, GITHUB_REPO, DISCORD_CLIENT_ID. UNIVERSAL=1 builds for Intel too. Run the app with --dry-run (open "build/Apple Music Scrobbler.app" --args --dry-run) to log instead of sending.
Releasing
The Release workflow does all of this automatically:
- Add the repository secrets
LASTFM_API_KEY and LASTFM_API_SECRET (Settings › Secrets and variables › Actions) once.
- Update CHANGELOG.md, then tag and push:
git tag v1.1.0
git push origin v1.1.0
- GitHub Actions runs the tests on Windows and macOS, builds the exe and the Mac app with the key, version and repository baked in, and publishes one release with both. Installed copies notify their users within a day.
Translations
The app follows the system language: Spanish if Windows or macOS is set to Spanish, otherwise English. To add a language, see CONTRIBUTING.md: it's one table per platform, and the tests list anything missing.
Developer options
AppleMusicScrobbler.exe --dry-run logs what it would send, without contacting Last.fm.
--pretend-version 1.0.0 (both platforms) checks for updates as if this were version 1.0.0, so the latest release is offered as an update. Use it to test the updater.
- On the Mac,
--move-to-applications moves a release build into Applications without asking (to test the move), and --save-setup-screenshot file.png draws the setup window into an image (used for docs/mac-setup.png).
tools/screenshots.ps1 regenerates the README screenshots (docs/menu.png, docs/setup.png).
tools/make-icon.ps1 regenerates app.ico from IconFactory.cs.
Uninstall
Windows: untick Options › Start with Windows in the tray menu, then choose Quit. Delete the exe and the %APPDATA%\AppleMusicScrobbler folder.
Mac: untick Options › Start at Login, choose Quit, and move the app to the Trash. To remove its data too, delete ~/Library/Application Support/AppleMusicScrobbler, ~/Library/Logs/AppleMusicScrobbler and ~/Library/Preferences/io.github.ivanxfernandez.AppleMusicScrobbler.plist.
License
MIT
Not affiliated with Apple or Last.fm.