Forums » Bugs & Problems Search

Unable to profile tracks from 7digital New Reply

Author Post
Posts: 14
Registered: Jul 30, 2011

Hi,

I'm unable to retrieve an EN song info using 'song/profile' method from a 7digital ID that I know that EN has in its database. The method return 'success' to me, but the 'songs' tag is always empty.

For example, calling the same 'song/search' from the examples we can retrieve some 7digital's IDs: http://developer.echonest.com/api/v4/song/search?api_key=&format=xml&results=1&artist=radiohead&title=karma%20police&bucket=id:7digital-US&bucket=audio_summary&bucket=tracks

Now, using the first 7digital's ID from that list (7digital-US:track:9522) into 'song/profile': http://developer.echonest.com/api/v4/song/profile?id=7digital-US:track:9522&bucket=id:7digital-US&api_key=&format=xml&bucket=tracks

return to us an empty list of songs:

(replace ':' to '<' or '>' )

:response: :status: :version:4.2:/version: :code:0:/code: :message:Success:/message: :/status: :songs/: :/response:

Am I doing something wrong, or is this really not expected?

Regards

Posts: 19
Registered: Sep 20, 2009

Hey Heldergaray,

Try using 'track_id' instead of 'id':

http://developer.echonest.com/api/v4/song/profile?track_id=7digital-US:track:9522&bucket=id:7digital-US&api_key=N6E4NIOVYMTHNDM8J&format=xml&bucket=tracks

Hopefully that'll do it. Let us know if you have any issues.

Posts: 32
Registered: Sep 08, 2009

Hi heldergaray,

You're passing a track id into the song/profile method which expects a song id. You can either pass in a song id, or if you want to use the parent song for a track you can pass in the parameter track_id (instead of id). Here's an example:

http://developer.echonest.com/api/v4/song/profile?track_id=7digital-US:track:9522&bucket=id:7digital-US&api_key=YOUR_API_KEY&format=xml&bucket=tracks

Hope this helps! Tyler

Posts: 14
Registered: Jul 30, 2011

Excellent, it worked! Thanks for the quick answer!

Reply to this Thread

You must log in to post a reply.