seatgeek

A wrapper library for the SeatGeek Platform API

seatgeek.js

Common JS & Browser library for the SeatGeek Platform API.

Just include the script. The seatgeek object is automagically added to your environment. No need for new or any other sort of initialization. In the browser do the following:

<script src="seatgeek.js"></script>

or if you're using seatgeek.js with node.js

$ npm -g install seatgeek

Then require the "seatgeek" module:

var seatgeek = require("seatgeek");

The SeatGeek API (and seatgeek.js) supports sorting, pagination, geolocation, filtering, and affiliates.

Please refer to the SeatGeek Platform API documentation for accepted arguments.

The API provides two basic types of response documents: (i) a single resource response document and (ii) a bulk resource response document. The former returns a single document of the requested resource.

A bulk resource response document will include an array of single resource documents along with some additional meta information about the response. If no resources are found, meta information will be returned with an empty resources array.

Please refer to SeatGeek Events API for accepted arguments.

seatgeek.events(function(err, events) {
  if (err) return console.log(err);
  console.log(events);
});
seatgeek.events({ id : 801255 }, function (err, event) {
  if (err) return console.log(err);
  console.log(event);
});

Please refer to SeatGeek Performers API for accepted arguments.

seatgeek.performers(function(err, performers) {
  if (err) return console.log(err);
  console.log(performers);
});
seatgeek.performers({ id : 2079 }, function(err, performer) {
  if (err) return console.log(err);
  console.log(performer);
});

Please refer to SeatGeek Venues API for accepted arguments.

seatgeek.venues(function(err, venues) {
  if (err) return console.log(err);
  console.log(venues);
});
seatgeek.venues({ id : 8 }, function(err, venue) {
  if (err) return console.log(err);
  console.log(venues);
});

Please refer to SeatGeek Taxonomies API for accepted arguments.

seatgeek.taxonomies(function(err, taxonomies) {
  if (err) return console.log(err);
  console.log(taxonomies);
});
  • datetime: support local vs utc, and ISO 8601
  • support for javascript chaining
  • handle paging, multi-ids as well