|
There are a number of calls that return song IDs including song/search and the playlist APIs. If you want to get the audio summary for a particular song, search for it and add the audio_summary to the buckets. Here's a pythonic example:
> from pyechonest import song
>res=song.search(artist='weezer', title='el scorcho', buckets=['audio_summary'])
> res[0]
<song - El Scorcho>
> res[0].audio_summary
{u'key': 8, u'energy': 0.705673046276463, u'tempo': 79.534, u'mode': 1, u'time_signature': 4,
u'duration': 255.97342, u'loudness': -8.496,
u'audio_md5': u'd09648a7b96f8d8e51f5b67d27b3003b',
u'danceability': 0.46433030793175034}
|