Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Google Search API] Missing next and next_link from JSON response when pagination is used #837

Closed
marm123 opened this issue May 8, 2023 · 4 comments
Assignees
Labels
status: urgent Urgent work

Comments

@marm123
Copy link

marm123 commented May 8, 2023

The next and next_link keys and values are only returned for the first results page in the serpapi_pagination block. If we paginate through results, the following pages are missing those keys and values.

1st page:
image

2nd page:
image

3rd page:
image

Playground 1st page | Inspect 1st page
Playground 2nd page | Inspect 2nd page
Playground 3rd page | Inspect 3rd page

@marm123 marm123 added the status: queued Ready to work on label May 8, 2023
@aliayar aliayar added status: urgent Urgent work and removed status: queued Ready to work on labels May 8, 2023
@ilyazub
Copy link

ilyazub commented May 9, 2023

Probably related to the endless scrolling pagination: #537.

I get the page without pagination buttons when visiting the google_url: https://www.google.com/search?q=Coffee&oq=Coffee&uule=w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM&hl=en&gl=us&start=20&sourceid=chrome&ie=UTF-8`

image

@aciddjus aciddjus self-assigned this May 9, 2023
@aciddjus aciddjus closed this as completed May 9, 2023
@arjendevos
Copy link

So this means, google just doesn't give more results?

@marm123
Copy link
Author

marm123 commented May 11, 2023

Hi @arjendevos. Google provides more results. The issue has been fixed, and you can find next and next_link in the JSON responses of pages 2,3,4... etc. Please see the examples below:

2nd page of results
3rd page of results

@arjendevos
Copy link

@marm123 oke thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: urgent Urgent work
Projects
None yet
Development

No branches or pull requests

5 participants