XML Implementation for Video SourceType (Bing, Version 2.1)

Bing

This topic contains the following details of an Video 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 (Video 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 &sources=video&market=en-us&query=xbox site:microsoft.com&adult=moderate&video.count=2

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.1">
  <Query>
    <SearchTerms>xbox site:microsoft.com</SearchTerms>
  </Query>
  <mms:Video xmlns:mms="http://schemas.microsoft.com/LiveSearch/2008/04/XML/multimedia">
    <mms:Total>200</mms:Total>
    <mms:Offset>0</mms:Offset>
    <mms:Results>
      <mms:VideoResult>
        <mms:Title>Xbox, Xbox.com, and Xbox LIVE Advertising - Microsoft Advertising</mms:Title>
        <mms:PlayUrl>http://advertising.microsoft.com/gaming/xbox-advertising</mms:PlayUrl>
        <mms:RunTime>78156</mms:RunTime>
        <mms:ClickThroughPageUrl>http://bing.com/video/results.aspx?q=xbox&amp;scope=video&amp;docid=663626973563&amp;FORM=SOAPGN</mms:ClickThroughPageUrl>
        <mms:StaticThumbnail>
          <mms:Url>http://ts4.images.live.com/video/thumbnail.aspx?q=663626973563&amp;id=30fc59179deb3182887b21563a2dea4c</mms:Url>
          <mms:ContentType>image/jpeg</mms:ContentType>
          <mms:Width>160</mms:Width>
          <mms:Height>90</mms:Height>
          <mms:FileSize>2870</mms:FileSize>
        </mms:StaticThumbnail>
      </mms:VideoResult>
      <mms:VideoResult>
        <mms:Title>Whiteboard Videos </mms:Title>
        <mms:PlayUrl>http://msdn.microsoft.com/en-us/testing/bb734786.aspx</mms:PlayUrl>
        <mms:RunTime>550954</mms:RunTime>
        <mms:ClickThroughPageUrl>http://bing.com/video/results.aspx?q=xbox&amp;scope=video&amp;docid=562234982542&amp;FORM=SOAPGN</mms:ClickThroughPageUrl>
        <mms:StaticThumbnail>
          <mms:Url>http://ts3.images.live.com/video/thumbnail.aspx?q=562234982542&amp;id=df47eb1200d69d0a60ca7e3dfe63116a</mms:Url>
          <mms:ContentType>image/jpeg</mms:ContentType>
          <mms:Width>160</mms:Width>
          <mms:Height>120</mms:Height>
          <mms:FileSize>3540</mms:FileSize>
        </mms:StaticThumbnail>
      </mms:VideoResult>
    </mms:Results>
  </mms:Video>
</SearchResponse>
Show: