|
Posts: 23
Registered: Feb 27, 2009
|
Posted: 2012-05-18 00:13:59
|
I'd love to build an app that allows bands to be browsed by their hometown or current location. For example, you could view a comprehensive, interactive list of all the bands based in Boston.
I don't see anything that would allow me to do this in the EchoNest api, and I of course understand the complexity of finding this data for every band out there. Facebook does have 'hometown' and 'current_location' for bands, though sometimes the info isn't filled in. These are also a non-indexable columns, so unfortunately I can't use FQL (Facebook Query Language) to, say, sort by all artists who list "Boston, MA" as their current location.
Perhaps EchoNest could scrape each band's FB page to grab this info? Anyhow, not sure how to get it done, but would open some really cool possibilities to have this info to play with.
|
|
|
Posts: 171
Registered: Sep 05, 2008
|
Posted: 2012-05-18 00:18:48
|
You can do this with artist/search and the latitude and longitude parameters. We have artist location for a very large percentage of our database.
|
|
|
Posts: 23
Registered: Feb 27, 2009
|
Posted: 2012-05-18 00:37:33
|
Thanks Brian! Hmm, I still can't seem to find any of the specs for latitude or longitude on http://developer.echonest.com/docs/v4/artist.html
And when I try 'latitude' or 'min_latitude', I get an error message that these are invalid parameters.
This is one call I tried that didn't work: http://developer.echonest.com/api/v4/artist/search?api_key=MY_API_KEY&format=json&results=20&latitude=42.3583&longitude=71.0603
|
|
|
Posts: 46
Registered: Dec 05, 2008
|
Posted: 2012-05-18 00:47:12
|
Try this
http://developer.echonest.com/api/v4/artist/search?api_key=YOUR_API_KEY&artist_location=^boston,ma&bucket=artist_location - this API is in beta at the moment
or you can use lat/long of the artists while searching for songs -
http://developer.echonest.com/api/v4/song/search?sort=song_hotttnesss-desc&results=100&min_latitude=40&api_key=YOUR_API_KEY&bucket=artist_familiarity&bucket=song_hotttnesss&limit=false&bucket=artist_location
|
|
|
Posts: 23
Registered: Feb 27, 2009
|
Posted: 2012-05-18 00:51:17
|
Sweet, the first one is just what I'm looking for. Thanks @yfaktor!
|
|
|
Posts: 2
Registered: Mar 14, 2011
|
Posted: 2012-06-21 15:06:53
|
Hey.
This is exactly what I was looking for. Besides, is there a way to get the total number of artists by town/city/location? I mean, no specific results, just the artist count.
Thanks in advance.
JP
|
|
|
Posts: 917
Registered: Sep 08, 2008
|
Posted: 2012-06-25 15:17:59
|
jpcarrascal - sorry, no way to do that just now.
-- Paul
|
|
|
Posts: 2
Registered: Mar 14, 2011
|
Posted: 2012-06-25 16:45:04
|
Thanks plamere.
One last question on the topic. With the sample queries mentioned above "start + results must be less than 1000". Should I assume then that it is not possible to find more than 1000 artists per location? Is there a way to go beyond that limit?
JP
|
|
|
Posts: 917
Registered: Sep 08, 2008
|
Posted: 2012-07-17 15:17:58
|
jp - that is correct. There's no way to go beyond 1000. -- Paul
|
|