Java README Integration Guide Additions - #11
Open
audrey-serpapi wants to merge 5 commits into
Open
Conversation
hilmanski
reviewed
Sep 9, 2026
|
|
||
| Using Maven / Gradle. | ||
|
|
||
| Edit your `build.gradle` file: |
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
| cd serpapi-java/demo | ||
| make all SERPAPI_KEY='<your private key>' | ||
| ``` | ||
| Use quotes if your key contains shell-special characters. You need a SerpApi account to obtain a key: https://serpapi.com/dashboard |
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 |
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

https://github.com/serpapi/marketing/issues/340