1.0.1 • Published 3 years ago
webmaster-api v1.0.1
WebmasterAPI
This is a Node.js wrapper for the Bing Webmaster API.
Installation
foo@bar:~$ npm install webmaster-api --save
Usage
var WebmasterAPI = require('webmaster-api');
WebmasterAPI.init("your API key");
var yesterday = new Date(Date.now() - 86400 * 1000).toISOString();
var today = Date.now().toISOString();
console.log(WebmasterAPI.getKeyword({q: "peanuts", startDate: yesterday, endDate: today}));
// This should log an object containing keyword impression stats.
Release History
- 0.1.0 Initial release