ApplMusic API is very limiting

Hi, I am trying to build an app that picks songs from the Apple Music catalogue at random and plays them. Having gone through all the trouble to understand how the API works, I am concluding that this is next to impossible since the only way to pick songs from the catalogue is either by searching from them with a search term or by using their id. Both of this defeats the idea of doing a random search.

I am not even able to filter the catalogue and then pick from the subset as that seems to always give the same list of songs in the same order. For example I tried finding 500 songs mapped to the genre "Rock" by cycling through 20 URL calls with dynamic offset. For some reason I only got about 230 back. Surely there must be more.

Anyone out there with some good ideas?

Would be hugely appreciated and you would be my hero forever!!

ApplMusic API is very limiting
 
 
Q