Federico Viticci, on MacStories:
Apple Music Wrapped generates a personalized music report that, by default, collects your 100 most-played songs added to your library in any given year since Apple Music was launched in 2015, sorting them from largest to smallest play count. The shortcut takes less than 30 seconds to run and the final report is opened in Safari as a custom webpage.
It works perfectly. Turns out I have listened to a lot of film music in 2018. You can find my playlist here (88 songs, 5h45m).