MBID from Spotify metadata?

Hi, I’m working on a project that uses MBID for basically everything, and I’m stuck trying to map the spotify ID to the MBID. I know this has been asked before but I can’t quite find a solid solution to this. It should be possible, considering ListenBrainz scrobbles from Spotify, but I’m not able to find a way to do this. There should be some endpoint that takes in a spotify id and returns mbid, right?

Thanks for the help.

Edit: Using ISRC to start seems to work pretty well for most recordings, but it’s definitely not 100% return rate. Definitely needs to have fallbacks like spotify url or even name + artist + release.

1 Like

Hi!

There ought to be an endpoint that does that, but we don’t have one. We may in the future, but right now no. The best you can do right now is to use Spotify’s metadata API and make loads and loads of queries. This inefficiency is how the music industry likes it – everything is a pain in the ass.

4 Likes

You can try to search MB for the spotify url. Nowadays, a lot of spotify releases have their urls in mb due to importers adding them.
Recordings start to have their urls, but it’s quite a recent addition to harmony so less reliable

3 Likes