Bug with location/country fields in the new open search API

5 views
Skip to first unread message

chrisclaydon

unread,
Dec 19, 2009, 9:03:15 PM12/19/09
to MySpace APIs

I found this new API really useful and easy to implement, we had it
live within our application just two hours after starting work!

However, I found one quite serious bug - the documented filters for
country and location are not working.

Here is a reproducible test case:

http://api.myspace.com/opensearch/people?format=xm
l&searchTerms=dave&count=30&startPage=1&hasPhoto=on
&countryCode=CA&location=toronto

The users returned do not appear to be in toronto, or even in Canada.

Many thanks for your continued innovation and allowing us access to
this data.

Do let me know if/when the location filters are working, it would be
great to have a fully feature mySpace search in our application.

Best wishes,
Chris

viphak

unread,
Dec 20, 2009, 12:00:20 AM12/20/09
to MySpace APIs
Hey Chris,

The location field is a more powerful field for this kind of
filtering. I suggest putting city state and country in this filter
instead. We have some limitations on the following geo fields that
need to be sorted out: regionId, countryId, and countryCode. They
allow you to narrow down the search but aren't refined enough yet.

location=city,state,country

Try this:

http://api.myspace.com/opensearch/people?format=xml&searchTerms=dave&count=30&startPage=1&hasPhoto=on&countryCode=CA&location=toronto,%20ca

Hope this helps. Anymore questions you can post here or email me.

-V

Reply all
Reply to author
Forward
0 new messages