Getting more than 10 results by Google Custom Search API V1 in Java
问题 I am using Google Custom Search API in Java to get results of Google in response to a query. I have written this code with the help of other posts, code is as follows: url = new URL("https://www.googleapis.com/customsearch/v1?key="+key+ "&cx="+ cx +"&q="+ searchText+"&alt=json"+"&start="+0+"&num="+30); HttpURLConnection conn2 = (HttpURLConnection) url.openConnection(); System.out.println("Connection opened!"); conn2.setRequestMethod("GET"); conn2.setRequestProperty("Accept", "application/json