Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Song search and stream preview API [closed]

Tags:

api

Is there an API where I can search for a song, and then stream the preview of the song on my site?

Looked into Amazon MP3, but I can't seem to find an API for Amazon MP3.

Also looked into last.fm Track.Search api, but seems like the return value doesn't seem to give the actual filename. (i.e mp3 etc), which means I can't stream it on my site.

Please let me know if there are other different APIs I can use as well.

Thanks,
Tee

like image 411
teepusink Avatar asked Mar 29 '10 23:03

teepusink


2 Answers

Hopefully you got sorted for this but just in case (and for future searchers)

EchoNest has a solid api with will give you 30 sec. track previews

for example:

http://developer.echonest.com/api/v4/song/search?api_key=N6E4NIOVYMTHNDM8J&format=json&results=1&artist=radiohead&title=karma%20police&bucket=id:7digital-US&bucket=audio_summary&bucket=tracks

Just a note that it uses 7digital so only tracks in there catalogs will have previews

like image 142
Keith Avatar answered Sep 27 '22 19:09

Keith


Here's the link to the 7digital public API for track search

http://developer.7digital.com/resources/api-docs/catalogue-api#track/search

and here's track preview:

http://developer.7digital.com/resources/api-docs/media-delivery-api#clip/{trackId}

You'll need to register for an API key here:

http://access.7digital.com/partnerprogram

*In the interests of full disclosure I'll mention that I work for 7digital.

like image 31
danswain Avatar answered Sep 27 '22 21:09

danswain