Export (0) Print
Expand All

XML Implementation for Image SourceType

Bing

This topic contains the following details of an Image SourceType query sent to the XML interface:

  • Request Example

  • Response Example

For an example of code that might generate the request in this topic, see XML Code Samples (Image SourceType).

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

http://api.bing.net/xml.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

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

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

Show:
© 2014 Microsoft