serpapi / public-roadmap

Public Roadmap for SerpApi, LLC (https://serpapi.com)
55 stars 6 forks source link

[DuckDuckGo Search API] `serpapi_pagination.next` doesn't take into account the current offset of results #619

Open ilyazub opened 1 year ago

ilyazub commented 1 year ago

serpapi_pagination.next doesn't take into account the current offset of results. (Search Inspect page.)

curl -s --compressed https://serpapi.com/search?engine=duckduckgo&q=Coffee&kl=us-en&start=76&api_key=$API_KEY | jq -r '.serpapi_pagination.next'
https://serpapi.com/search.json?engine=duckduckgo&kl=us-en&q=Coffee&start=29

Expected result

serpapi_pagination.next contains query parameter start=105.

Actual result

serpapi_pagination.next contains query parameter start=29.

hilmanski commented 9 months ago

I recently tested this.

The first page, shows the wrong total number of organic_results: Inspect 1st page It displayed start=27 on the pagination link, while there were only 17 results.

The second page shows 50 results but shows start=50 on the next_pagination. Where I assume it should be 50+27 Inspect 2nd page