JSON Implementation
Collapse the table of content
Expand the table of content

JSON Implementation for Image SourceType (Encarta)

Bing

This topic contains the following details of an Image 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 (Image 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=xbox%20site:microsoft.com&Sources=Image&Version=2.0&Market=en-us&Adult=Moderate&Image.Count=10&Image.Offset=0&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":"xbox site:microsoft.com"
      },
      "Image":{
         "Total":92,
         "Offset":0,
         "Results":[
            {
               "Title":"Microsoft Deutschland GmbH auf der CeBIT 2006.",
               "MediaUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/images\/pressemappen\/cebit2006\/Xbox-360_5.jpg",
               "Url":"http:\/\/www.microsoft.com\/germany\/presseservice\/service\/pressemappen\/cebit2006.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/service\/pressemappen\/cebit2006.mspx",
               "Width":3259,
               "Height":3264,
               "Thumbnail":{
                  "Url":"http:\/\/ts2.images.live.com\/images\/thumbnail.aspx?q=2847678867077&id=b3ba5b922c04d322d937275335c8cf75",
                  "ContentType":"image\/jpeg",
                  "Width":159,
                  "Height":160,
                  "FileSize":2624
               }
            },
            {
               "Title":"Microsoft Deutschland GmbH auf der CeBIT 2006.",
               "MediaUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/images\/pressemappen\/cebit2006\/Xbox-360_3.jpg",
               "Url":"http:\/\/www.microsoft.com\/germany\/presseservice\/service\/pressemappen\/cebit2006.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/service\/pressemappen\/cebit2006.mspx",
               "Width":1181,
               "Height":1567,
               "Thumbnail":{
                  "Url":"http:\/\/ts4.images.live.com\/images\/thumbnail.aspx?q=2770366827291&id=bf7f7d5163531f7f0f01c7de2904d939",
                  "ContentType":"image\/jpeg",
                  "Width":120,
                  "Height":160,
                  "FileSize":2216
               }
            },
            {
               "Title":"Microsoft Deutschland GmbH auf der CeBIT 2006.",
               "MediaUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/images\/pressemappen\/cebit2006\/Xbox-360_2.jpg",
               "Url":"http:\/\/www.microsoft.com\/germany\/presseservice\/service\/pressemappen\/cebit2006.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/service\/pressemappen\/cebit2006.mspx",
               "Width":1772,
               "Height":1241,
               "Thumbnail":{
                  "Url":"http:\/\/ts2.images.live.com\/images\/thumbnail.aspx?q=2847678861537&id=6ebf726022b6cc307bb6f725a3b8ebda",
                  "ContentType":"image\/jpeg",
                  "Width":160,
                  "Height":112,
                  "FileSize":2339
               }
            },
            {
               "Title":"Microsoft Presseservice Pressemappen",
               "MediaUrl":"http:\/\/download.microsoft.com\/download\/6\/2\/6\/6268195f-e0f9-44c7-be9b-171bb041068f\/Xbox_360_Elite_2.jpg",
               "Url":"http:\/\/www.microsoft.com\/germany\/presseservice\/pressemappe_downloads.mspx?id=531984",
               "DisplayUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/pressemappe_downloads.mspx?id=531984",
               "Width":1333,
               "Height":1772,
               "Thumbnail":{
                  "Url":"http:\/\/ts4.images.live.com\/images\/thumbnail.aspx?q=2711566943395&id=1eca328758679ef4b1aa0f7c136cd33a",
                  "ContentType":"image\/jpeg",
                  "Width":120,
                  "Height":160,
                  "FileSize":2694
               }
            },
            {
               "Title":"Inform Santa: Xbox Has Arrived: Xbox is the must-have gift for video ...",
               "MediaUrl":"http:\/\/www.microsoft.com\/presspass\/images\/press\/2001\/11-15xbox_l.jpg",
               "Url":"http:\/\/www.microsoft.com\/presspass\/features\/2001\/nov01\/11-13xbox.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/presspass\/features\/2001\/nov01\/11-13xbox.mspx",
               "Width":1379,
               "Height":2048,
               "Thumbnail":{
                  "Url":"http:\/\/ts2.images.live.com\/images\/thumbnail.aspx?q=2791543210725&id=cb1ce4627358630ade946ea6b844df04",
                  "ContentType":"image\/jpeg",
                  "Width":107,
                  "Height":160,
                  "FileSize":4402
               }
            },
            {
               "Title":"Windows Vista: Connect your Xbox 360 to Windows Media Center",
               "MediaUrl":"http:\/\/www.microsoft.com\/library\/media\/1033\/windows\/images\/products\/winfamily\/mediacenter\/connect_02.jpg",
               "Url":"http:\/\/www.microsoft.com\/windows\/products\/winfamily\/mediacenter\/xbox360.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/windows\/products\/winfamily\/mediacenter\/xbox360.mspx",
               "Width":400,
               "Height":317,
               "Thumbnail":{
                  "Url":"http:\/\/ts1.images.live.com\/images\/thumbnail.aspx?q=2759127860968&id=0c50b801ffb68fb1d73f3cff3f8c793d",
                  "ContentType":"image\/jpeg",
                  "Width":160,
                  "Height":126,
                  "FileSize":3846
               }
            },
            {
               "Title":"Microsoft Roars Into E3 With Xbox Preview: Responding to an online ... ...",
               "MediaUrl":"http:\/\/www.microsoft.com\/presspass\/images\/features\/05-10xbox.jpg",
               "Url":"http:\/\/www.microsoft.com\/presspass\/features\/2000\/05-10e3xbox.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/presspass\/features\/2000\/05-10e3xbox.mspx",
               "Width":250,
               "Height":172,
               "Thumbnail":{
                  "Url":"http:\/\/ts1.images.live.com\/images\/thumbnail.aspx?q=2903232677092&id=618e364ae6d3a07859b943851ca61944",
                  "ContentType":"image\/jpeg",
                  "Width":160,
                  "Height":110,
                  "FileSize":4183
               }
            },
            {
               "Title":"Microsoft Deutschland GmbH auf der CeBIT 2006.",
               "MediaUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/images\/pressemappen\/cebit2006\/Xbox-360_4.jpg",
               "Url":"http:\/\/www.microsoft.com\/germany\/presseservice\/service\/pressemappen\/cebit2006.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/germany\/presseservice\/service\/pressemappen\/cebit2006.mspx",
               "Width":1772,
               "Height":1300,
               "Thumbnail":{
                  "Url":"http:\/\/ts3.images.live.com\/images\/thumbnail.aspx?q=2662427463490&id=c523c35ec0e285ca575f64cf7602f7f3",
                  "ContentType":"image\/jpeg",
                  "Width":160,
                  "Height":117,
                  "FileSize":2471
               }
            },
            {
               "Title":"Windows Vista: Se tv og film overalt",
               "MediaUrl":"http:\/\/www.microsoft.com\/library\/media\/1030\/danmark\/windows\/images\/products\/windowsvista\/features\/experiences\/tvandmovies\/screenshot_xboxextender.jpg",
               "Url":"http:\/\/www.microsoft.com\/danmark\/windows\/products\/windowsvista\/features\/experiences\/tvandmovies\/anywhere.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/danmark\/windows\/products\/windowsvista\/features\/experiences\/tvandmovies\/anywhere.mspx",
               "Width":400,
               "Height":351,
               "Thumbnail":{
                  "Url":"http:\/\/ts4.images.live.com\/images\/thumbnail.aspx?q=2903232679435&id=b140808f5cde3e9e5c583f3ded85431c",
                  "ContentType":"image\/jpeg",
                  "Width":160,
                  "Height":140,
                  "FileSize":3743
               }
            },
            {
               "Title":"Windows Vista: Connect your Xbox 360 to Windows Media Center",
               "MediaUrl":"http:\/\/www.microsoft.com\/library\/media\/1033\/windows\/images\/products\/winfamily\/mediacenter\/connect_06.jpg",
               "Url":"http:\/\/www.microsoft.com\/windows\/products\/winfamily\/mediacenter\/xbox360.mspx",
               "DisplayUrl":"http:\/\/www.microsoft.com\/windows\/products\/winfamily\/mediacenter\/xbox360.mspx",
               "Width":400,
               "Height":322,
               "Thumbnail":{
                  "Url":"http:\/\/ts4.images.live.com\/images\/thumbnail.aspx?q=2835510397451&id=3f3927b55a67d6bb26979e97a6d3c028",
                  "ContentType":"image\/jpeg",
                  "Width":160,
                  "Height":128,
                  "FileSize":3571
               }
            }
         ]
      }
   }/*pageview_candidate*/
});

Show:
© 2016 Microsoft