Announcements
The Spotify Stars Program: Celebrating Values Week!

Help Wizard

Step 1

NEXT STEP

[Release] SpotifyAPI in .NET

Reply

[Release] SpotifyAPI in .NET

Hello there!

 

Just to let you know: If you are a normal Spotify User, you can ignore this post since it's just for developers atm.

 

So i recently finished my API and want to share it with you.

It is written in .NET and offers many features you maybe need for your application!

Furthermore, it's open-source and you can contribute your changes/ideas!

 

Some Features:

  • Get all Information about a Track(Name/Album/Artist + URI,Tracklenght etc. 
  • Play/Pause Spotify
  • Skip/Previous Song
  • Current Spotify Volume
  • Async/Sync methods, to get the albumart in 3 different resolutions
  • Check if an AD is running
  • Event-System (OnTrackChange,OnTrackTimeChange,OnVolumeChange,On PlayStateChange)
  • Mute/UnMute Spotify

Screenshot of the example application:

Example App 

 

All Features and Usage: http://johnnycrazy.github.io/SpotifyAPI-NET/
Source on GitHub: https://github.com/JohnnyCrazy/SpotifyAPI-NET
Example Application: https://github.com/JohnnyCrazy/SpotifyAPI-NET/tree/master/SpotifyAPI.Example

Releases: https://github.com/JohnnyCrazy/SpotifyAPI-NET/releases

 

If you have any questions, feel free to ask and contact me!

22 Replies

thank you very much 🙂

works perfect

Dude this is awesome thanks! I converted your example code to vb.net and am now using this successfully in my program.

Hello there,

first i Love your API to use it in VB.NET but when i tried to Connect my program is still waiting all the time, who i connect corectly to Spotify!

I would be very happy about an Awnser , Alex

Hey Alex,

 

Did you run the example Application? And did it work with it?

If not, please create a new Issue @GitHub so I can help you further 🙂 (Please also provide the source-code in the Issue)

 

Johnny

I know this is kinda old, but I made a big update and maybe someone can use it.

I implemented support for the Spotify Web API, so following things are possible now:

Image

With this update, you have even more possibilities (Combining the local API + web API)

 

 

If you have any questions, feel free to contact me.

I will also fill/complete the wiki ASAP

The example app link is not working?

Hi,

 

Sorry for the mistake. I made some changes to the project (Version 2.0.0 now) which broke the links.

I updated them now and if you have any questions, feel free to contact me 🙂

 

Greetings,

Johnny 

Thanks you 🙂

Cool, thank you. I'am trying to import this into my project.

You may want to lookup the exact definition of both terms.

 

C# (and also VisualBasic.NET) is a programming language, running inside/with the .NET Framework. Since you can use both, C# and VisualBasic libraries, in a project, the library got the name "SpotifyAPI-NET".

How do I import your API into my project?

You Import it like other DLLs. In Visual Studio 2012 you can find it under Projekt Settings -> Under a second side tab called "references" -> click add ore something like -> under browse search the location of the DLL -> click okay and now it should be imported!

Thanks :)!

I would like to grab the songname, artistname and song length.

I've imported the SpotifyAPI into my form (Imports SpotifyAPI) already, so now I would like to use the functions. Is there anywhere an documentation?

Best is the Demo Projekt of the API as Docu. There is every function in use.

Hi Johnny!

 

Do you think about expanding your WebAPI-Interface by Players-commands one day?(https://developer.spotify.com/web-api/console/player/)

 

Best regards,

Jörg

Hi Joergcx,

 

I just released 2.14.1, which includes the new endpoints and some other fixes. You can check it out here.

 

Greetings,

Johnny

Is there anyway you could add set track position? If it isnt allready in tho, i cant figure it out anyway.

 

I need a way to set track position, i am trying to make a sync program.

I am new to coding and not very experienced, so sorry for asking this, but
i am coding in visual basic, and i have checked out the link you provided,
but i dont understand how to translate it?

Suggested posts