JohnnyCrazy/SpotifyAPI-NET

πŸ”‰ A Client for the Spotify Web API, written in C#/.NET

C#

1,616

688 commits

updated May 6, 2026

See the code

README

SpotifyAPI-NET

SpotifyAPI-NET

Build SpotifyAPI-NET License SpotifyAPI.Web NuGET SpotifyAPI.Web.Auth NuGET

This open source library for the Spotify Web API provides an easy to use interface for .NET based languages, like C# and VisualBasic .NET. By using it you can query general spotify catalog information (tracks, albums and playlists), manage user-related content ("My Library", create and edit playlists) and control the users music players (play, stop, transfer playback, play specific track).

Features

  • βœ… Typed responses and requests to over 74 endpoints. Complete and always up to date.
  • βœ… Supports .NET Standard 2.X, which includes all major platforms, including mobile:
    • .NET Framework
    • UWP
    • .NET Core
    • Xamarin.Forms
  • βœ… Included HTTPClient, but feel free to bring your own!
  • βœ… Logging supported
  • βœ… Retry Handlers supported
  • βœ… Proxy support
  • βœ… Pagination support
  • βœ… All OAuth2 Authentications supported for use in ASP .NET and CLI apps
  • βœ… Modular structure, for easy unit testing

Example

using System;
using SpotifyAPI.Web;

class Program
{
    static async Task Main()
    {
      var spotify = new SpotifyClient("YourAccessToken");

      var track = await spotify.Tracks.Get("1s6ux0lNiTziSrd7iUAADH");
      Console.WriteLine(track.Name);
    }
}

More examples can be found on the website and in the SpotifyAPI.Web.Examples directory.

Docs and Usage

More Information, Installation-Instructions, Examples, Guides can be found at johnnycrazy.github.io/SpotifyAPI-NET/

Installation

Installation Instructions can be found in the Getting Started Guide

Donations

If you want to support this project or my work in general, you can donate a buck or two via the link below. However, this will be always optional!

Donate Link

c-sharp
csharp
dotnet
dotnet-core
music
spotify
spotify-api
spotifyapi
spotifyapi-net
spotify-sdk
spotify-web
spotify-web-api

JohnnyCrazy/SpotifyAPI-NET

πŸ”‰ A Client for the Spotify Web API, written in C#/.NET

C#

1,616

688 commits

updated May 6, 2026

See the code

README

SpotifyAPI-NET

SpotifyAPI-NET

Build SpotifyAPI-NET License SpotifyAPI.Web NuGET SpotifyAPI.Web.Auth NuGET

This open source library for the Spotify Web API provides an easy to use interface for .NET based languages, like C# and VisualBasic .NET. By using it you can query general spotify catalog information (tracks, albums and playlists), manage user-related content ("My Library", create and edit playlists) and control the users music players (play, stop, transfer playback, play specific track).

Features

  • βœ… Typed responses and requests to over 74 endpoints. Complete and always up to date.
  • βœ… Supports .NET Standard 2.X, which includes all major platforms, including mobile:
    • .NET Framework
    • UWP
    • .NET Core
    • Xamarin.Forms
  • βœ… Included HTTPClient, but feel free to bring your own!
  • βœ… Logging supported
  • βœ… Retry Handlers supported
  • βœ… Proxy support
  • βœ… Pagination support
  • βœ… All OAuth2 Authentications supported for use in ASP .NET and CLI apps
  • βœ… Modular structure, for easy unit testing

Example

using System;
using SpotifyAPI.Web;

class Program
{
    static async Task Main()
    {
      var spotify = new SpotifyClient("YourAccessToken");

      var track = await spotify.Tracks.Get("1s6ux0lNiTziSrd7iUAADH");
      Console.WriteLine(track.Name);
    }
}

More examples can be found on the website and in the SpotifyAPI.Web.Examples directory.

Docs and Usage

More Information, Installation-Instructions, Examples, Guides can be found at johnnycrazy.github.io/SpotifyAPI-NET/

Installation

Installation Instructions can be found in the Getting Started Guide

Donations

If you want to support this project or my work in general, you can donate a buck or two via the link below. However, this will be always optional!

Donate Link

c-sharp
csharp
dotnet
dotnet-core
music
spotify
spotify-api
spotifyapi
spotifyapi-net
spotify-sdk
spotify-web
spotify-web-api

Project health

Overall

2.9/10

Maintained

0/10

Code review

1/10
OpenSSF Scorecard

Significant stargazers

Alexandre Zollinger Chohfi

358 followers Β· starred Feb 2024

Bennet Bo Fenner

94 followers Β· starred Jun 2021

Michael Schnerring

111 followers Β· starred Dec 2024

Tung Huynh

113 followers Β· starred Dec 2022