开发者

Song search and stream preview API [closed]

开发者 https://www.devze.com 2022-12-25 04:58 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 6 years ago.

Improve this question

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 m开发者_JAVA技巧eans 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.


Amazon Associates has a "widget" that allows you to play the sample clips from their extensive MP3 library. However, I can't speak as to how flexible or programmable it is... but at least the link will get you started.


itunes has a search api and preview and album art... they have restrictions (ie, you have to put the "buy on iTunes" badge linking to the song near the preview)...

http://www.apple.com/itunes/affiliates/resources/documentation/itunes-store-web-service-search-api.html

0

精彩评论

暂无评论...
验证码 换一张
取 消