Get Audio Features
get_audio_featuresAudio features for a track: tempo (BPM), key, mode (major/minor), time_signature, energy, danceability, valence, acousticness, instrumentalness, liveness, speechiness, loudness. Spotify restricts this endpoint to apps with extended access; without it the call is refused with a plain permission message.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"track_id": "11dFghVXANMlKmJXsNCQvb"
},
"name": "get_audio_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| track_id | Yes | Spotify track ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Track ID | |
| key | No | Key 0-11 (C=0 to B=11) | |
| uri | No | Spotify URI | |
| mode | No | Mode: 1=major, 0=minor | |
| tempo | No | Tempo in BPM | |
| energy | No | Energy 0-1 (intensity/activity) | |
| valence | No | Valence 0-1 (musicality positivity) | |
| liveness | No | Liveness 0-1 (audience presence) | |
| loudness | No | Loudness in dB | |
| track_href | No | Track API endpoint | |
| speechiness | No | Speechiness 0-1 (spoken words) | |
| acousticness | No | Acousticness 0-1 | |
| analysis_url | No | Detailed audio analysis endpoint | |
| danceability | No | Danceability 0-1 | |
| time_signature | No | Time signature (4/4 = 4) | |
| instrumentalness | No | Instrumentalness 0-1 (no vocals) |