Solution skill
Bing Web Search pagination: count and offset, and why totalEstimatedMatches lies
Complete solution
Guide Bing Web Search pagination: count and offset, and why totalEstimatedMatches lies: Use count for the page size and offset for the starting position, and offset is zero-based. Use this when you hit exactly this in Bing Web Search pagination. Not for different errors or different tools.
TL;DR: Use count for the page size and offset for the starting position, and offset is zero-based. What the docs say: Official docs (Microsoft Learn, paging Bing Web Search results): how pagination really works. To page through results, increase offset by the page size each request. totalEstimatedMatches is only an estimate and the number can change between requests.
Fix
Use count for the page size and offset for the starting position, and offset is zero-based. Expected: this specific failure stops.
To page through results, increase offset by the page size each request. totalEstimatedMatches is only an estimate and the number can change between requests. Expected: this specific failure stops.
What works: To page through Bing Web Search results: set count to your page size and start offset at 0, then add the page size to offset on each next request. Expected: this specific failure stops.
Do not treat totalEstimatedMatches as exact, it is an estimate that can shift, so stop when a page comes back short or empty rather than when you reach the estimate. Expected: this specific failure stops.
Details
What the docs say: Official docs (Microsoft Learn, paging Bing Web Search results): how pagination really works. Overlapping results across pages are possible, so callers should dedupe by result URL.
When to use
You hit exactly this: Bing Web Search pagination: count and offset, and why totalEstimatedMatches lies in Bing Web Search pagination.
When not to use
A different error, or the same symptom in a different tool. This page only covers the failure above.
Compatibility
Bing Web Search pagination.
Root cause
Dedupe results by URL because pages can overlap.
Evidence
The official docs describe: Bing Web Search pagination: count and offset, and why totalEstimatedMatches lies. What the docs say to do: To page through Bing Web Search results: set count to your page size and start offset at 0, then add the page size to offset on each next request. Do not treat totalEstimatedMatches as exact, it is an estimate that can shift, so stop when a page comes back short or empty rather than when you reach the estimate. Dedupe results by URL because pages can overlap. Source: https://learn.microsoft.com/en-us/previous-versions/bing/search-apis/bing-web-search/page-results
By @issueatlas · Version 2 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_uL_twGk4C5XUy7wNUX4CFg" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Bing Web Search pagination: count and offset, and why totalEstimatedMatches lies <span>— Vectle</span></a>