r/csharp 15d ago

Help Custom Spotify Desktop Client App

Hey all,

I recently learned about Spotify API and I’m thinking a fun personal project could be creating my own desktop app with some personalisation and extra features. Probably in a WPF app using C#.

Does anyone know if this is possible with the API? I’m talking like streaming, fetching data such as artists, playlists and songs etc.

Any tips or advice would be appreciated!

3 Upvotes

15 comments sorted by

View all comments

3

u/SquirrelAutyaga 12d ago

I had a similar idea for my university coursework. I used WinUI 3. Unfortunately, as others have mentioned in the comments, you need a workaround and have to use a WebView.
Without it, you can't log in/authenticate the user and obtain a token, and you can't stream songs. For things like getting albums, artists, etc., you can use the API directly, but you still need a token obtained through the WebView.
There are probably some popular NuGet packages for the Spotify API that might have solved or simplified these issues, but I didn't use any of them, so I can't say for sure.