I'm currently using the Bing Web Search API v7 to query Bing for search results. As per the API docs, the parameters count
and offset
are used to paginate through the results, the total number of which are defined in the results themselves by the value of totalEstimatedMatches
.
As below from the documentation:
totalEstimatedMatches: The estimated number of webpages that are relevant to the query. Use this number along with the count and offset query parameters to page the results.
This seems to work up to a point, after which the API just continues to return the exact same results over and over, regardless of the values of count
and offset
.
In my specific case, the totalEstimatedMatches
was set at 330,000
. With a count
of 50
(i.e. 50 results per request) the results begin repeating at around offset
700 i.e. 3,500
results into the estimated 330,000
.
In playing with the bing front end, I have noticed a similar behaviour once the page count get sufficiently high e.g.
- https://www.bing.com/search?q=feed%3amp3&first=1&FORM=PERE - initial search, estimated
51,000
results - https://www.bing.com/search?q=feed%3amp3&first=1000&FORM=PERE - first 1000, should get results 1000 to 1010 but returns same results as url below
- https://www.bing.com/search?q=feed%3amp3&first=2000&FORM=PERE - first = 2000, should get results 2000 to 2010 but returns same results as url above
Am I using the API incorrectly or is this just some sort of limitation or bug in which the totalEstimatedMatches
is just way off?