JSON Implementation for Spell SourceType

Bing

This topic contains the following details of a Spell SourceType query sent to the JSON interface:

  • Request Example

  • Response Example

For an example of JavaScript code that would send the request in this topic, see JSON Code Sample (Spell SourceType).

This section contains an example of an HTTP query string that the aforementioned code might generate.

http://api.bing.net/json.aspx?AppId=Insert your AppId here&Query=Mispeling%20words%20is%20a%20common%20ocurrence.&Sources=Spell&Version=2.0&Market=en-us&Options=EnableHighlighting&JsonType=callback&JsonCallback=SearchCompleted

This section contains an example of a response that Bing might return when sent the query string in the previous section:

if(typeofSearchCompleted=='function')SearchCompleted({
   "SearchResponse":{
      "Version":"2.0",
      "Query":{
         "SearchTerms":"Mispeling words is a common ocurrence."
      },
      "Spell":{
         "Total":1,
         "Results":[
            {
               "Value":"Misspelling words is a common occurrence."
            }
         ]
      }
   }/*pageview_candidate*/
});

Show: