Archives

The Bing API allows developers to query the Bing Engine. Queries can be sent using JSON, XML or SOAP.

In order to query Bing you will need an Application ID available on the Bing Developer Center. You will also need to agree to the terms of service.The Bing API includes support for Images, Answers, news, Phonebook, related, Spellcheck, Translation, Video and web results.

In this example we will use the InstantAnswer SourceType in order to query for specific flight information. The InstantAnswer response can contain Encarta or FlightStatus as its ContentType, depending on the query we requested.

For example: if we request the following “AA5” Bing will query for the status of flight number 5 within American Airlines.

If we query Bing for “What does interpolation mean?” It will return the meaning of interpolation as defined in the dictionary.

In order to query Bing for flight information we need to call it with the Airline code and flight number. We are going to pick them up from a simple text box