I read this question and answers.
How can you search Google Programmatically Java API
When I run the codes in the answer and search anything, it returns only 4 results from google.
How can I get all the results?
I read this question and answers.
How can you search Google Programmatically Java API
When I run the codes in the answer and search anything, it returns only 4 results from google.
How can I get all the results?
Did you read the documentation available from Google?
The API described in that answer is being deprecated and has the number of queries you may do reduced.
The alternative is here:
The post is a bit old but in case someone else is asking the question. I've found this website that explains what to do to send a request on google search engines.