node-bing-api/README.md
2014-10-27 17:51:01 +01:00

781 B

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" });
Bing.search("Pizza", function(error, res, body){
    console.log(body);
  },
  {
    top: 10,  // Number of results (max 50)
    skip: 3   // Skip first 3 results
  });
Bing.images("Ninja Turtles", function(error, res, body){
  console.log(body);
}, {skip: 50});
Specify Market

Getting spanish results:

Bing.images("Ninja Turtles", function(error, res, body){
  console.log(body);
}, {top: 5, market: 'es-ES'});

License

MIT