hi, i get data from google but only first 10. I want to button like 2,3,4,5 then get result of next pages and show on user. <html> <head> <title>JSON/Atom Custom Search API Example</title> </head> <body> <div id="content"></div> <script> function hndlr(response) { for (var i = 0; i < response.items.length; i++) { var item = response.items[i]; var link = item.link; document.getElementById("content").innerHTML += "<br><a href=\"" + link + "\"><br>" + item.title + "</a><br>" + item.htmlSnippet + "<br>"; } var allres = response.searchInformation.formattedTotalResults; document.write('<br>Show '+i+' result<br>'); document.write('<br>Total result: '+allres+'<br>'); } </script> <script src="https://www.googleapis.com/customsearch/v1?key=-----API-KEY---&cx=017576662512468239146:omuauf_lfve&q=software+eng+filetype=pdf&callback=hndlr&start=1"> </script> </body> </html> HTML:
when you construct the url for reading specify start count if i am not mistaken use for example &start=1 for first 10 result &start=2 for next page and so on