diff --git a/spotipy/client.py b/spotipy/client.py index c3b4b69..ff55b12 100644 --- a/spotipy/client.py +++ b/spotipy/client.py @@ -712,6 +712,14 @@ class Spotify(object): else: return results + def audio_analysis(self, id): + ''' Get audio analysis for a track based upon its Spotify ID + Parameters: + - id - a track URIs, URLs or IDs + ''' + id = self._get_id('track', id) + return self._get('audio-analysis/'+id) + def _get_id(self, type, id): fields = id.split(':') if len(fields) >= 3: