<titledata-rh="true">Getting Started | SpotifyAPI-NET</title><metadata-rh="true"name="viewport"content="width=device-width,initial-scale=1"><metadata-rh="true"name="twitter:card"content="summary_large_image"><metadata-rh="true"property="og:url"content="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/web/getting_started"><metadata-rh="true"name="docusaurus_locale"content="en"><metadata-rh="true"name="docsearch:language"content="en"><metadata-rh="true"name="docusaurus_version"content="5.1.1"><metadata-rh="true"name="docusaurus_tag"content="docs-default-5.1.1"><metadata-rh="true"name="docsearch:version"content="5.1.1"><metadata-rh="true"name="docsearch:docusaurus_tag"content="docs-default-5.1.1"><metadata-rh="true"property="og:title"content="Getting Started | SpotifyAPI-NET"><metadata-rh="true"name="description"content="This API provides full access to the new SpotifyWebAPI introduced here."><metadata-rh="true"property="og:description"content="This API provides full access to the new SpotifyWebAPI introduced here."><linkdata-rh="true"rel="icon"href="/SpotifyAPI-NET/img/favicon.ico"><linkdata-rh="true"rel="canonical"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/web/getting_started"><linkdata-rh="true"rel="alternate"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/web/getting_started"hreflang="en"><linkdata-rh="true"rel="alternate"href="https://johnnycrazy.github.io/SpotifyAPI-NET/docs/5.1.1/web/getting_started"hreflang="x-default"><linkrel="stylesheet"href="/SpotifyAPI-NET/assets/css/styles.4162a8a2.css">
It's also possible to create new playlists and add tracks to it.</p><h2class="anchor anchorWithStickyNavbar_LWe7"id="first-steps">First steps<ahref="#first-steps"class="hash-link"aria-label="Direct link to First steps"title="Direct link to First steps"></a></h2><h3class="anchor anchorWithStickyNavbar_LWe7"id="imports">Imports<ahref="#imports"class="hash-link"aria-label="Direct link to Imports"title="Direct link to Imports"></a></h3><p>So after you added the API to your project, you may want to add following imports to your files:</p><divclass="language-csharp codeBlockContainer_Ckt0 theme-code-block"style="--prism-color:#bfc7d5;--prism-background-color:#292d3e"><divclass="codeBlockContent_biex"><pretabindex="0"class="prism-code language-csharp codeBlock_bY9V thin-scrollbar"><codeclass="codeBlockLines_e6Vv"><spanclass="token-line"style="color:#bfc7d5"><spanclass="token keyword"style="font-style:italic">using</span><spanclass="token plain"></span><spanclass="token namespace"style="color:rgb(178, 204, 214)">SpotifyAPI</span><spanclass="token namespace punctuation"style="color:rgb(199, 146, 234)">.</span><spanclass="token namespace"style="color:rgb(178, 204, 214)">Web</span><spanclass="token punctuation"style="color:rgb(199, 146, 234)">;</span><spanclass="token plain"></span><spanclass="token comment"style="color:rgb(105, 112, 152);font-style:italic">//Base Namespace</span><spanclass="token plain"></span><br></span><spanclass="token-line"style="color:#bfc7d5"><spanclass="token plain"></span><spanclass="token keyword"style="font-style:italic">using</span><spanclass="token plain"></span><spanclass="token namespace"style="color:rgb(178, 204, 214)">SpotifyAPI</span><spanclass="token namespace punctuation"style="color:rgb(199, 146, 234)">.</span><spanclass="token namespace"style="color:rgb(178, 204, 214)">Web</span><spanclass="token namespace punctuation"style="color:rgb(199, 146, 234)">.</span><spanclass="token namespace"style="color:rgb(178, 204, 214)">Enums</span><spanclass="token punctuation"style="color:rgb(199, 146, 234)">;</span><spanclass="token plain"></span><spanclass="token comment"style="color:rgb(105, 112, 152);font-style:italic">//Enums</span><spanclass="token plain"></span><br></span><spanclass="token-line"style="color:#bfc7d5"><spanclass="token plain"></span><spanclass="token keyword"style="font-style:italic">using</span><spanclass="token plain"></span><spanclass="token namespace"style="color:rgb(178, 204, 214)">SpotifyAPI</span><spanclass="token namespace punctuation"style="color:rgb(199, 146, 234)">.</span><spanclass="token namespace"style="color:rgb(178, 204, 214)">Web</span><spanclass="token namespace punctuation"style="color:rgb(199, 146, 234)">.</span><spanclass="token namespace"style="color:rgb(178, 204, 214)">Models</span><spanclass="token punctuation"style="color:rgb(199, 146, 234)">;</span><spanclass="token plain"></span><spanclass="token comment"style="color:rgb(105, 112, 152);font-style:italic">//Models for the JSON-responses</span><br></span></code></pre><divclass="buttonGroup__atx"><buttontype="button"aria-label="Copy code to clipboard"title="Copy"class="clean-btn"><spanclass="copyButtonIcons_eSgA"aria-hidden="true"><svgviewBox="0 0 24 24"class="copyButtonIcon_y97N"><pathfill="currentColor"d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svgviewBox="0 0 24 24"class="copyButtonSuccessIcon_LjdS"><pathfill="currentColor"d="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"></path></svg></span></button></div></div></div><h3class="anchor anchorWithStickyNavbar_LWe7"id="basic-usage">Basic-Usage<ahref="#basic-usage"class="hash-link"aria-label="Direct link to Basic-Usage"title="Direct link to Basic-Usage"></a></h3><p>Now you can actually start doing calls to the SpotifyAPI, just create a new Instance of SpotifyWebAPI:</p><divclass="language-csharp codeBlockContainer_Ckt0 theme-code-block"styl