See More

A very common reason is a wrong site baseUrl configuration.\n

Current configured baseUrl = /SpotifyAPI-NET/ \n

We suggest trying baseUrl = \n\n',document.body.prepend(n);var e=document.getElementById("__docusaurus-base-url-issue-banner-suggestion-container"),s=window.location.pathname,o="/"===s.substr(-1)?s:s+"/";e.innerHTML=o}document.addEventListener("DOMContentLoaded",(function(){void 0===window.docusaurus&&insertBanner()}))

Skip to main content

SpotifyAPI-NETStar
Nuget Nuget

🔊 A Client for the Spotify Web API, written in C#/.NET

var spotify = new SpotifyClient("YourAccessToken");

var me = await spotify.UserProfile.Current();
Console.WriteLine($"Hello there {me.DisplayName}");

await foreach(
var playlist in spotify.Paginate(await spotify.Playlists.CurrentUsers())
)
{
Console.WriteLine(playlist.Name);
}

Try it out now

dotnet add package SpotifyAPI.Web
# Optional Auth module, which includes an embedded HTTP Server for OAuth2
dotnet add package SpotifyAPI.Web.Auth
[object Object]

Sane Defaults - Easy To Configure

SpotifyAPI-NET 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.

[object Object]

All API Calls Integrated

The Spotify Web API consists of over 74 API calls. SpotifyAPI-NET provides fully typed requests/responses for all of them.

[object Object]

.NET Standard 2.X

With the support of .NET Standard 2.X, SpotifyAPI-NET runs on many platforms, including .NET Core, UWP and Xamarin.Forms (Windows, Android, iOS and Mac)

[object Object]

Testable

SpotifyAPI-NET is built on a modular structure, which allows easy testing through mocks and stubs. Learn more by visiting the Testing Guide