How to get over 100 results from the Google Custom Search API

I am trying to use the Google Custom Search API for research purposes in Java. As a result, I will need a large set of results for each query. However, it seems to me that I am limited to the first 100 results, which are much less than what I need. I use the list method as follows:

list.setStart(90L);

And when I set it to start from index 100, I get this error:

com.google.api.client.googleapis.json.GoogleJsonResponseException: 400 Bad Request

{   "code" : 400,   
    "errors" : [ {
    "domain" : "global",
    "message" : "Invalid Value",
    "reason" : "invalid"   
  } ],   
    "message" : "Invalid Value" 
}

Is there any way to remove this restriction?

+5
source share
4 answers

: ) 100 ; ) 100 ( 10 10 ). () , Google, () , , CSE (.. , ), ., , https://productforums.google.com/forum/#!topic/customsearch/VM8_6trCxGU

+6

10 Google Custom Search, . ( , , , )

Google Custom Search (Free) 100 , , , .

: https://developers.google.com/custom-search/json-api/v1/overview

0

17 2019 .

, , 100 .

  1. Google, 100 , , , .
  2. URL (num, start, lowRange, highRange), , , . , , , .

GOOGLE, , JSON API , 100 , , , / 100, , 10 , , &start= , 10 ( ).

Google API FAIL.

, , , , , .

0

You can use lowRange and highRange to solve this problem. See: https://productforums.google.com/forum/#!topic/customsearch/2qilVDaCz0A

-1
source

Source: https://habr.com/ru/post/1618194/


All Articles