GET
Tracks

Get Waveform

Return normalized waveform samples for rendering audio visualizations.

/v1/tracks/:tune_id/waveform
Method
GET
Path
/v1/tracks/:tune_id/waveform
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/waveform

Request parameters

Path parameters

ParameterTypeRequiredDescription
tune_iduuidYesStable Tune identifier for the requested resource.

Response schema

Response fields

FieldTypeDescription
tune_iduuidTrack Tune identifier.
samplesnumber[]Normalized waveform amplitude values.
sample_rate_hzintegerSource audio sample rate.
window_msintegerMilliseconds represented by each sample.

Code example

Example response

application/json
{
  "data": {
    "tune_id": "3f2504e0-4f89-11d3-9a0c-0305e82c3301",
    "samples": [0.12, 0.35, 0.58, 0.72, 0.84, 0.91, 0.88, 0.76],
    "sample_rate_hz": 44100,
    "window_ms": 100
  }
}

Next steps

Keep exploring the reference