Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
44 lines (30 sloc) 737 Bytes


A wrapper for the API written in Node JS


npm install bnet


Each resource allows you to pass in an object with various parameters. For example, here is how you could get a character's profile along with the guild and stats query string parameters:

var bnet = require("bnet");

var char = {
  region: "us",
  name: "Uther",
  realm: "Medivh",
  fields: ["guild", "stats"] 

bnet.character(char, function(c) {
  console.log("Hello there " +;  // returns "Hello there Uther"

All requests are returned in JSON format, allowing you to easily work with the data collections.

More examples

See the examples directory.