A simple TvRage API.


A library to query against the TvRage API.

$ npm install --save tvragejs

The following example shows how to get the first result for a search and displays its name and show id to the console. The XML response from TvRage

var tvragejs = new (require('tvragejs'))();'Game of Thrones', function (errresponse) {
    if (err) {
        throw err;
    console.log([0].name + '' +[0].showid);

Currently implements all feeds as listed on the TvRage Services Page

  • search(show, callback)
  • fullSearch(show, callback)
  • showInfo(show_id, callback)
  • episodeList(show_id, callback)
  • fullShowInfo(show_id, callback)
  • episodeInfo(show_id, season, episode, callback)

callback always has the parameters of err and response. response is a javascript object of the XML that TvRage returns. All tags in the response object have been converted to lower case and the root has been removed (eg, Results or Show)

$ npm install
$ npm test

The MIT License

Copyright (c) 2014 John Kernke