Is there a working sample of the Google custom search rest API? -


i need create screen automates google search. know javascript , i'm trying gse works.

i have search engine , api key. problem google's documentation cyclic i.e. pages point each other. there no working sample can start research.

please if know of working sample.

the documents have read are:

  1. cselement-devguide
  2. introduction

the place start rest api here: https://developers.google.com/custom-search/json-api/v1/introduction

example:

<div id="content"></div> <script>      // remember replace your_api_key below.      function hndlr(response) {       (var = 0; < response.items.length; i++) {         var item = response.items[i];         // in production code, item.htmltitle should have html entities escaped.         document.getelementbyid("content").innerhtml += "<br>" + item.htmltitle;       }     } </script> <script src="https://www.googleapis.com/customsearch/v1?key=your_api_key&cx=017576662512468239146:omuauf_lfve&q=cars&callback=hndlr"> </script> 

here's fiddle: http://jsfiddle.net/agjch/


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -