Node.js module for the Bing Search API (Cognitive Services)
Find a file
2014-10-04 23:01:15 +02:00
lib Add top and skip search options 2014-10-04 23:01:02 +02:00
test Adding test for failure, removing spurious debugger statement. 2014-10-01 12:00:00 -07:00
.gitignore Ignore t.js 2014-09-19 14:22:53 +02:00
Gruntfile.js jshint laxbreak 2014-10-04 23:00:16 +02:00
index.js Git init 2014-09-18 18:24:52 +02:00
LICENSE Add license file 2014-09-19 14:50:37 +02:00
package.json Bump version 2014-09-29 08:18:59 -07:00
README.md Update readme 2014-10-04 23:01:15 +02:00

Node Bing API

Node.js lib for the Azure Bing Web Search API

Installation

npm install node-bing-api

Usage

Require the library and initialialize it with your account key:

var Bing = require('node-bing-api')({ accKey: "your-account-key" });

Web Search

Bing.search("Pizza",

  // Callback
  function(error, res, body){
    console.log(body);
  },

  // Search options
  {
    top: 10,  // Number of results. Max 50.
    skip: 3   // Skip first 3 results
  });

Images Search

Bing.images("Ninja Turtles", function(error, res, body){
  console.log(body);
}, {skip: 50});

License

MIT