</code></pre></div><hr><h2id="getrelatedartists"><ahref="#getrelatedartists"aria-hidden="true"class="header-anchor">#</a> GetRelatedArtists</h2><blockquote><p>Get Spotify catalog information about artists similar to a given artist. Similarity is based on analysis of the Spotify community's listening history.</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 artist.</td><td><code>"1KpCi9BOfviCVhmpI4G2sY"</code></td></tr></tbody></table><p>Returns a <code>SeveralArtists</code> object which contains the property <code>List<FullArtist> Artists</code> (<ahref="https://developer.spotify.com/web-api/object-model/#artist-object-full"target="_blank"rel="noopener noreferrer">FullArtist<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">SeveralArtists</span> artists <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">GetRelatedArtists</span><spanclass="token punctuation">(</span><spanclass="token string">"1KpCi9BOfviCVhmpI4G2sY"</span><spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>
</code></pre></div><hr><h2id="getartiststoptracks"><ahref="#getartiststoptracks"aria-hidden="true"class="header-anchor">#</a> GetArtistsTopTracks</h2><blockquote><p>Get Spotify catalog information about an artist's top tracks by country.</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 artist.</td><td><code>"1KpCi9BOfviCVhmpI4G2sY"</code></td></tr><tr><td>country</td><td>The country: an ISO 3166-1 alpha-2 country code.</td><td><code>"DE"</code></td></tr></tbody></table><p>Returns a <code>SeveralTracks</code> object which contains the property <code>List<FullTrack> Tracks</code> (<ahref="https://developer.spotify.com/web-api/object-model/#track-object-full"target="_blank"rel="noopener noreferrer">FullTrack<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">SeveralTracks</span> tracks <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">GetArtistsTopTracks</span><spanclass="token punctuation">(</span><spanclass="token string">"1KpCi9BOfviCVhmpI4G2sY"</span><spanclass="token punctuation">,</span><spanclass="token string">"DE"</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>Tracks<spanclass="token punctuation">.</span>Count<spanclass="token punctuation">)</span><spanclass="token punctuation">;</span><spanclass="token comment">//How many tracks did we get?</span>
</code></pre></div><hr><h2id="getartistsalbums"><ahref="#getartistsalbums"aria-hidden="true"class="header-anchor">#</a> GetArtistsAlbums</h2><blockquote><p>Get Spotify catalog information about an artist's albums. Optional parameters can be specified in the query string to filter and sort the response.</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 artist.</td><td><code>"1KpCi9BOfviCVhmpI4G2sY"</code></td></tr><tr><td>[type]</td><td>A list of keywords that will be used to filter the response. If not supplied, all album types will be returned</td><td><code>AlbumType.All</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 album to return. Default: 0</td><td><code>0</code></td></tr><tr><td>[market]</td><td>An ISO 3166-1 alpha-2 country code. Supply this parameter to limit the response to one particular geographical market</td><td><code>"DE"</code></td></tr></tbody></table><p>Returns a <ahref="https://developer.spotify.com/web-api/object-model/#album-object-simplified"target="_blank"rel="noopener noreferrer">SimpleAlbum<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>SimpleAlbum<spanclass="token operator">></span> albums <spanclass="token operator">=</span> _spotify<spanclass="token punctuation">.</span><spanclass="token function">GetArtistsAlbums</span><spanclass="token punctuation">(</span><spanclass="token string">"1KpCi9BOfviCVhmpI4G2sY"</span><spanclass="token punctuation">,</span> AlbumType<spanclass="token punctuation">.</span>All<spanclass="token punctuation">)</span><spanclass="token punctuation">;</span>