<svgxmlns="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"><pathfill="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><polygonfill="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><ulclass="sidebar-links"><li><sectionclass="sidebar-group depth-0"><pclass="sidebar-heading open"><span>Albums</span><!----></p><ulclass="sidebar-links sidebar-group-items"><li><ahref="/SpotifyAPI-NET/web/albums.html#getalbumtracks"class="sidebar-link">GetAlbumTracks</a></li><li><ahref="/SpotifyAPI-NET/web/albums.html#getalbum"class="sidebar-link">GetAlbum</a></li><li><ahref="/SpotifyAPI-NET/web/albums.html#getseveralalbums"class="sidebar-link">GetSeveralAlbums</a></li></ul></section></li></ul></aside><mainclass="page"><divclass="theme-default-content content__default"><h1id="albums"><ahref="#albums"aria-hidden="true"class="header-anchor">#</a> Albums</h1><h2id="getalbumtracks"><ahref="#getalbumtracks"aria-hidden="true"class="header-anchor">#</a> GetAlbumTracks</h2><blockquote><p>Get Spotify catalog information about an album's tracks. Optional parameters can be used to limit the number of tracks returned.</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 album.</td><td><code>"5O7V8l4SeXTymVp3IesT9C"</code></td></tr><tr><td>[limit]</td><td>The maximum number of items to return. Default: 20. Minimum: 1. Maximum: 50.</td><td><code>20</code></td></tr><tr><td>[offset]</td><td>The index of the first track to return. Default: 0 (the first object).</td><td><code>0</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>"DE"</code></td></tr></tbody></table><p>Returns a <ahref="https://developer.spotify.com/web-api/object-model/#track-object-simplified"target="_blank"rel="noopener noreferrer">SimpleTrack<svgxmlns="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"><pathfill="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><polygonfill="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> wrapped inside a <ahref="https://developer.spotify.com/web-api/object-model/#paging-object"target="_blank"rel="noopener noreferrer">Paging-object<svgxmlns="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"><pathfill="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><polygonfill="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><divclass="language-csharp extra-class"><preclass="language-csharp"><code>Paging<spanclass="token operator"><</span>SimpleTrack<spanclass="token operator">></span> tracks <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">GetAlbumTracks</span><spanclass="token punctuation">(</span><spanclass="token string">"5O7V8l4SeXTymVp3IesT9C"</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
Console<spanclass="token punctuation">.</span><spanclass="token function">WriteLine</span><spanclass="token punctuation">(</span>tracks<spanclass="token punctuation">.</span>Total<spanclass="token punctuation">.</span><spanclass="token function">ToString</span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token punctuation">)</span><spanclass="token comment">//Display total album track count</span>
</code></pre></div><hr><h2id="getalbum"><ahref="#getalbum"aria-hidden="true"class="header-anchor">#</a> GetAlbum</h2><blockquote><p>Get Spotify catalog information for a single album.</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 album.</td><td><code>5O7V8l4SeXTymVp3IesT9C</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>"DE"</code></td></tr></tbody></table><p>Returns a <ahref="https://developer.spotify.com/web-api/object-model/#album-object-full"target="_blank"rel="noopener noreferrer">FullAlbum<svgxmlns="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"><pathfill="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><polygonfill="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><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">FullAlbum</span> album <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">GetAlbum</span><spanclass="token punctuation">(</span><spanclass="token string">"5O7V8l4SeXTymVp3IesT9C"</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
Console<spanclass="token punctuation">.</span><spanclass="token function">WriteLine</span><spanclass="token punctuation">(</span>album<spanclass="token punctuation">.</span>Name <spanclass="token operator">+</span><spanclass="token string">"| Popularity: "</span><spanclass="token operator">+</span> album<spanclass="token punctuation">.</span>Popularity<spanclass="token punctuation">)</span><spanclass="token punctuation">;</span><spanclass="token comment">//Display name and Popularity</span>
</code></pre></div><hr><h2id="getseveralalbums"><ahref="#getseveralalbums"aria-hidden="true"class="header-anchor">#</a> GetSeveralAlbums</h2><blockquote><p>Get Spotify catalog information for multiple albums identified by 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 albums. Maximum: 20 IDs.</td><td><code>new List<String>() { "5O7V8l4SeXTymVp3IesT9C" }</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>"DE"</code></td></tr></tbody></table><p>Returns a <code>SeveralAlbums</code> which Property "Albums" contains a list of <ahref="https://developer.spotify.com/web-api/object-model/#album-object-full"target="_blank"rel="noopener noreferrer">FullAlbum<svgxmlns="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"><pathfill="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><polygonfill="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><divclass="language-csharp extra-class"><preclass="language-csharp"><code><spanclass="token class-name">SeveralAlbums</span> albums <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">GetSeveralAlbums</span><spanclass="token punctuation">(</span><spanclass="token keyword">new</span><spanclass="token generic-method"><spanclass="token function">List</span><spanclass="token punctuation"><</span><spanclass="token class-name">String</span><spanclass="token punctuation">></span></span><spanclass="token punctuation">(</span><spanclass="token punctuation">)</span><spanclass="token punctuation">{</span><spanclass="token string">"5O7V8l4SeXTymVp3IesT9C"</span><spanclass="token punctuation">}</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>