Java README Integration Guide Additions - #11
audrey-serpapi wants to merge 10 commits into
Conversation
There was a problem hiding this comment.
I feel like we should start earlier. Here, we're assuming people already have "build.gradle" file. Can we start somewhere, like creating a new folder, then ....
There was a problem hiding this comment.
Simlar steps you shared on the blog post https://serpapi.com/blog/how-to-scrape-google-search-results/#library-update-2026
There was a problem hiding this comment.
It seems like the repository we provide to be cloned in quickstart already has the gradle files and necessary setup ready. So, no gradle file editing is needed.
Would it be important to have a from scratch application section? Or just keep the main method as cloning our sample app with everything already set?
There was a problem hiding this comment.
"You need a SerpApi account to obtain a key: https://serpapi.com/dashboard"
Duplication. We already mention it after the quickstart
| The [SerpApi.com API Documentation](https://serpapi.com/search-api) contains a list of all the possible parameters that can be passed to the API. | ||
| ## Features | ||
|
|
||
| - [Asynchronous searches](https://github.com/serpapi/serpapi-java/commit/75417ff5fe603d19c0a30933251d4bb469ddfe9b) for submitting non-blocking jobs and retrieving completed results from the Search Archive API |
There was a problem hiding this comment.
This should not be there. We don't have an equivalent page for this so going to leave unlinked.
| parameter.put("p", "coffee"); | ||
| JsonObject results = client.search(parameter); | ||
| System.out.println(results.toString()); | ||
| System.out.println("waiting 10s for searches to complete..."); |
There was a problem hiding this comment.
Maybe we should add a comment that this is a simulation. In real life, people may need to check process status instead of waiting for a specific time.
…e duplicate dashboard line, remove bad hyperlink, async note, add back in Migrations from the old library + TLS / HTTPS and older JVMs
|
Fixing some previous failing tests. Working for a clean build then will ask for review. |
|
Hi @tanysheng @jvmvik @strzibny, could this get a review from you? Thanks |
|
Thanks @audrey-serpapi. I went through the changes and retested on latest Java 27. We still can't build with JDK 27 because of Gradle but that's expected. Here are some things we should fix: 1, There is a mismatch between README.md and README.md.erb since the latter isn't updated and the contributor guide says to run 2, You use 3, Let's keep example namespace everywhere so it's same: package serpapi.example;
import serpapi.*;4, 5, Response format snippets are snaked_cased but should be CamelCased in Java (e.g. 6, Google example likely need to use 7, Actual package name is Typos:
|
…nd timeout (unsupported features), make java namings camel case, use LocalDate instead of placeholder for google flights, replace package name, fix typos/formatting
|
Thank you for your review and feedback @strzibny! Have addressed 1-7 and typos. |

https://github.com/serpapi/marketing/issues/340
Summary of Changes: