Search code examples
bing-api

Bing API Azure Marketplace: how to know whether there are more results?


I am using the Bing Search API in Windows Azure Marketplace (i.e., the API that replaces the old Bing 2.0 API, that expires on 1st August 2012). The Migration Guide provided by Microsoft states:

If there are no more pages of results, the /feed/link[@rel=’next’] property will no longer appear [...].

However, it seems that this is not always the case. For example, a News query for "Roger Federer" does not contain a link element:

Request: https://api.datamarket.azure.com/Data.ashx/Bing/Search/News?Query=%27"Roger+Federer"%27

Response:

<feed xmlns:base="https://api.datamarket.azure.com/Data.ashx/Bing/Search/News"
    xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices"
    xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"
    xmlns="http://www.w3.org/2005/Atom">
    <title type="text">"Roger Federer"</title>
    <subtitle type="text">Bing News Search</subtitle>
    <id>https://api.datamarket.azure.com/Data.ashx/Bing/Search/News?Query='"Roger Federer"'</id>
    <rights type="text"/>
    <updated>2012-07-26T15:43:03Z</updated>
    <entry>
        <!-- ... -->
    </entry>
    <!-- ... -->
</feed>

Nevertheless, there are more news: https://api.datamarket.azure.com/Data.ashx/Bing/Search/News?Query=%27"Roger+Federer"%27&$skip=50

Does anybody know where the problem might be? (Or where there is reliable documentation for the API?)


Solution

  • I cannot reproduce this anymore: the response now contains a link element.

    I suppose the Bing guys have fixed the problem in the meantime.