Using https://github.com/JohnnyCrazy/SpotifyAPI-NET
dotnet add package SpotifyAPI.Web dotnet add package SpotifyAPI.Web.Auth
Create your own spotify application and insert your clientId and clientsecret in the appsettings.json file https://johnnycrazy.github.io/SpotifyAPI-NET/docs/auth_introduction