Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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];
- // in production code, item.htmlTitle should have the HTML entities escaped.
- document.getElementById("content").innerHTML += "<br>" + item.htmlTitle;
- }
- }
- </script>
- <script src="https://www.googleapis.com/customsearch/v1?key=<span class="apiparam">YOUR-KEY</span>&cx=017576662512468239146:omuauf_lfve&q=cars&callback=hndlr">
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement