Build your own personal music streaming applications using the Libspotify SDK or CocoaLibSpotify.

The Libspotify SDK and CocoaLibSpotify provide C language APIs that enable you to add Spotify music services to your own applications.

The Libspotify SDK is available for Windows, Mac OS X (x86 / x86_64), iOS, and Linux (x86 / x86_64 / ARM). We also have an Objective C wrapper (CocoaLibSpotify) for iOS.

Please note that the Libspotify SDK and CocoaLibSpotify are provided for non-commercial use only. For more information, see Terms of Use, below.

How Do I Start?

To use the Libspotify SDK you will need to get an application key.

When you have your key, download the Libspotify package for your environment and add the Libspotify API header file (api.h) to your application. Here are some links to help you get started:

Libspotify Downloads

Download the file and unpack it with your favorite extractor. (For most Linux distributions, you can use tar xzf libspotify-*.tar.gz on the command line to extract it.) You will now have a directory called something starting with libspotify-. Inside, you should find a README worth at least skimming through.

Product
Version
Operating System
Architecture
Files
libspotify12.1.64iOSARM, i386zip
libspotify12.1.51 betaAndroidARMtar.gz
libspotify12.1.51Win32x86zip
libspotify12.1.51Mac OS X/Darwinuniversalzip
libspotify12.1.51linux-libc6x86tar.gz
libspotify12.1.51linux-libc6x86_64tar.gz
libspotify12.1.51linux-libc6eabi-armv5ttar.gz
libspotify12.1.51linux-libc6eabi-armv6ttar.gz
libspotify12.1.51linux-libc6eabi-armv7tar.gz
libspotify12.1.103 betalinux-libc6eabi-armv6hftar.gz

CocoaLibSpotify Downloads

If you’re developing applications for iOS or Mac OS X, we recommend using CocoaLibSpotify — our open-source Objective-C wrapper. You can find the CocoaLibSpotify package, along with extensive documentation and sample projects, at the project’s home on GitHub.

Terms of Use

The Libspotify SDK and CocoaLibSpotify are not intended for use in commercial applications or in conjunction with commercial hardware products. If you wish to integrate Spotify functionality into a commercial software application, hardware device or software associated with a hardware device, please email workswithspotify@spotify.com before proceeding further.

Region-specific Terms of Use can be found here:

Third-Party Licenses

Several fantastic pieces of free and open-source software have really helped get Spotify to where it is today. A few require that we include their license agreements within our product. Consider it done. As we enjoy giving credit where it’s due, we included the entire list below. This means you can not only see which software we’ve been using, but the terms of the licenses too. A big thanks from all of us at Spotify to the smart people behind the fantastic programs listed.