45

I need to look up artist/album/track information for song titles.

Is there a free database I could download or a open source web service/api I could use?

1
24

Try the last.fm api at http://www.last.fm/api.

If that doesn't work for you, you can look at the various APIs listed in this search result: http://www.programmableweb.com/category/music/api

This is a Silverlight tutorial, but since this is an HTTP REST API, it could seem agnostic to you to get started: http://www.devx.com/VisualStudio/Article/40158.

3
  • 2
    I've used last.fm and it was pretty nice for a couple of years. Recently it has turned to garbage - does not return data in many instances. Many functional pieces are broken. Still looking for an alternative to switch to. – Kon Oct 30 '15 at 0:31
  • 1
    While I am glad that it helped the poster of this question, this answer is old enough in "Internet years" that really there are probably far better places to look now. Sorry about the answer being stale, but not sure how StackOverflow deals with that. – Chris Gomez Oct 30 '15 at 14:41
  • last.fm is worthless for album info. It does not even return the release date, e.g., Metallica's multi-platinum self-titled album. – Tom Russell Dec 22 '17 at 10:24
21

I'd go with musicbrainz.

http://musicbrainz.org/doc/XML_Web_Service

http://musicbrainz.org/doc/libmusicbrainz

12

I would personnally recommend Discogs, which is free and doesn't limit the per day usage. However, it limits the amount of requests to one per second per IP address.

The API is quite clear and documented. It uses JSON over HTTP, and has wrappers for various programming environnements (Python, Ruby, Perl, .NET, PHP).

Plus, it has data about a massive amount of artists, releases and labels.

1
9

Yes! The Echo Nest. Pretty hot startup outside Boston that just got more funding. Their API lets you search by artist, album, track, and more.

5
  • 5
    and their funding just seems to have exhausted. it goes 404. – aelor Jul 2 '15 at 6:40
  • Sorry, I fixed the link. That said, I'm kinda surprised that echonest.com (without subdomain) doesn't resolve. Also, they were bought by Spotify, so I guess that funding is no longer an issue. :-) – Steve Tjoa Jul 2 '15 at 17:25
  • thanks for the prompt reply – aelor Jul 2 '15 at 18:28
  • Pro: Echonest is free and easy to use. Contra: Echonest doesn't know anything about albums. – phortx Dec 3 '15 at 9:30
  • 2
    And link is not working again. – MAC May 28 '20 at 7:24
0

FreeDB is free, but may or may not have an API. It is user-generated content.

http://www.freedb.org/

And apparently Gracenote is the new CDDB (but probably not free). I guess they finally figured out that they didn't want to limit their database to CDs.

Not the answer you're looking for? Browse other questions tagged or ask your own question.