Forums » General Discussion Search

Use Echo Nest Artist ID to get foreign id? New Reply

Author Post
Posts: 4
Registered: Aug 30, 2011

Hey guys, using the suggest feature to let someone choose an artist, however the suggest api doesn't include the foreign ids capability.

I see how I can use search to get a foreign id, but I can't use the echo nest id in the search api, only the name. My concern is now I am possibly adding the wrong artist for the user based on what the search comes up with (especially for multiple artists with the same name).

Is there a way to get the foreign id's of an artist using their echo nest ID (or another 'exact' method to get the id I need?)

Thanks for your help!

Posts: 1113
Registered: Sep 08, 2008

ivanmayes - you can use the artist/profile method to get a foreign id given an Echo Nest artist ID. Here's an example:

http://developer.echonest.com/api/v4/artist/profile?api_key=N6E4NIOVYMTHNDM8J&id=ARH6W4X1187B99274F&bucket=id:musicbrainz&bucket=id:7digital-US

Hope this helps

Paul

Posts: 4
Registered: Aug 30, 2011

My apologies, I read through twice and missed it twice. Took me posting this to find it right after. Thanks for the quick response!

Posts: 1
Registered: Jul 29, 2012

Hi,

thanks for the great service that you are providing !

I would like to retrieve fma artist IDs.

http://developer.echonest.com/api/v4/artist/profile?api_key=N6E4NIOVYMTHNDM8J&id=ARH6W4X1187B99274F&bucket=id:musicbrainz&bucket=id:7digital-US

This works for bucket=id:7digital-US .

I cant get to search for fma artist IDs.

This will not give me an fma artistID: http://developer.echonest.com/api/v4/artist/profile?api_key=N6E4NIOVYMTHNDM8J&id=ARH6W4X1187B99274F&bucket=id:musicbrainz&bucket=id:fma

Thanks for your help!

Posts: 2
Registered: Nov 26, 2012

Hi, all.

I'm having the same problem as ahacome. Some buckets like 7digital-US or musicbrainz work pretty well.

When I try to use FMA though, it doesn't return foreign ids.

Posts: 1113
Registered: Sep 08, 2008

Hi Netto - the FMA catalog is a somewhat small catalog. It is likely that you are searching for content that just is not in the FMA catalog.

Here's an example all that returns FMA IDs:

http://developer.echonest.com/api/v4/song/search?api_key=FILDTEOIK2HBORODV&format=json&results=10&sort=song_hotttnesss-desc&bucket=id:fma&limit=true&bucket=tracks

-- Paul

Posts: 2
Registered: Nov 26, 2012

Yeah, you're right. I figured this out about like 10 minutes later. I forgot to add the limit=true part, so I would actually not see the fma results.

thanks!

Reply to this Thread

You must log in to post a reply.