Generate playlist based on mood

Generate playlist based on mood






(iPhone 8, Samsung Galaxy 9, Macbook Pro late 2016)

Operating System

Windows 10


My Question or Issue

Is there a way to generate playlist based on mood(ex: happy, sad, relaxed, etc.)?

I read there's a way natively without requiring the need of machine learning based on liveness, valence, etc.

I read it somewhere it is possible woth the API on the developer page, but I may have misread it.

1 Reply

Mood can be expressed as it's valence and arousal value. There's a endpoint called Get Recommendations (console) where you can search with it. The only difference is that here you must use energy instead of arousal.

The endpoint also requires an artist id, a track id  or a genre. Here is how you can Get Available Genre Seeds (console).

Note: there is no way to search with a mood word directly with the API. So, you'll need to find a list of moods with their valence and arousal values on the internet for yourself.

Let me know if you want more information.



Suggested posts