Forums » Bugs & Problems Search

How play a track from EchoNest New Reply

Author Post
Posts: 1
Registered: May 11, 2012

Hi,

Can someone pls tell me how a track can be retrieved from EchoNest and played in an Iphone app?

Does EchoNest have any pkaylist categories?

Thanks

Posts: 104
Registered: Feb 22, 2011

lisa.wst,

The Echo Nest is not a music streaming service. We provide API services for playlists and discovery to many other services such as iHeartRadio and Spotify.

Check out our Showcase page for some suggestions of services using The Echo Nest.

Thanks. David

Posts: 8
Registered: Oct 01, 2012

Hi

But If I am bot mistaken the documentation provides with audio field that gives the link to the audio file. Also the API gives preview url.

When I tried to run the url it wasnt showing any audio field.

Posts: 914
Registered: Sep 08, 2008

gaurish - the audio field has been renamed 'preview_url'. It has always been a 30 second audio preview. -- Paul

Posts: 8
Registered: Oct 01, 2012

hey Paul

So, do I have to register with each and every partner. Whats if one particular song is not there in 7 digital (eg) then do have to handle it and check it in other api.

How will this scenario work?

Posts: 914
Registered: Sep 08, 2008

gaurish - I'm not exactly sure what you'd like to do, perhaps you could explain your use case a bit more. -- Paul

Posts: 8
Registered: Oct 01, 2012

Ok, heres the scenario

I fetch song info from Echonest and they provide me with the 7 digital track id, now I go to 7 digital API and stream the song.

So my question is whats if 7 digital does not have that particular song in their db. Will Echnonest provide some other options.

Whats should I do in this case? Should I register and get an API key from each of your partner?

Posts: 914
Registered: Sep 08, 2008

gaurish - on any Echo Nest call that returns a 3rd party track ID such as a 7Digital ID, you can add a parameter called 'limit'. If set to true, the results will be limited to just tracks that are in the 7Digital catalog. You will be guaranteed(*) that the 7digital track will be valid. For example, this call will generate a playlist that will return tracks only tracks that are define in the 7digital-US catalog:

http://developer.echonest.com/api/v4/playlist/static?api_key=N6E4NIOVYMTHNDM8J&artist=Weezer&format=json&results=20&type=artist-radio&bucket=tracks&bucket=id:7digital-US&limit=true

(*) - but note that there's always the potential for small differences between the Echo Nest and 7Digital catalogs, since tracks can come and go at a moment's notice. You should write your code defensively to protect against this.

Posts: 8
Registered: Oct 01, 2012

ok, if I am not mistaken I need to get the track id from the foreign_id field and send a request to 7 digital for streaming.

Reply to this Thread

You must log in to post a reply.