Judging by the code, there are several overloaded variants of searchRepositories
, one of which accepts a query
parameter, a language
parameter and a startPage
parameter. This means you should be able to run the query that you specified by using:
RepositoryService.searchRepositories("Go", "go")
If you then want to get more results, you would specify the page as well:
RepositoryService.searchRepositories("Go", "go", 2)
RepositoryService.searchRepositories("Go", "go", 3)
...
Unfortunately I cannot see a way for you to tell how many pages there actually are. The code used by searchRepositories
to do the request suggests that the first request should in fact return all the results across all the pages, but if you are only getting 100 results back, then it seems this is not the case. You might just have to keep trying later pages until you get no results back.