Windows Apple Music: how to enumerate the local library or export it? Is Library.musicdb documented / API available?

Environment

Windows 11 [edition/build]: [e.g., 23H2, 22631.x]

Apple Music for Windows version: [e.g., 1.x.x from Microsoft Store]

Library folder: C:\Users<user>\Music\Apple Music\Apple Music Library.musiclibrary

Summary I need a supported way to programmatically enumerate the local Apple Music library on Windows (track file paths, playlists, etc.) for reconciliation with the on-disk Media folder. On macOS this used to be straightforward via scripting/export; on Windows I can’t find an equivalent.

What I’m seeing in the library bundle

Library.musicdb → not SQLite. First 4 bytes: 68 66 6D 61 ("hfma").

Library Preferences.musicdb → also starts with "hfma".

artwork.sqlite → SQLite but appears to be artwork cache only (no track file paths).

Extras.itdb → has SQLite format 3 header but (from a quick scan) not seeing track locations.

Genius.itdb → not a SQLite database on this machine.

What I’ve tried

Attempted to open Library.musicdb with SQLite providers → error: “file is not a database.”

Binary/string scans (ASCII, UTF-16LE/BE, null-stripped) of Library.musicdb → did not reveal file paths or obvious plist/XML/JSON blobs.

The Windows Apple Music UI doesn’t appear to expose “Export Library / Export Playlist” like legacy iTunes did, and I can’t find a public API for local library enumeration on Windows.

What I’m trying to accomplish

Read local track entries (absolute or relative paths), detect broken links, and reconcile against the Media folder. A read-only solution is fine; I do not need to modify the library.

Questions for Apple

Is the Library.musicdb file format documented anywhere, or is there a supported SDK/API to enumerate the local library on Windows?

Is there a supported export mechanism (CLI, UI, or API) on Windows Apple Music to dump the local library and/or playlists (XML/CSV/JSON)?

Is there a Windows-specific equivalent to the old iTunes COM automation or any MusicKit surface that can return local library items (not streaming catalog) and their file locations?

If none of the above exist today, is there a recommended workaround from Apple for library reconciliation on Windows (e.g., documented support for importing M3U/M3U8 to rebuild the local library from disk)?

Are there any plans/timeline for adding Windows feature parity with iTunes/Music on macOS for exporting or scripting the local library?

Why this matters For large personal libraries, users occasionally end up with orphaned files on disk or broken links in the app. Without an export or API, it’s difficult to audit and fix at scale on Windows.

Reference details (in case it helps triage)

Library.musicdb header bytes: 68-66-6D-61-A0-00-00-00-10-26-34-00-15-00-01-00 (ASCII shows hfma…).

artwork.sqlite is readable but doesn’t contain track file paths (appears limited to artwork).

I can supply a minimal repro tool and logs if that’s helpful.

Feature request (if no current API)

Add an official Export Library/Playlists action on Windows Apple Music, or

Provide a read-only Windows API (or schema doc) that surfaces track file locations and playlist membership from the local library.

Thanks in advance for any guidance or pointers to docs I might have missed.

Windows Apple Music: how to enumerate the local library or export it? Is Library.musicdb documented / API available?
 
 
Q