Tracks missing from Apple Music API listening history

I have a product that relies on the Apple Music API's "recently played tracks" endpoint. Recently, a few users are reporting that there are songs missing from their history. I was able to observe this myself—the issue corrected itself after re-authenticating with Apple Music, but unfortunately for at least one user this is not helping in their case.

What's odd is that there is some inconsistency about what shows in the recently played tracks endpoint. Some examples

My own account:

✅ Music from my playlists

✅ Albums and singles

✅ Apple editorial playlists

❌ Playlists created by other users

User 1:

❌ Music from their playlists

✅ Albums and singles

❌ Apple editorial playlists

❌ Playlists created by other users

In most cases, all four of these would appear in the recent tracks API. What could cause these tracks to be missing from the listening history endpoint? Listening history is already enabled for the devices they're using, but the songs are appearing inconsistently.

Adding another confirmed case with a clear reproduction pattern.

Setup: Apple ID region Turkey (storefront tr), "Use Listening History" ON, Sync Library ON. Endpoint: GET /v1/me/recent/played/tracks.

What I observe:

  1. Play a track from the Library (e.g., the auto-generated "Favorite Songs" playlist or Media Library) → the play never appears in the API response.
  2. Play the same track from the catalog (e.g., found via Search) → it does appear — even though the track is in my library.
  3. Plays from a Station (including briefly skipped tracks) appear normally.
  4. The in-app listening history (Music app → History) shows all of these plays correctly, including the library ones.

So the app records library-sourced plays, but the API listening history silently drops them. The deciding factor seems to be the surface the playback was started from (Library vs. catalog/Station), not the track itself.

I checked both immediately after playback and hours later — the library plays never show up.

Is this a known server-side filtering, or should library-sourced plays be included? Happy to run more diagnostics if helpful.

Update with more data:

  1. Plays from my own playlists are also missing — even when the tracks are NOT in my library (pure catalog tracks added to a user playlist). So the exclusion is not about library content.

Updated pattern:

  • Catalog Search play → appears
  • Station plays (even skipped) → appear
  • Library / "Favorite Songs" plays → missing
  • User playlist plays (catalog tracks) → missing

This looks like the endpoint deliberately excludes playback initiated from user-curated sources (library, own playlists) while including Apple-curated flows (search, stations). Could you confirm whether this is intended behavior? It makes the endpoint unusable for whole-history use cases, since most listening typically happens from the user's own playlists.

Final update — pattern confirmed:

  1. Plays from Apple's editorial playlists (e.g., New Music Daily) do appear.

So the rule is consistent:

  • ✅ Apple-curated flows: Search, Stations, editorial playlists

  • ❌ User-curated flows: own playlists (even with pure catalog tracks), Library, Favorite Songs

The deciding variable is the initiating surface, not the track. Unless this is intended (in which case the endpoint is discovery-only by design and should be documented as such), it seems like a server-side filtering bug that makes whole-history use cases impossible.

Tracks missing from Apple Music API listening history
 
 
Q