mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
32 lines
25 KiB
HTML
32 lines
25 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>Artists | SpotifyAPI-NET</title>
|
|
<meta name="description" content="🔉 An API for the Spotify-Client and the Spotify Web API, written in C#/.NET">
|
|
|
|
|
|
<link rel="preload" href="/SpotifyAPI-NET/assets/css/0.styles.d9299793.css" as="style"><link rel="preload" href="/SpotifyAPI-NET/assets/js/app.6dc23df9.js" as="script"><link rel="preload" href="/SpotifyAPI-NET/assets/js/2.287d9ab7.js" as="script"><link rel="preload" href="/SpotifyAPI-NET/assets/js/12.e1511024.js" as="script"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/10.28544301.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/11.07c6886f.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/13.a13a382b.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/14.674b81b0.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/15.321c151d.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/16.fd1aff28.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/17.cfa6b532.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/18.5a36f4f9.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/19.80197dc7.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/20.7af15869.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/21.387f41fb.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/22.96500635.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/23.189ba1f0.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/24.7e642ae6.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/25.6979c250.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/26.3876e2f9.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/3.0be01aa8.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/4.a1a659d3.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/5.4ad72e80.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/6.1c2fc4bc.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/7.a8a3630c.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/8.a3754bd9.js"><link rel="prefetch" href="/SpotifyAPI-NET/assets/js/9.a5b78c60.js">
|
|
<link rel="stylesheet" href="/SpotifyAPI-NET/assets/css/0.styles.d9299793.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="/SpotifyAPI-NET/" 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="/SpotifyAPI-NET/" class="nav-link">Home</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="SpotifyAPI.Web" class="dropdown-title"><span class="title">SpotifyAPI.Web</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/examples.html" class="nav-link">Examples</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/proxy.html" class="nav-link">Proxy</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/albums.html" class="nav-link">- Albums</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/artists.html" class="nav-link router-link-exact-active router-link-active">- Artists</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/browse.html" class="nav-link">- Browse</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/follow.html" class="nav-link">- Follow</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/library.html" class="nav-link">- Library</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/personalization.html" class="nav-link">- Personalization</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/player.html" class="nav-link">- Player</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/playlists.html" class="nav-link">- Playlists</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/profiles.html" class="nav-link">- Profiles</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/search.html" class="nav-link">- Search</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/tracks.html" class="nav-link">- Tracks</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/utils.html" class="nav-link">Utilities</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="SpotifyAPI.Auth" class="dropdown-title"><span class="title">SpotifyAPI.Auth</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/implicit_grant.html" class="nav-link">- ImplicitGrantAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/token_swap.html" class="nav-link">- TokenSwapAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/authorization_code.html" class="nav-link">- AutorizationCodeAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/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="/SpotifyAPI-NET/" class="nav-link">Home</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="SpotifyAPI.Web" class="dropdown-title"><span class="title">SpotifyAPI.Web</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/examples.html" class="nav-link">Examples</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/proxy.html" class="nav-link">Proxy</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/albums.html" class="nav-link">- Albums</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/artists.html" class="nav-link router-link-exact-active router-link-active">- Artists</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/browse.html" class="nav-link">- Browse</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/follow.html" class="nav-link">- Follow</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/library.html" class="nav-link">- Library</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/personalization.html" class="nav-link">- Personalization</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/player.html" class="nav-link">- Player</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/playlists.html" class="nav-link">- Playlists</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/profiles.html" class="nav-link">- Profiles</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/search.html" class="nav-link">- Search</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/tracks.html" class="nav-link">- Tracks</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/web/utils.html" class="nav-link">Utilities</a></li></ul></div></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="SpotifyAPI.Auth" class="dropdown-title"><span class="title">SpotifyAPI.Auth</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/getting_started.html" class="nav-link">Getting Started</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/implicit_grant.html" class="nav-link">- ImplicitGrantAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/token_swap.html" class="nav-link">- TokenSwapAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/auth/authorization_code.html" class="nav-link">- AutorizationCodeAuth</a></li><li class="dropdown-item"><!----> <a href="/SpotifyAPI-NET/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>Artists</span> <!----></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/SpotifyAPI-NET/web/artists.html#getartist" class="sidebar-link">GetArtist</a></li><li><a href="/SpotifyAPI-NET/web/artists.html#getrelatedartists" class="sidebar-link">GetRelatedArtists</a></li><li><a href="/SpotifyAPI-NET/web/artists.html#getartiststoptracks" class="sidebar-link">GetArtistsTopTracks</a></li><li><a href="/SpotifyAPI-NET/web/artists.html#getartistsalbums" class="sidebar-link">GetArtistsAlbums</a></li><li><a href="/SpotifyAPI-NET/web/artists.html#getseveralartists" class="sidebar-link">GetSeveralArtists</a></li></ul></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="artists"><a href="#artists" aria-hidden="true" class="header-anchor">#</a> Artists</h1> <h2 id="getartist"><a href="#getartist" aria-hidden="true" class="header-anchor">#</a> GetArtist</h2> <blockquote><p>Get Spotify catalog information for a single artist identified by their 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 artist.</td> <td><code>"1KpCi9BOfviCVhmpI4G2sY"</code></td></tr></tbody></table> <p>Returns a <a href="https://developer.spotify.com/web-api/object-model/#artist-object-full" target="_blank" rel="noopener noreferrer">FullArtist<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">FullArtist</span> artist <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">GetArtist</span><span class="token punctuation">(</span><span class="token string">"1KpCi9BOfviCVhmpI4G2sY"</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><span class="token punctuation">)</span>
|
|
</code></pre></div><hr> <h2 id="getrelatedartists"><a href="#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> (<a href="https://developer.spotify.com/web-api/object-model/#artist-object-full" target="_blank" rel="noopener noreferrer">FullArtist<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">SeveralArtists</span> artists <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">GetRelatedArtists</span><span class="token punctuation">(</span><span class="token string">"1KpCi9BOfviCVhmpI4G2sY"</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>artists<span class="token punctuation">.</span>Artists<span class="token punctuation">[</span><span class="token number">0</span><span class="token punctuation">]</span><span class="token punctuation">.</span>Name<span class="token punctuation">)</span><span class="token punctuation">;</span>
|
|
</code></pre></div><hr> <h2 id="getartiststoptracks"><a href="#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> (<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">SeveralTracks</span> tracks <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">GetArtistsTopTracks</span><span class="token punctuation">(</span><span class="token string">"1KpCi9BOfviCVhmpI4G2sY"</span><span class="token punctuation">,</span> <span class="token string">"DE"</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>tracks<span class="token punctuation">.</span>Tracks<span class="token punctuation">.</span>Count<span class="token punctuation">)</span><span class="token punctuation">;</span> <span class="token comment">//How many tracks did we get?</span>
|
|
</code></pre></div><hr> <h2 id="getartistsalbums"><a href="#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 <a href="https://developer.spotify.com/web-api/object-model/#album-object-simplified" target="_blank" rel="noopener noreferrer">SimpleAlbum<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> wrapped inside a <a href="https://developer.spotify.com/web-api/object-model/#paging-object" target="_blank" rel="noopener noreferrer">Paging-object<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>Paging<span class="token operator"><</span>SimpleAlbum<span class="token operator">></span> albums <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">GetArtistsAlbums</span><span class="token punctuation">(</span><span class="token string">"1KpCi9BOfviCVhmpI4G2sY"</span><span class="token punctuation">,</span> AlbumType<span class="token punctuation">.</span>All<span class="token punctuation">)</span><span class="token punctuation">;</span>
|
|
albums<span class="token punctuation">.</span>Items<span class="token punctuation">.</span><span class="token function">ForEach</span><span class="token punctuation">(</span>album <span class="token operator">=></span> Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span>album<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="getseveralartists"><a href="#getseveralartists" aria-hidden="true" class="header-anchor">#</a> GetSeveralArtists</h2> <blockquote><p>Get Spotify catalog information for several artists 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 artists. Maximum: 50 IDs.</td> <td><code>new List<String>() { "1KpCi9BOfviCVhmpI4G2sY" }</code></td></tr></tbody></table> <p>Returns a <code>SeveralArtists</code> object which contains the property <code>List<FullArtist> Artists</code> (<a href="https://developer.spotify.com/web-api/object-model/#artist-object-full" target="_blank" rel="noopener noreferrer">FullArtist<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">SeveralArtists</span> artists <span class="token operator">=</span> _spotify<span class="token punctuation">.</span><span class="token function">GetSeveralArtists</span><span class="token punctuation">(</span><span class="token keyword">new</span> <span class="token generic-method"><span class="token function">List</span><span class="token punctuation"><</span><span class="token class-name">String</span><span class="token punctuation">></span></span><span class="token punctuation">(</span><span class="token punctuation">)</span> <span class="token punctuation">{</span><span class="token string">"1KpCi9BOfviCVhmpI4G2sY"</span><span class="token punctuation">}</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
|
|
artists<span class="token punctuation">.</span>Artists<span class="token punctuation">.</span><span class="token function">ForEach</span><span class="token punctuation">(</span>artist <span class="token operator">=></span> Console<span class="token punctuation">.</span><span class="token function">WriteLine</span><span class="token punctuation">(</span>artist<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></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/JohnnyCrazy/SpotifyAPI-NET/edit/master/SpotifyAPI.Docs/docs/web/artists.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">3/9/2020, 7:48:14 PM</span></div></footer> <!----> </main></div><div class="global-ui"></div></div>
|
|
<script src="/SpotifyAPI-NET/assets/js/app.6dc23df9.js" defer></script><script src="/SpotifyAPI-NET/assets/js/2.287d9ab7.js" defer></script><script src="/SpotifyAPI-NET/assets/js/12.e1511024.js" defer></script>
|
|
</body>
|
|
</html>
|