Easily get your Spotify playlist statistics with Python, such as average BPM, most frequent keys, danceability, energy, loudness, speechiness, acousticness, instrumentalness, liveness, valence, duration, and time signature.
Track: All I Want for Christmas Is You
Key: G
Mode: major
BPM: 150.273
Danceability: 0.336
Energy: 0.627
Loudness: -7.463
Speechiness: 0.0384
Acousticness: 0.164
Instrumentalness: 0
Liveness: 0.0708
Valence: 0.35
Duration: 241107
Time Signature: 4
--------------------------------------
...
...
...
...
...
...
Track: O Come
Key: C#/Db
Mode: major
BPM: 114.989
Danceability: 0.774
Energy: 0.883
Loudness: -4.692
Speechiness: 0.0547
Acousticness: 0.0677
Instrumentalness: 0
Liveness: 0.0867
Valence: 0.85
Duration: 308640
Time Signature: 4
--------------------------------------
Average BPM: 116.37132
Most frequent key: C
average_danceability: 0.5370000000000001
average_energy: 0.5373826666666666
average_loudness: -7.872506666666668
average_speechiness: 0.069644
average_acousticness: 0.37012173333333337
average_instrumentalness: 0.0011409013333333335
average_liveness: 0.16607199999999997
average_valence: 0.3917226666666668
average_duration: 3:52
average_time_signature: 3.8133333333333335