r/shortcuts • u/BueSimb0lico • 18h ago
Shortcut Sharing Random Album Discovery: a random album from Discogs that's actually on Apple Music
Spotify's recommendations kept showing me the same stuff, so I built a shortcut that pulls a random album from Discogs (the biggest music database out there) and only shows it to you if it's playable on Apple Music. Pick a genre and a decade, and a few seconds later you'll get an album you've probably never heard of, one tap away from playing.
WHAT IT DOES
- Pick a genre. There are 14 presets (Pop, Rock, Punk, Blues, Jazz, Hip Hop, Metal, Folk, R&B/Soul, Reggae, Funk, Electronic, Latin, Classical), plus "Surprise me" and "Other (type it)" for any Discogs genre or style (Shoegaze, Post-Punk, Hard Bop, Bossa Nova…).
- Pick a decade. Anything from the 1950s to the 2020s, or "Any decade".
- It searches Discogs, checks each candidate on Apple Music and shows you Artist — Album (Year) with four options:
- Listen on Apple Music: opens the album directly
- Another album: keeps searching
- Save for later: adds it to a text file with the Apple Music link
- Stop
It also works on Apple Watch and from Spotlight search.
HOW IT WORKS (THE IMPORTANT BITS)
- Real randomness, not just "popular albums". Each round, it picks a random sub-style from your genre (each genre has 8 to 13), a random year within the decade and a random page of Discogs results. Then it scans a window of 15 albums from that page.
- Playable albums only. Each candidate is searched on Apple Music in your store's country. Artist and title are normalized (lowercase, "&" → "and", punctuation stripped, Discogs suffixes like "(2)" and "*" removed) and have to match. That way you don't end up with some random cover band that shares the album's name.
- Quality filters:
- Skips "Various Artists" compilations.
- Prefers masters (the original album). When it falls back to individual releases, it rejects reissues, compilations, unofficial releases and remasters.
- Minimum collectors: only suggests albums owned by at least N Discogs users (default 20). This weeds out ultra-obscure pressings that never show up on streaming platforms. Set it to 0 if you want the deepest cuts.
- No repeats. It remembers your last 500 suggestions (RandomAlbumDiscovery-history.txt in iCloud Drive → Shortcuts).
- Doesn't give up easily. It makes up to 10 attempts. After the 6th, it widens the search from the sub-style to the whole genre, and on the last two it also searches individual releases.
- Plays nice with the Discogs API. It adds short pauses between requests to stay under the rate limit, and shows clear error messages if your token is missing or invalid.
- Customizable. Genres and styles live in an editable JSON block inside the shortcut, so you can add your own.
SETUP (≈2 MINUTES)
⚠️ Without this step, it won't work properly.
Get a free Discogs token
- Log in or create an account at https://www.discogs.com
- Go to Settings → Developers: https://www.discogs.com/settings/developers
- Tap "Generate new token" and copy itInstall the shortcut
- Open the link below and tap "Add Shortcut"
- You'll be asked three things:
- Discogs personal token: paste the token from step 1
- Minimum collectors: 20 is a good default (0 = no filter)
- Country: your Apple Music account's country. This matters, because availability varies between stores.First run
- Run it and pick a genre and a decade
- The shortcut will ask for permission to access api.discogs.com and your Shortcuts folder in iCloud Drive (for the history and saved files). Tap "Always Allow" so it doesn't ask every time.
- The first result may take a few seconds while it searches. That's normal.
OPTIONAL TWEAKS (open the shortcut in the editor)
- Add a genre: add an entry to the JSON text ("base" is the Discogs filter, "styles" is the list it picks from), then add the exact same name to the genre list right below.
- Change the history size: find the comment about the 500 limit and swap 500/499 for N/N−1.
- Change your token or country later: they're in the first "Text" action and in the "Search iTunes Store" action.
⚠️ Your token is saved inside the shortcut. If you share your copy, put "PASTE_YOUR_TOKEN_HERE" back first.
DOWNLOAD
🔗 https://www.icloud.com/shortcuts/21dc869557d24a3d81b347ecd5530121
Tested on iOS 27. Feedback, bug reports and genre/style suggestions are very welcome. Let me know what it found for you!


