Api endpoint for mood and genre

Tags: #<Tag:0x00007fea48a449f0>

I just found a mood and genre playlist generator at AcousticBrainz Moods. But its broken :s I was wondering how they’ve done it. In the doc, acousticbrainz do not provide api endpoints to find songs by genre or mood given a tolerence. Is there some endpoint not documented ? Or they used a dump of the db ?

Thx ! :slight_smile:


great to hear that you found this application! In addition to my work on AcousticBrainz I also work at the Music Technology Group and was involved in this project.
We downloaded items from AcousticBrainz and made our own search database in order to be able to search by genre or mood. The source code for the application isn’t open yet, but I’ve just spoken to my colleagues and we will open it up soon.

What bugs do you see in the application? We will try and fix them.

We have future plans to offer search like this in the main AcousticBrainz API for the entire catalogue, but this is a new development project which we don’t have a lot of time for at the moment. We still have a number of other features that we want to finish first. Are you are developer? We’d love to have help on the project!


@alastairp It doesn’t generate any playlists :smiley: Gets an internal server error on querying the endpoint, e.g. http://mtg.upf.edu/demos/acousticbrainz/moods/playlist?genre=death+metal&size=15&tolerance=0.05&mood_relaxed=0.5


that sure is a bug. I recall a coworker indicating that he had some problems with this, I’ll see if we can take a look at it next week.


Would be amazing to see the code and use it for funkwhale playlist generation :slight_smile:

I’m a self-learned python nerd, I don’t know if I know enough to help but I’m very interested in music recommendation systems. If you have some dev work to do you can ping me :slight_smile: