|
Hi Pilch - when you upload a track for analysis, we will fingerprint the track and try to identify it. If we find a match, and the match happens to be in one of our partner catalogs (such as 7digital) that offers 30 second previews, then you can retrieve a preview. Here's an example:
After you upload a track for analysis you get a track id. You can query for the info about the track with a call such as:
http://developer.echonest.com/api/v4/track/profile?api_key=N6E4NIOVYMTHNDM8J&format=json&id=TRXXHTJ1294CD8F3B3&bucket=audio_summary
This will return the song ID if we matched the track like so:
song_id: "SOHPNBJ12AB018242F"
You can use that song ID to retrieve the 7Digital-US track info with a call like so:
http://developer.echonest.com/api/v4/track/profile?api_key=N6E4NIOVYMTHNDM8J&format=json&id=TRXXHTJ1294CD8F3B3&bucket=audio_summary
Which includes a link to a 30 second preview like so:
preview_url: "http://previews.7digital.com/clips/34/7270832.clip.mp3"
Hope this helps.
Paul
|