Version: 5.1.1

Tracks

GetSeveralTracks

Get Spotify catalog information for multiple tracks based on their Spotify IDs.

Parameters

NameDescriptionExample
idsA list of the Spotify IDs for the tracks. Maximum: 50 IDs.new List<String> {"6Y1CLPwYe7zvI8PJiWVz6T"}
marketAn ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking."DE"

Returns a SeveralTracks object which has one property, List<FullTrack> Tracks

Usage

SeveralTracks severalTracks = _spotify.GetSeveralTracks(new List<String> {"6Y1CLPwYe7zvI8PJiWVz6T"});
severalTracks.Tracks.ForEach(track => Console.WriteLine(track.Name));

GetTrack

Get Spotify catalog information for a single track identified by its unique Spotify ID.

Parameters

NameDescriptionExample
idThe Spotify ID for the track."6Y1CLPwYe7zvI8PJiWVz6T"
marketAn ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking."DE"

Returns a FullTrack

Usage

FullTrack track = _spotify.GetTrack("6Y1CLPwYe7zvI8PJiWVz6T");
Console.WriteLine(track.Name);

GetAudioAnalysis

Get a detailed audio analysis for a single track identified by its unique Spotify ID.

Parameters

NameDescriptionExample
idThe Spotify ID for the track."6Y1CLPwYe7zvI8PJiWVz6T"

Returns a AudioAnalysis. This object is currently lacking Spotify documentation but archived EchoNest documentation is relevant.

Usage

AudioAnalysis analysis = _spotify.GetAudioAnalysis("6Y1CLPwYe7zvI8PJiWVz6T");
Console.WriteLine(analysis.Meta.DetailedStatus);
Last updated on by L0um15