How is the Apple Music app for Windows scriptable/programmatically accessible?

iTunes for Windows used to offer a COM interface and an additional VBScript interface.

What does Music app for Windows offer (the preview is currently available in the Windows app store)?

Here are a couple of more detailed points I am mainly concerned about:

  • Is there a documented API somewhere? Where?
  • What's the recommended technology to interact with the Music app on Windows?
  • VBScript and the like are great for manipulating individual tracks, but usually are a little slow, when one wants to get data about the whole library. So is there a fast way of accessing/reading data (like the iTunes Library framework on macOS)?
  • Can one access Apple Music via COM at all, even though the app is downloaded from the Windows app store (sandboxing)?

Thanks for your help.

(see also https://apple.stackexchange.com/q/459392/62735, if you want to earn Stack Overflow rep points)

Replies

This should be trivial to answer by an Apple employee...

TL;DR: Apple Music for Windows is not scriptable. There is no public API.

To the following questions:

Is there some API for Apple Music for Windows?

Will there be some API? And if so, where can I find the documentation?

Apple code level support gave me this answer:

We have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations.

If you would like for Apple to consider adding support for such features, please submit your suggestion request via Feedback Assistant (https://feedbackassistant.apple.com). For more information on Feedback Assistant, please visit https://developer.apple.com/bug-reporting.