GET
Tracks

Get Analysis

Return structural timing analysis for a track.

/v1/tracks/:tune_id/analysis
Method
GET
Path
/v1/tracks/:tune_id/analysis
Group
Tracks

Overview

How to use this endpoint

Use this endpoint when you need structured API data in a predictable JSON shape. Reference the request example, required parameters, and response fields below to wire it into your product or internal tool.

Response format

JSON response

All successful responses return data in a stable JSON envelope and use Tune UUIDs for resource identifiers.

Code example

Example request

request
GET /v1/tracks/3f2504e0-4f89-11d3-9a0c-0305e82c3301/analysis

Request parameters

Path parameters

ParameterTypeRequiredDescription
tune_iduuidYesStable Tune identifier for the requested resource.

Response schema

Response fields

FieldTypeDescription
tune_iduuidTrack Tune identifier.
duration_msintegerTrack duration in milliseconds.
num_barsintegerDetected bar count.
num_beatsintegerDetected beat count.
num_sectionsintegerDetected section count.
num_segmentsintegerDetected segment count.
num_tatumsintegerDetected tatum count.
analysisobjectLow-level arrays for bars, beats, sections, and segments.

Code example

Example response

application/json
{
  "data": {
    "tune_id": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
    "duration_ms": 243187,
    "num_bars": 64,
    "num_beats": 256,
    "num_sections": 8,
    "num_segments": 412,
    "num_tatums": 512,
    "analysis": {
      "bars": [{ "start": 0, "duration": 1.876, "confidence": 0.92 }],
      "beats": [{ "start": 0, "duration": 0.469, "confidence": 0.88 }],
      "sections": [{ "start": 0, "duration": 16.8, "tempo": 128, "key": 5, "mode": 0 }],
      "segments": [{ "start": 0, "duration": 0.22, "loudness_max": -6.4 }]
    }
  }
}

Next steps

Keep exploring the reference