I tried to make a easy google news search api. I know google news api search can show max 8 items per page, and 8 pages(total 64 items).
1.How to add `image{}`(I want to show the news image), I read the document in google official website, but not understand.
2.Can google news api search set a start page at page 3?(the default page is always show page 1)
3.Is google api search have a day limit? I saw the old version Google SOAP Search API just allow custom use 1000 times per day.
Thanks.
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>The Hello World of News Search</title>
<script src="https://www.google.com/jsapi?key=ABQIAAAAeEJvEumzGBw8dvenGPw1bRTcyTBaKMmwi780-Sh78Ay3Pg36mBRsO3t_v4eega6kiiiRMl84WG-4eA"></script>
<script type="text/javascript">
google.load('search', '1');
var searchControl;
function OnLoad() {
google.search.Search.getBranding(document.getElementById("branding"));
var newsSearch = new google.search.NewsSearch();
newsSearch.setUserDefinedLabel("sport");
searchControl = new google.search.SearchControl();
searchControl.addSearcher(newsSearch);
var options = new google.search.DrawOptions();
options.setDrawMode(GSearchControl.DRAW_MODE_TABBED);
searchControl.setResultSetSize(google.search.Search.LARGE_RESULTSET);
searchControl.draw(document.getElementById("searchResults"), options);
// Execute an inital search
searchControl.execute("sport");
}
// Set a callback to call your code when the page loads
google.setOnLoadCallback(onLoad);
</script>
</head>
<body style="font-family: Arial;border: 0 none;">
<div id="branding" style="float: left;"></div><br />
<div id="content">Loading...</div>
</body>
</html>