<titledata-react-helmet="true">SpotifyAPI-NET | SpotifyAPI-NET</title><metadata-react-helmet="true"property="og:url"content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/home"><metadata-react-helmet="true"name="docusaurus_locale"content="en"><metadata-react-helmet="true"name="docusaurus_version"content="5.1.1"><metadata-react-helmet="true"name="docusaurus_tag"content="docs-default-5.1.1"><metadata-react-helmet="true"property="og:title"content="SpotifyAPI-NET | SpotifyAPI-NET"><metadata-react-helmet="true"name="description"content="This project, written in C#/.NET, provides 2 libraries for an easier usage of the Spotify Web API"><metadata-react-helmet="true"property="og:description"content="This project, written in C#/.NET, provides 2 libraries for an easier usage of the Spotify Web API"><linkdata-react-helmet="true"rel="shortcut icon"href="/SpotifyAPI-NET/img/favicon.ico"><linkdata-react-helmet="true"rel="canonical"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/home"><linkdata-react-helmet="true"rel="alternate"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/home"hreflang="en"><linkdata-react-helmet="true"rel="alternate"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/home"hreflang="x-default"><linkrel="stylesheet"href="/SpotifyAPI-NET/assets/css/styles.834af7f3.css">
<div><ahref="#"class="skipToContent_1oUP">Skip to main content</a></div><navclass="navbar navbar--fixed-top"><divclass="navbar__inner"><divclass="navbar__items"><buttonaria-label="Navigation bar toggle"class="navbar__toggle clean-btn"type="button"tabindex="0"><svgwidth="30"height="30"viewBox="0 0 30 30"aria-hidden="true"><pathstroke="currentColor"stroke-linecap="round"stroke-miterlimit="10"stroke-width="2"d="M4 7h22M4 15h22M4 23h22"></path></svg></button><aclass="navbar__brand"href="/SpotifyAPI-NET/"><imgsrc="/SpotifyAPI-NET/img/logo.svg"alt="SpotifyAPI-NET"class="themedImage_1VuW themedImage--light_3UqQ navbar__logo"><imgsrc="/SpotifyAPI-NET/img/logo.svg"alt="SpotifyAPI-NET"class="themedImage_1VuW themedImage--dark_hz6m navbar__logo"><bclass="navbar__title">SpotifyAPI-NET</b></a><divclass="navbar__item dropdown dropdown--hoverable"><aclass="navbar__item navbar__link">Docs</a><ulclass="dropdown__menu"><li><aclass="dropdown__link"href="/SpotifyAPI-NET/docs/introduction">6.X (current)</a></li><li><aaria-current="page"class="dropdown__link dropdown__link--active"href="/SpotifyAPI-NET/docs/5.1.1/home">5.1.1</a></li></ul></div></div><divclass="navbar__items navbar__items--right"><ahref="https://github.com/JohnnyCrazy/SpotifyAPI-NET"target="_blank"rel="noopener noreferrer"class="navbar__item navbar__link"><span>GitHub<svgwidth="13.5"height="13.5"aria-hidden="true"viewBox="0 0 24 24"class="iconExternalLink_3J9K"><pathfill="currentColor"d="M21 13v10h-21v-19h12v2h-10v15h17v-8h2zm3-12h-10.988l4.035 4-6.977 7.07 2.828 2.828 6.977-7.07 4.125 4.172v-11z"></path></svg></span></a><divclass="react-toggle toggle_3Zt9 react-toggle--disabled"><divclass="react-toggle-track"role="button"tabindex="-1"><divclass="react-toggle-track-check"><spanclass="toggle_71bT">🌜</span></div><divclass="react-toggle-track-x"><spanclass="toggle_71bT">🌞</span></div><divclass="react-toggle-thumb"></div></div><inputtype="checkbox"class="react-toggle-screenreader-only"aria-label="Switch between dark and light mode"></div></div></div><divrole="presentation"class="navbar-sidebar__backdrop"></div></nav><divclass="main-wrapper docs-wrapper doc-page"><divclass="docPage_31aa"><buttonclass="clean-btn backToTopButton_35hR"type="button"title="Scroll to top"><svgviewBox="0 0 24 24"width="28"><pathd="M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"fill="currentColor"></path></svg></button><asideclass="docSidebarContainer_3Kbt"><divclass="sidebar_15mo"><navclass="menu thin-scrollbar menu_Bmed menuWithAnnouncementBar_2WvA"><ulclass="menu__list"><liclass="menu__list-item"><aclass="menu__link menu__link--sublist menu__link--active"href="#">SpotifyAPI-NET</a><ulstyle="display:block;overflow:visible;height:auto"class="menu__list"><liclass="menu__list-item"><aaria-current="page"class="menu__link menu__link--active active"tabindex="0"href="/SpotifyAPI-NET/docs/5.1.1/home">Home</a></li></ul></li><liclass="menu__list-item menu__list-item--collapsed"><aclass="menu__link menu__link--sublist"href="#">SpotifyAPI-NET.Web</a></li><liclass="menu__list-item menu__list-item--collapsed"><aclass="menu__link menu__link--sublist"href="#">SpotifyAPI-NET.Auth</a></li></ul></nav></div></aside><mainclass="docMainContainer_3ufF"><divclass="container padding-top--md padding-bottom--lg"><divclass="row"><divclass="col docItemCol_3FnS"><divclass="alert alert--warning margin-bottom--md"role="alert"><div>This is documentation for SpotifyAPI-NET <b>5.1.1</b>, which is no longer actively maintained.</div><divclass="margin-top--md">For up-to-date documentation, see the <b><ahref="/SpotifyAPI-NET/docs/introduction">latest version</a></b> (6.X).</div></div><divclass="docItemContainer_33ec"><article><spanclass="badge badge--secondary">Version: 5.1.1</span><divclass="tocCollapsible_1PrD tocMobile_3Hoh"><buttontype="button"class="clean-btn tocCollapsibleButton_2O1e">On this page</button></div><divclass="markdown"><header><h1class="h1Heading_27L5">SpotifyAPI-NET</h1></header><p>This project, written in C#/.N
The API also provides access to user-related data such as playlists and music saved in a “Your Music” library, subject to user’s authorization.</p></blockquote><p><strong>SpotifyAPI.Web</strong></p><blockquote><p>A wrapper around Spotify's Web API, providing sync and async methods to query all possible endpoints. Results are returned as typed class instances, allowing property-based access.</p></blockquote><p><strong>SpotifyAPI.Web.Auth</strong></p><blockquote><p>A library providing C# implementations of the 3 supported Authentication modes, including <code>ImplicitGrantAuth</code>, <code>AuthorizationCodeAuth</code> and <code>CredentialsAuth</code></p></blockquote><hr><h2><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="installing"></a>Installing<aclass="hash-link"href="#installing"title="Direct link to heading">#</a></h2><ul><li>Via NuGet Package:</li></ul><divclass="codeBlockContainer_K1bP"><divclass="codeBlockContent_hGly bash"><pretabindex="0"class="prism-code language-bash codeBlock_23N8 thin-scrollbar"style="color:#bfc7d5;background-color:#292d3e"><codeclass="codeBlockLines_39YC"><spanclass="token-line"style="color:#bfc7d5"><spanclass="token plain">Install-Package SpotifyAPI.Web -Version </span><spanclass="token number"style="color:rgb(247, 140, 108)">5.1</span><spanclass="token plain">.1</span></span><spanclass="token-line"style="color:#bfc7d5"><spanclass="token plain">Install-Package SpotifyAPI.Web.Auth -Version </span><spanclass="token number"style="color:rgb(247, 140, 108)">5.1</span><spanclass="token plain">.1</span></span></code></pre><buttontype="button"aria-label="Copy code to clipboard"class="copyButton_Ue-o clean-btn">Copy</button></div></div><ul><li>Download the latest binaries on the <ahref="https://github.com/JohnnyCrazy/SpotifyAPI-NET/releases"target="_blank"rel="noopener noreferrer">GitHub Release Page</a> and add it to your Project</li><li>Clone the Repo and build the project yourself.</li></ul><hr><h2><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="getting-started"></a>Getting Started<aclass="hash-link"href="#getting-started"title="Direct link to heading">#</a></h2><ul><li><ahref="/SpotifyAPI-NET/docs/5.1.1/web/getting_started">SpotifyAPI.Web</a></li><li><ahref="/SpotifyAPI-NET/docs/5.1.1/auth/getting_started">SpotifyAPI.Web.Auth</a></li></ul><h2><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="projects"></a>Projects<aclass="hash-link"href="#projects"title="Direct link to heading">#</a></h2><h3><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="lidarr-by-lidarr"></a><ahref="https://github.com/lidarr/Lidarr"target="_blank"rel="noopener noreferrer">lidarr</a> by <ahref="https://github.com/lidarr"target="_blank"rel="noopener noreferrer">@lidarr</a><aclass="hash-link"href="#lidarr-by-lidarr"title="Direct link to heading">#</a></h3><blockquote><p>Looks and smells like Sonarr but made for music.</p></blockquote><h3><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="botframework-solutions-by-microsoft"></a><ahref="https://github.com/microsoft/botframework-solutions"target="_blank"rel="noopener noreferrer">botframework-solutions</a> by <ahref="https://github.com/microsoft"target="_blank"rel="noopener noreferrer">@microsoft</a><aclass="hash-link"href="#botframework-solutions-by-microsoft"title="Direct link to heading">#</a></h3><blockquote><p>home for a set of templates and solutions to help build advanced conversational experiences using Azure Bot Service and Bot Framework</p></blockquote><h3><aaria-hidden="true"tabindex="-1"class="anchor enhancedAnchor_2LWZ"id="spytify-by-jwallet"></a><ahref="https://github.com/jwallet/spy-spotify"target="_blank"rel="noopener noreferrer">Spytify</a> by <ahref="https://github.com/jwallet"target="_blank"rel="noopener noreferrer">@jwallet</a><aclass="hash-link"href="#spytify-by-jwallet"title="Direct link to heading">#</a></h3><blockquote><p>Records Spotify to mp3 without a