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
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
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With