Discogs.com API Assembly for .NET Applications v1.0 Build 2863


Well, here it is! The Discogs.com API Interface Assembly for .NET Applications.

After fiddling around with the Discogs.com website I decided to take a look at their developers API. It was actually pretty slick, as it lets you look up an Artist and retrieve all of their information including album information on every album they’ve been associated with (including soundtracks). I thought this information might be handy for other people so I wrote a quick Assembly in C# that lets people run queries against the Discogs API easily!

This Assembly provides only three methods currently:

  • SearchArtist (string sArtistName)
    • This method will search the Discogs Library based on the Artist Name specified and return a complex type containing the API response.
  • SearchRelease (string sReleaseName)
    • This method will search the Discogs Library based on the Release Name specified and return a complex type containing the API response.
  • DownloadCoverArt(string sFileName, string sURL)
    • This method allows you to download the cover art from the Discogs Library using the Cover Art URL contained in the Release API response.

I’ve also included a Version property so you can bind your own application to a specific version of the Assembly, in case there’s any version incompatibility moving forward.

The assembly currently already has a Discogs.com API key hard coded in. So no need to sign up for your own API key.

Also, it seems that the API is constantly changing so if for whatever reason one day you stop receiving information from the API, please let me know. Any changes to their XML response might cause the assembly stop responding with information.

My hopes is that people will put this Assembly to good use in their own Media applications. My plan is to release an Open Source MP3 renaming application written in C#. Keep your eyes peeled for that in the coming weeks.

Share and enjoy!

Discogs.com API Assembly for .NET Applications v1.0 Build 2863Download (6.8k)

  1. #1 by sissi on January 29, 2008 - 4:17 PM

    hi there, do you know if its possible to retrieve your own collection as xml from discogs? I’d like to get my collection as xml but it doesnt seem to work, only labels, artists and so on work (like the examples in the api documentation)….

    would be cool if you could reply :-)

    cheers
    sissi

  2. #2 by eric on January 30, 2008 - 8:34 AM

    Currently this function is not supported by the Discogs XML API and there is a currently ongoing thread in their Development API forums about possible privacy issues related to implementing such a function.

    Rest assured though, if the function is added, I’ll update my Assembly :)

(will not be published)