JSON Implementation for Web SourceType

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

  • Request Example

  • Response Example

Code Sample

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

Request Example

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=msdn blogs&Sources=Web&Version=2.0&Market=en-us&Adult=Moderate&Options=EnableHighlighting&Web.Count=10&Web.Offset=0&Web.Options=DisableHostCollapsing+DisableQueryAlterations&JsonType=callback&JsonCallback=SearchCompleted

Response Example

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":"msdn blogs"
      },
      "Web":{
         "Total":1490,
         "Offset":0,
         "Results":[
            {
               "Title":"Monads",
               "Description":"Monad 1 2 Manifesto . Jeffrey P. Snover. Aug 8, 2002. Version 1.2. What is Monad? Monad is the next generation platform for administrative automation.",
               "Url":"http:\/\/blogs.msdn.com\/powershell\/attachment\/1910567.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/powershell\/attachment\/1910567.ashx",
               "DateTime":"2008-10-29T05:27:14Z"
            },
            {
               "Title":"The Trouble with Threat Modeling",
               "Description":"Larry Osterman lays out some other reasons threat modeling is hard in a blog post: http:\/\/blogs.msdn.com\/larryosterman\/archive\/2007\/08\/30\/threat-modeling-once-again.aspx",
               "Url":"http:\/\/blogs.msdn.com\/sdl\/attachment\/7702305.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/sdl\/attachment\/7702305.ashx",
               "DateTime":"2008-10-29T03:25:32Z"
            },
            {
               "Title":"Mobile Messaging with Exchange Server and Windows Mobile 5.0-based ...",
               "Description":"Security for Windows Mobile Messaging in the Enterprise . Date: February 2007. Applies to: Windows Mobile 5.0 with MSFP Windows Mobile 6 Exchange Server 2003 SP2",
               "Url":"http:\/\/blogs.msdn.com\/jasonlan\/attachment\/1873662.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/jasonlan\/attachment\/1873662.ashx",
               "DateTime":"2008-10-23T09:52:02Z"
            },
            {
               "Title":"Framework Design Studio Quick Start Guide",
               "Description":"Framework Design Studio Quick Start Guide . Framework Design Studio is a tool developed to help in designing and reviewing managed reusable API libraries.",
               "Url":"http:\/\/blogs.msdn.com\/kcwalina\/attachment\/8357773.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/kcwalina\/attachment\/8357773.ashx",
               "DateTime":"2008-10-31T17:27:50Z"
            },
            {
               "Title":"blogs.msdn.com",
               "Description":"Workaround Steps: Go to Add or Remove Programs ( Shortcut : appwiz.cpl ) Uninstall “ Microsoft SQL Server Compact 3.5 SP1 Beta Management tools ENU",
               "Url":"http:\/\/blogs.msdn.com\/sqlrem\/attachment\/7119085.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/sqlrem\/attachment\/7119085.ashx",
               "DateTime":"2008-10-28T05:57:03Z"
            },
            {
               "Title":"blogs.msdn.com",
               "Description":"Tools for Diagnosing Problems with Messaging Software . By danba . Version 1.0 . Last Revised 6\/30\/2006 . For testing and debugging code related issues, there are some tools and ...",
               "Url":"http:\/\/blogs.msdn.com\/webdav_101\/attachment\/652991.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/webdav_101\/attachment\/652991.ashx",
               "DateTime":"2008-10-30T16:03:08Z"
            },
            {
               "Title":"Golden Rules for developing TFS client applications",
               "Description":"Check out relevant code samples (Buck has a good set of links @ http:\/\/blogs.msdn.com\/buckh\/archive\/2006\/08\/12\/tfs_api_links.aspx) o If no code samples seem relevant but ...",
               "Url":"http:\/\/blogs.msdn.com\/bharry\/attachment\/744340.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/bharry\/attachment\/744340.ashx",
               "DateTime":"2008-10-28T04:09:40Z"
            },
            {
               "Title":"SDLC-in-a-Box version 2.0 Announcement",
               "Description":"VSTS Tools Platform Introduction; SDLC through the eyes of VSTS; Migrating from MSDN or Previous Versions to VSTS; Team Foundation Server Implementation Guidance; Team ...",
               "Url":"http:\/\/blogs.msdn.com\/publicsector\/attachment\/876258.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/publicsector\/attachment\/876258.ashx",
               "DateTime":"2008-10-23T21:12:05Z"
            },
            {
               "Title":"Setup:",
               "Description":"Know Your Blocking . You’ve read Inside Sql Server 2000 cover to cover, but how well do you really know the database locking behavior?",
               "Url":"http:\/\/blogs.msdn.com\/psheill\/attachment\/535614.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/psheill\/attachment\/535614.ashx",
               "DateTime":"2008-10-28T15:29:42Z"
            },
            {
               "Title":"Software Design Invitation Proposal Template for Imagine Cup",
               "Description":"SINGPAPORE SOFTWARE DESIGN INVITATIONAL SUBMISSION PROPOSAL TEMPLATE. NOTE: This section contains a template, not a fixed format. Please return soft copy only – hardcopies will not be ...",
               "Url":"http:\/\/blogs.msdn.com\/stanley\/attachment\/1610112.ashx",
               "DisplayUrl":"http:\/\/blogs.msdn.com\/stanley\/attachment\/1610112.ashx",
               "DateTime":"2008-10-23T18:13:07Z"
            }
         ]
      }
   }/*pageview_candidate*/
});