<titledata-react-helmet="true">SpotifyAPI-NET | SpotifyAPI-NET</title><metadata-react-helmet="true"property="og:title"content="SpotifyAPI-NET | SpotifyAPI-NET"><metadata-react-helmet="true"name="description"content="Documentation for the C# .NET SpotifyAPI-NET Library"><metadata-react-helmet="true"property="og:description"content="Documentation for the C# .NET SpotifyAPI-NET Library"><metadata-react-helmet="true"name="twitter:card"content="summary_large_image"><linkdata-react-helmet="true"rel="shortcut icon"href="/SpotifyAPI-NET/img/favicon.ico"><linkrel="stylesheet"href="/SpotifyAPI-NET/styles.8a053330.css">
</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">var me = await spotify.UserProfile.Current();</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">Console.WriteLine($"Hello there {me.DisplayName}");</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain"style="display:inline-block">
</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">await foreach(</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain"> var playlist in spotify.Paginate(spotify.Playlists.CurrentUsers())</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">)</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">{</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain"> Console.WriteLine(playlist.Name);</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">}</span></div></div></div></div></div></div></div></header><main><divclass="container"><h2style="text-align:center;margin-top:30px">Try it out now</h2><divstyle="padding:30px"><div><ulrole="tablist"aria-orientation="horizontal"class="tabs"><lirole="tab"tabindex="0"aria-selected="true"class="tabs__item tabItem_3zTA tabs__item--active">.NET CLI</li><lirole="tab"tabindex="0"aria-selected="false"class="tabs__item tabItem_3zTA">Package Manager</li><lirole="tab"tabindex="0"aria-selected="false"class="tabs__item tabItem_3zTA">Package Reference</li></ul><divrole="tabpanel"class="margin-vert--md"><div><divclass="codeBlockContent_32p_"><buttontype="button"aria-label="Copy code to clipboard"class="copyButton_1BYj">Copy</button><divtabindex="0"class="prism-code language-shell codeBlock_19pQ"><divclass="codeBlockLines_2n9r"style="color:#bfc7d5;background-color:#292d3e"><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">dotnet </span><spanclass="token function"style="color:rgb(130, 170, 255)">add</span><spanclass="token plain"> package SpotifyAPI.Web --version </span><spanclass="token number"style="color:rgb(247, 140, 108)">6.0</span><spanclass="token plain">.0-beta.11</span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain"></span><spanclass="token comment"style="color:rgb(105, 112, 152);font-style:italic"># Optional Auth module, which includes an embedded HTTP Server for OAuth2</span><spanclass="token plain"></span></div><divclass="token-line"style="color:#bfc7d5"><spanclass="token plain">dotnet </span><spanclass="token function"style="color:rgb(130, 170, 255)">add</span><spanclass="token plain"> package SpotifyAPI.Web.Auth --version </span><spanclass="token number"style="color:rgb(247, 140, 108)">6.0</span><spanclass="token plain">.0-beta.11</span></div></div></div></div></div></div></div></div></div><sectionclass="features_P2SU"><divclass="container"><divclass="row"><divclass="col col--4"><divclass="text--center"><imgclass="featureImage_3Xqx"src="/SpotifyAPI-NET/img/undraw_preferences_uuo2.svg"alt="[object Object]"></div><h3>Sane Defaults - Easy To Configure</h3><p><code>SpotifyAPI-NET</code> allows you to quickly integrate with Spotify's Web API by supplying sane configuration defaults from the start. Later on, behaviour can be customized using extensive configuration possibilities.</p></div><divclass="col col--4"><divclass="text--center"><imgclass="featureImage_3Xqx"src="/SpotifyAPI-NET/img/undraw_project_completed_w0oq.svg"alt="[object Object]"></div><h3>All API Calls Integrated</h3><p>The Spotify Web API consists of over 74 API calls. <code>SpotifyAPI-NET</code> provides fully typed requests/responses for all of them.</p></div><divclass="col col--4"><divclass="text--center"><imgclass="featureImage_3Xqx"src="/SpotifyAPI-NET/img/undraw_Devices_e67q.svg"alt="[object Object]"></div><h3>.NET Standard 2.X</h3><p>With the support of .NET Standard 2.X, <code>SpotifyAPI-NET</code> runs on many platforms, including .NET Core, UWP and Xamarin.Forms (Windows, Android, iOS and Mac)</p></div><divclass="col col--4"><divclass="text--center"><imgclass="featureImage_3Xqx"src="/SpotifyAPI-NET/img/undraw_QA_engineers_dg5p.svg"alt="[object Object]"></div><h3>Testable</h3><p><code>SpotifyAPI-NET</code> is built on a modular structure, which allows easy testing through mocks and stubs. Learn more by visiting the