SpotifyApiSpotify LogoJS

AudioFeatures

extends Omit<TuneableTrack, "popularity">

An object containing all the features of the audio.

https://developer.spotify.com/documentation/web-api/reference/#object-audiofeaturesobject

Properties:

NameTypeDescription
acousticnessnumberA confidence measure from 0.0 to 1.0 of whether the track is acoustic. 1.0 represents high confidence the track is acoustic.
analysis_urlstringAn HTTP URL to access the full audio analysis of this track. An access token is required to access this data.
danceabilitynumberDanceability describes how suitable a track is for dancing based on a combination of musical elements including tempo, rhythm stability, beat strength, and overall regularity. A value of 0.0 is least danceable and 1.0 is most danceable.
duration_msnumberThe duration of the track in milliseconds.
energynumberEnergy is a measure from 0.0 to 1.0 and represents a perceptual measure of intensity and activity.
idstringThe Spotify ID of the track.
instrumentalnessnumberPredicts whether a track contains no vocals. “Ooh” and “aah” sounds are treated as instrumental in this context. Rap or spoken word tracks are clearly “vocal”.
keynumberThe key the track is in. Integers map to pitches using standard Pitch Class notation.
livenessnumberDetects the presence of an audience in the recording. Higher liveness values represent an increased probability that the track was performed live.
loudnessnumberThe overall loudness of a track in decibels (dB).
modenumberMode indicates the modality (major or minor) of a track, the type of scale from which its melodic content is derived. Major is represented by 1 and minor is 0.
speechinessnumberSpeechiness detects the presence of spoken words in a track.
temponumberThe overall estimated tempo of a track in beats per minute (BPM).
time_signaturenumberAn estimated overall time signature of a track.
track_hrefstringA link to the Web API endpoint providing full details of the track.
typestringThe object type: “audio_features”
uristringThe Spotify URI for the track.
valencenumberA measure from 0.0 to 1.0 describing the musical positiveness conveyed by a track.