v1

latestOpenAPI 3.0.32026-07-148993228.8 KB
Tracks

Get Track's Audio Analysis

Get a low-level audio analysis for a track in the Spotify catalog. The audio analysis describes the track’s structure and musical content, including rhythm, pitch, and timbre.

get/audio-analysis/{id}

Path parameters

idstring required

The Spotify ID for the track.

Example:11dFghVXANMlKmJXsNCbNl

Response

Audio analysis for one track

Example response

{
  "bars": [
    {
      "confidence": 0.925,
      "duration": 2.18749,
      "start": 0.49567
    }
  ],
  "beats": [
    {
      "confidence": 0.925,
      "duration": 2.18749,
      "start": 0.49567
    }
  ],
  "meta": {
    "analysis_time": 6.93906,
    "analyzer_version": "4.0.0",
    "detailed_status": "OK",
    "input_process": "libvorbisfile L+R 44100->22050",
    "platform": "Linux",
    "timestamp": 1495193577
  },
  "sections": [
    {
      "confidence": 1,
      "duration": 6.97092,
      "key": 9,
      "key_confidence": 0.297,
      "loudness": -14.938,
      "mode_confidence": 0.471,
      "tempo": 113.178,
      "tempo_confidence": 0.647,
      "time_signature": 4,
      "time_signature_confidence": 1
    }
  ],
  "segments": [
    {
      "confidence": 0.435,
      "duration": 0.19891,
      "loudness_max": -14.25,
      "loudness_max_time": 0.07305,
      "loudness_start": -23.053,
      "pitches": [
        0.212,
        0.141,
        0.294
      ],
      "start": 0.70154,
      "timbre": [
        42.115,
        64.373,
        -0.233
      ]
    }
  ],
  "tatums": [
    {
      "confidence": 0.925,
      "duration": 2.18749,
      "start": 0.49567
    }
  ],
  "track": {
    "analysis_channels": 1,
    "analysis_sample_rate": 22050,
    "code_version": 3.15,
    "duration": 207.95985,
    "echoprint_version": 4.15,
    "key": 9,
    "key_confidence": 0.408,
    "loudness": -5.883,
    "mode_confidence": 0.485,
    "num_samples": 4585515,
    "rhythm_version": 1,
    "start_of_fade_out": 201.13705,
    "synch_version": 1,
    "tempo": 118.211,
    "tempo_confidence": 0.73,
    "time_signature": 4,
    "time_signature_confidence": 0.994
  }
}