I. Bing search introduction:
Search type:Web,Image,News, Instantanswer,Video,Relatedsearch,Spell
Supported protocols: JSON, XML, and soap
Register the development ID http://www.bing.com/toolbox/bingdeveloper/ to get an applicationid
Ii. development overview
Take the Web Service of SOAP (C # as an example)
Reference http://api.bing.net/search.wsdl? Appid = yourappid & version = 2.2, and then
public class BingSearch { public async void SearchWebAsync(string keyWords) { BingPortTypeClient service = new BingPortTypeClient(); try { SearchRequest1 request = new SearchRequest1(); request.parameters = new SearchRequest(); request.parameters.AppId = Constant.BingAppId; request.parameters.Query = keyWords; ; request.parameters.Sources = new SourceType[] { SourceType.Web }; request.parameters.Version = "2.2"; request.parameters.Market = "zh-cn"; request.parameters.Adult = AdultOption.Moderate; request.parameters.AdultSpecified = true; // Send the request; display the response. SearchResponse1 response = await service.SearchAsync(request); } catch (System.Net.WebException ex) { // An exception occurred while accessing the network. } } }
The result in response is the result set.
Search examples on msdn
Http://msdn.microsoft.com/en-us/library/dd250847