46

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?

JasonMArcher
  • 14,195
  • 22
  • 56
  • 52
river
  • 519
  • 1
  • 4
  • 4

5 Answers5

26

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.

Chris Gomez
  • 959
  • 5
  • 9
  • 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 00: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
23

I'd go with musicbrainz.

http://musicbrainz.org/doc/XML_Web_Service

http://musicbrainz.org/doc/libmusicbrainz

Gra
  • 1,542
  • 14
  • 28
14

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.

Mathieu Rodic
  • 6,637
  • 2
  • 43
  • 49
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.

Steve Tjoa
  • 59,122
  • 18
  • 90
  • 101
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.

Brad
  • 15,361
  • 6
  • 36
  • 57