Google search API wrapper for Node.js

user971956 picture user971956 · Apr 18, 2012 · Viewed 13.8k times · Source

I am looking for a Google search API wrapper to be used in Node.js, I have searched around but haven't found something updated and fully baked. Can anyone please recommend something working? Thanks

Answer

Burcu Dogan picture Burcu Dogan · Mar 9, 2013

Why aren't you using node client lib for Google APIs? https://github.com/google/google-api-nodejs-client

var googleapis = require('googleapis');
googleapis.discover('customsearch', 'v1').execute(function(err, client) {
  // set api key
  client.withApiKey('...');
  client.search.cse.list({ q: '...' }).execute(console.log);
});