I started using Last.fm in 2006 to log the songs I listened to, and was so in love with the data aggregation I'd write "what I listened to this year" posts to close out each year (like this one). For almost as long, I'd been wanting a way to auto-log the records I listened to - I dreamed of making the time to learn about and play with Shazam's API to get a version of vinyl scrobbling working. Fast forward twenty years, a lot of experimenting with Claude Code, and a successful personal project (also music related: a search bar for metal bands), and I finally got to work. I know vinyl scrobblers have been built a few times by now (like here, here, and here), but figuring out my options and building one very personal to me has been most of the fun.
After some time researching, I had three broad options:
- Log via audio recognition: So, turns out Shazam doesn't actually have an API, but there are similar APIs I could have either hooked up to an always-on mic, or trigger by pressing a button, holding my phone near the speaker, and waiting for match. I didn't like either option - creepy or too many steps, respectively - so this one was out pretty quickly.
- Log via sensors: Waving a record by a sensor could log an album as I put it on. This one would feel the most magical, but would involve putting an NFC chip in every single jacket of my (now medium-sized) collection, which would take hours of setup time.
- Log via barcode: The most physically clunky, but fit my most immediate need - start scrobbling quickly. As I tweak the setup, I could continue scrobbling and invest in the NFC solution in the longer term.
Aside - I have to give a shout to this very cool "year in music" writeup I found in my research. I found it via one of the open source projects - Vinyl Scanner - that one goes the NFC route, complete with a microcontroller built into a custom "now listening" shelf, for the ultimate magic scrobbling experience. The repo even includes instructions/schematic for building the shelf!
Ok, onto the proof of concept. My plan is to scan the barcode on a record when I take it out to spin, and a Raspberry Pi will look up a match from my Discogs collection, and log the album into an Airtable database.
I also wanted to build a search UI for manual lookup, in case I had a record with no barcode (many of my old 7-inches), or for some reason it didn't find a match. I also wanted to start using it while all my hardware was still arriving, so I started with the software-first.
I added another feature to the flow: My favorite Discogs app feature is the randomizer - shake your phone and it shows you a random item from your collection to put on (I use this all the time to be reminded of records I don't typically reach for). I decided to build this feature right into the lookup UI, so I could randomize and scrobble in just two clicks.
The magical part happened when I loaded the collection UI from my localhost - I wasn't convinced I needed to fetch album art for everything I owned as Claude Code suggested, but when I loaded the page, I gasped out loud when I saw all my records in a grid, staring back at me. Truly a magical moment.
And so far, it works! I've been scrobbling vinyl all weekend.
So excited to start doing my own Wrapped-style analysis on my vinyl habits - either manually like I used to with Last.fm, or by throwing the data into a tool like Hex to see what patterns it notices.
Part 2 to come when I get the hardware hooked up - it's finally arrived (I can't wait to share the Pi case I found), and I'll hopefully work on it in the next week or two.


