Spotify.NET/web/tracks.html

28 lines
17 KiB
HTML
Raw Normal View History

2019-08-16 23:41:36 +01:00
<!DOCTYPE html>
<html lang="en-US">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Tracks | SpotifyAPI-NET</title>
<meta name="description" content=":sound: An API for the Spotify-Client and the Spotify Web API, written in C#/.NET">
<link rel="preload" href="/assets/css/0.styles.a0ada997.css" as="style"><link rel="preload" href="/assets/js/app.cc44386d.js" as="script"><link rel="preload" href="/assets/js/2.db6f1a12.js" as="script"><link rel="preload" href="/assets/js/24.07659c28.js" as="script"><link rel="prefetch" href="/assets/js/10.29899bd4.js"><link rel="prefetch" href="/assets/js/11.0f6f8c29.js"><link rel="prefetch" href="/assets/js/12.2978ac7c.js"><link rel="prefetch" href="/assets/js/13.bf7ffcb9.js"><link rel="prefetch" href="/assets/js/14.76e71857.js"><link rel="prefetch" href="/assets/js/15.a0fc535e.js"><link rel="prefetch" href="/assets/js/16.427ccfec.js"><link rel="prefetch" href="/assets/js/17.a281444b.js"><link rel="prefetch" href="/assets/js/18.1f840ba3.js"><link rel="prefetch" href="/assets/js/19.c6343cc0.js"><link rel="prefetch" href="/assets/js/20.f7f0836a.js"><link rel="prefetch" href="/assets/js/21.700cbb77.js"><link rel="prefetch" href="/assets/js/22.312dbfd1.js"><link rel="prefetch" href="/assets/js/23.d5043e4d.js"><link rel="prefetch" href="/assets/js/25.81029a65.js"><link rel="prefetch" href="/assets/js/26.3876e2f9.js"><link rel="prefetch" href="/assets/js/3.e41cd288.js"><link rel="prefetch" href="/assets/js/4.d34ebd53.js"><link rel="prefetch" href="/assets/js/5.dfb9460f.js"><link rel="prefetch" href="/assets/js/6.06a21323.js"><link rel="prefetch" href="/assets/js/7.6ce7959d.js"><link rel="prefetch" href="/assets/js/8.26b7beaf.js"><link rel="prefetch" href="/assets/js/9.2255e63f.js">
<link rel="stylesheet" href="/assets/css/0.styles.a0ada997.css">
</head>
<body>
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">SpotifyAPI-NET</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/" class="nav-link">Home</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">SpotifyAPI.Web</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/web/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/web/examples.html" class="nav-link">Examples</a></li><li class="dropdown-item"><!----> <a href="/web/proxy.html" class="nav-link">Proxy</a></li><li class="dropdown-item"><!----> <a href="/web/albums.html" class="nav-link">- Albums</a></li><li class="dropdown-item"><!----> <a href="/web/artists.html" class="nav-link">- Artists</a></li><li class="dropdown-item"><!----> <a href="/web/browse.html" class="nav-link">- Browse</a></li><li class="dropdown-item"><!----> <a href="/web/follow.html" class="nav-link">- Follow</a></li><li class="dropdown-item"><!----> <a href="/web/library.html" class="nav-link">- Library</a></li><li class="dropdown-item"><!----> <a href="/web/personalization.html" class="nav-link">- Personalization</a></li><li class="dropdown-item"><!----> <a href="/web/player.html" class="nav-link">- Player</a></li><li class="dropdown-item"><!----> <a href="/web/playlists.html" class="nav-link">- Playlists</a></li><li class="dropdown-item"><!----> <a href="/web/profiles.html" class="nav-link">- Profiles</a></li><li class="dropdown-item"><!----> <a href="/web/search.html" class="nav-link">- Search</a></li><li class="dropdown-item"><!----> <a href="/web/tracks.html" class="nav-link router-link-exact-active router-link-active">- Tracks</a></li><li class="dropdown-item"><!----> <a href="/web/utils.html" class="nav-link">Utilities</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">SpotifyAPI.Auth</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/auth/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/auth/implicit_grant.html" class="nav-link">- ImplicitGrantAuth</a></li><li class="dropdown-item"><!----> <a href="/auth/token_swap.html" class="nav-link">- TokenSwapAuth</a></li><li class="dropdown-item"><!----> <a href="/auth/authorization_code.html" class="nav-link">- AutorizationCodeAuth</a></li><li class="dropdown-item"><!----> <a href="/auth/client_credentials.html" class="nav-link">- ClientCredentialsAuth</a></li></ul></div></div> <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET" target="_blank" rel="noopener noreferrer" class="repo-link">
🚀 GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="/" class="nav-link">Home</a></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">SpotifyAPI.Web</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/web/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/web/examples.html" class="nav-link">Examples</a></li><li class="dropdown-item"><!----> <a href="/web/proxy.html" class="nav-link">Proxy</a></li><li class="dropdown-item"><!----> <a href="/web/albums.html" class="nav-link">- Albums</a></li><li class="dropdown-item"><!----> <a href="/web/artists.html" class="nav-link">- Artists</a></li><li class="dropdown-item"><!----> <a href="/web/browse.html" class="nav-link">- Browse</a></li><li class="dropdown-item"><!----> <a href="/web/follow.html" class="nav-link">- Follow</a></li><li class="dropdown-item"><!----> <a href="/web/library.html" class="nav-link">- Library</a></li><li class="dropdown-item"><!----> <a href="/web/personalization.html" class="nav-link">- Personalization</a></li><li class="dropdown-item"><!----> <a href="/web/player.html" class="nav-link">- Player</a></li><li class="dropdown-item"><!----> <a href="/web/playlists.html" class="nav-link">- Playlists</a></li><li class="dropdown-item"><!----> <a href="/web/profiles.html" class="nav-link">- Profiles</a></li><li class="dropdown-item"><!----> <a href="/web/search.html" class="nav-link">- Search</a></li><li class="dropdown-item"><!----> <a href="/web/tracks.html" class="nav-link router-link-exact-active router-link-active">- Tracks</a></li><li class="dropdown-item"><!----> <a href="/web/utils.html" class="nav-link">Utilities</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><a class="dropdown-title"><span class="title">SpotifyAPI.Auth</span> <span class="arrow right"></span></a> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/auth/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/auth/implicit_grant.html" class="nav-link">- ImplicitGrantAuth</a></li><li class="dropdown-item"><!----> <a href="/auth/token_swap.html" class="nav-link">- TokenSwapAuth</a></li><li class="dropdown-item"><!----> <a href="/auth/authorization_code.html" class="nav-link">- AutorizationCodeAuth</a></li><li class="dropdown-item"><!----> <a href="/auth/client_credentials.html" class="nav-link">- ClientCredentialsAuth</a></li></ul></div></div> <a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET" target="_blank" rel="noopener noreferrer" class="repo-link">
🚀 GitHub
<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></nav> <ul class="sidebar-links"><li><section class="sidebar-group depth-0"><p class="sidebar-heading open"><span>Tracks</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/web/tracks.html#getseveraltracks" class="sidebar-link">GetSeveralTracks</a></li><li><a href="/web/tracks.html#gettrack" class="sidebar-link">GetTrack</a></li><li><a href="/web/tracks.html#getaudioanalysis" class="sidebar-link">GetAudioAnalysis</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="tracks"><a href="#tracks" aria-hidden="true" class="header-anchor">#</a> Tracks</h1> <h2 id="getseveraltracks"><a href="#getseveraltracks" aria-hidden="true" class="header-anchor">#</a> GetSeveralTracks</h2> <blockquote><p>Get Spotify catalog information for multiple tracks based on their Spotify IDs.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>ids</td> <td>A list of the Spotify IDs for the tracks. Maximum: 50 IDs.</td> <td><code>new List&lt;String&gt; {&quot;6Y1CLPwYe7zvI8PJiWVz6T&quot;}</code></td></tr> <tr><td>market</td> <td>An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking.</td> <td><code>&quot;DE&quot;</code></td></tr></tbody></table> <p>Returns a <code>SeveralTracks</code> object which has one property, <code>List&lt;FullTrack&gt; Tracks</code></p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token class-name">SeveralTracks</span> severalTracks <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">GetSeveralTracks</span><span class="token punctuation">(</span><span class="token keyword">new</span> <span class="token class-name">List</span><span class="token operator">&lt;</span>String<span class="token operator">&gt;</span> <span class="token punctuation">{</span><span class="token string">&quot;6Y1CLPwYe7zvI8PJiWVz6T&quot;</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
severalTracks<span class="token punctuation">.</span>Tracks<span class="token punctuation">.</span><span class="token function">ForEach</span><span class="token punctuation">(</span>track <span class="token operator">=&gt;</span> Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span>track<span class="token punctuation">.</span>Name<span class="token punctuation">)</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><hr> <h2 id="gettrack"><a href="#gettrack" aria-hidden="true" class="header-anchor">#</a> GetTrack</h2> <blockquote><p>Get Spotify catalog information for a single track identified by its unique Spotify ID.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>id</td> <td>The Spotify ID for the track.</td> <td><code>&quot;6Y1CLPwYe7zvI8PJiWVz6T&quot;</code></td></tr> <tr><td>market</td> <td>An ISO 3166-1 alpha-2 country code. Provide this parameter if you want to apply Track Relinking.</td> <td><code>&quot;DE&quot;</code></td></tr></tbody></table> <p>Returns a <a href="https://developer.spotify.com/web-api/object-model/#track-object-full" target="_blank" rel="noopener noreferrer">FullTrack<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a></p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token class-name">FullTrack</span> track <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">GetTrack</span><span class="token punctuation">(</span><span class="token string">&quot;6Y1CLPwYe7zvI8PJiWVz6T&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span>track<span class="token punctuation">.</span>Name<span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div><hr> <h2 id="getaudioanalysis"><a href="#getaudioanalysis" aria-hidden="true" class="header-anchor">#</a> GetAudioAnalysis</h2> <blockquote><p>Get a detailed audio analysis for a single track identified by its unique Spotify ID.</p></blockquote> <p><strong>Parameters</strong></p> <table><thead><tr><th>Name</th> <th>Description</th> <th>Example</th></tr></thead> <tbody><tr><td>id</td> <td>The Spotify ID for the track.</td> <td><code>&quot;6Y1CLPwYe7zvI8PJiWVz6T&quot;</code></td></tr></tbody></table> <p>Returns a AudioAnalysis. This object is currently lacking Spotify documentation but archived <a href="https://web.archive.org/web/20160528174915/http://developer.echonest.com/docs/v4/_static/AnalyzeDocumentation.pdf" target="_blank" rel="noopener noreferrer">EchoNest documentation<svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></a> is relevant.</p> <p><strong>Usage</strong></p> <div class="language-csharp extra-class"><pre class="language-csharp"><code><span class="token class-name">AudioAnalysis</span> analysis <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">GetAudioAnalysis</span><span class="token punctuation">(</span><span class="token string">&quot;6Y1CLPwYe7zvI8PJiWVz6T&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span>analysis<span class="token punctuation">.</span>Meta<span class="token punctuation">.</span>DetailedStatus<span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre></div></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/web/tracks.md" target="_blank" rel="noopener noreferrer">Help us improve this page!</a> <svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg></div> <div class="last-updated"><span class="prefix">Last Updated: </span> <span class="time">8/16/2019, 10:40:16 PM</span></div></footer> <!----> </main></div><div class="global-ui"></div></div>
<script src="/assets/js/app.cc44386d.js" defer></script><script src="/assets/js/2.db6f1a12.js" defer></script><script src="/assets/js/24.07659c28.js" defer></script>
</body>
</html>