latestOpenAPI 3.1.02026-08-10202033.2 KB

d8deec5eca44

Get Track Analysis

Get detailed audio analysis for a specific track.

Parameters:

<b>track_id</b> : str (Spotify track ID)<br> <b>x_api_key</b> : str (API key for authentication)<br>

Returns:

TrackAnalysis<br> Basic track info (name, artists, genre)<br> Track duration in milliseconds<br> Audio features (tempo, key, mode, energy etc.)<br>

Notes:

If track hasn't been analyzed, initiates analysis and returns processing status.

get/api/v1/track/{track_id}

Path parameters

track_idstring required

Headers

x-api-keystring

Response

Successful Response

idstring required

Spotify track ID

namestring required

Track name

artistsstring[] required

List of artists

genrestring nullable

Track genre

isrcstring nullable

International Standard Recording Code

popularityinteger nullable

Popularity score (0-100)

duration_msinteger nullable

Track duration in milliseconds