Problem Receiving LOCAL-specific ("locationoverride") News using LIVE.NET's SOAP API - How Much of a Donut Am I exactly?
-
Monday, May 11, 2009 9:00 PMFolks!!Can you / anyone help? Am new to Live Search API (and perhaps development / web services) but I thought the MSN Documentation was pretty straightforward AND YET ... I'm stuck.I thought I could use the BELOW soap call to get LOCAL to ILLINOIS news source results where query = 'a' and sources = 'news' and en-US market.ALAS ... I get 10 news rows of national headlines - which suggests I'm making the API call incorrectly.PLEASE HELP!http://api.search.live.net/xml.aspx?Appid=1234567890&query=a&sources=news&market=en-US&UIlanguage=en&SortBy=Date&LocationOverride=US.IL(where 1234567890 is obviously not my real appid)Richard
All Replies
-
Tuesday, May 12, 2009 5:39 PMOwner
Hi Richard,
There are two problems with our query. The first issue is that SortBy and LocationOverride are not prefixed with "news.", the second, more subtle, is that only one filter can be applied at a time. If you apply a sort-by you cannot apply a location override and vice-versa.
You may want to try
http://api.search.live.net/xml.aspx?appid=<yourappid>&query=a&sources=news&market=en-us&UILanguage=en&News.LocationOverride=US.IL
or
http://api.search.live.net/xml.aspx?appid=<yourappid>&query=a&sources=news&market=en-us&UILanguage=en&News.SortBy=Date
HTH
--Alessandro- Marked As Answer by AlessCOwner Tuesday, May 12, 2009 5:40 PM
-
Tuesday, May 12, 2009 6:29 PMAless:Brilliant. Works like a charm. Thank you! I'll RTFM next time in a little more detail.Richard