npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

ticketmaster

v2.0.4

Published

SDK for the Ticketmaster Open Platform

Downloads

66

Readme

Ticketmaster Build Status

Javascript SDK for the Ticketmaster Open Platform.

Aims to wrap the Ticketmaster API with coverage for all Open Platform endpoints, featuring:

  • API key authentication support
  • Ticketmaster OAuth2 access key support
  • Promises on all requests via Bluebird

System Requirements

Installation:

npm install --save ticketmaster@<version>

NOTE: We heavily use semantic versioning, and actively introduce breaking changes across MAJOR version changes. To avoid any breaking changes being introduced inadvertently, you should lock this package at a specific version using the npm command above, and upgrade explicitly.

Client:

For use in the browser-based client-side JS applications, a dist/ folder exists for each release. Releases can be found @ https://github.com/ticketmaster-api/sdk-javascript/releases.

git clone --branch <version> git@github.com:ticketmaster-api/sdk-javascript.git

For browser usage there are two files in dist/ folder

./dist/ticketmaster-[version].js (raw with source-maps)
./dist/ticketmaster-[version].min.js (minified)

Include one of them in to your project:

...
<script src="ticketmaster-[version].js"></script>
<script src="ticketmaster-[version].min.js"></script>
...

Use global variable ticketmaster to make an API call (name can be changed in webpack settings during rebuild):

ticketmaster('your-api-key').discovery.v2.event.all()
.then(function(result) {
  // "result" is an object of Ticketmaster events information
});

Server:

Require the package and make an API call:

var ticketmaster = require('ticketmaster');
ticketmaster('your-api-key').discovery.v2.event.all()
.then(function(result) {
  // "result" is an object of Ticketmaster events information
});

Alternative syntax if you are only interested in a subset of the API:

var EventAPI = require('ticketmaster').discovery.v2.event;
EventAPI('your-api-key').all()

Rebuild source:

In case you want to build your own bundle for client

1. Clone this repository

git clone git@github.com:ticketmaster-api/sdk-javascript.git

2. install dependencies

npm install

3. Run npm script:

  • for raw (with source-maps) version of client lib use:
npm run-script dev
  • for minified version of client lib use:
npm run-script prod
  • or (for Windows users):
npm run-script win-prod

Error handling:

Be aware: no .catch() method provided! You should write it by your own.

Result object API:

(provided only for sets which are result of .all() type methods)

properties: -result.items - Array of Ticketmaster event information. -result.page - Additional general information object.

methods: -result.getPage(index) - Promise which returns a new Result object. -result.nextPage() - Promise which returns a new Result object. Can take additional param - step (1 by default). -result.previousPage() - Promise which returns a new Result object. Can take additional param - step (1 by default). -result.records() - returns an Array of this page's records -result.count() - returns the total count of items -result.isLastPage() - returns a Boolean if current Result is the last page

Running Tests

npm test

Status

Currently supports the following endpoints:

  • Discovery API
    • v1
      • Attraction
        • Find
      • Category
        • Find
      • Event
        • All
        • Find
      • Venue
        • Find
    • v2
      • Attraction
        • Find
      • Event
        • All
        • Find
      • Venue
        • Find

The goal is to implement all endpoints available @ http://developer.ticketmaster.com/. Pull Requests gladly accepted!

Deployment

Maintainers can cut a new release:

npm version <new_version>

This will build, tag, push to git, and push the build folder to npm.

Contact Us

[internal only] Find us in #open-platform on Ticketmaster Slack!