Apple Music have said in the past they don’t have a third party API available. They have worked with Sonos as an exception but it seems very unlikely especially given how they treat the rest of their ecosystem (walled garden approach).
I have seen AM discussed in similar threads to the above and the answer seems to be no.