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

wartezeiten-api-client

v1.0.0

Published

A Node.js client for the Wartezeiten.APP / Waitingtimes.APP API

Downloads

5

Readme

Wartezeiten API Client

A Node.js client for the Wartezeiten.APP / Waitingtimes.APP API, written in TypeScript. This library provides a type-safe and easy-to-use interface to retrieve data about theme parks, their opening times, and current waiting times (queue times) for attractions.

Features

  • Get Theme Parks: Retrieve a list of available theme parks.
  • Get Opening Times: Retrieve opening times for a specified theme park.
  • Get Waiting Times: Retrieve current queue times (waiting times) for attractions.

Installation

Install the package via npm:

npm install wartezeiten-api-client

Usage

Below is an example of how to get started with the API client:

import WartezeitenAPIClient from "wartezeiten-api-client";

async function main() {
  // Create an instance of the API client.
  const apiClient = new WartezeitenAPIClient();

  try {
    // Retrieve the list of parks with the language set to English.
    const parks = await apiClient.getParks({ language: "en" });
    console.log("Parks:", parks);

    // Retrieve opening times for a specific park (e.g., "altontowers").
    const openingtimes = await apiClient.getOpeningtimes({
      park: "altontowers",
    });
    console.log("Opening Times:", openingtimes);

    // Retrieve current waiting times for the park, with the language set to English.
    const waitingtimes = await apiClient.getWaitingtimes({
      park: "altontowers",
      language: "en",
    });
    console.log("Waiting Times:", waitingtimes);
  } catch (error) {
    console.error("API Error:", error);
  }
}

main();

API Methods

The client exposes the following methods:

  • getParks(headers: ParksRequestHeaders): Promise<Park[]>
    Retrieves a list of theme parks.
    Headers required:

    • language: "de" or "en"
  • getOpeningtimes(headers: OpeningtimesRequestHeaders): Promise<OpeningTimes[]>
    Retrieves opening times for a specified park.
    Headers required:

    • park: The theme park id (e.g., "altontowers")
  • getWaitingtimes(headers: WaitingTimesRequestHeaders): Promise<WaitingTimes[]>
    Retrieves current waiting (queue) times for a specified park.
    Headers required:

    • park: The theme park id
    • language: "de" or "en"

Configuration

By default, the client connects to the production API at https://api.wartezeiten.app. You can override the base URL by providing options when instantiating the client:

const apiClient = new WartezeitenAPIClient({
  baseUrl: "https://api.wartezeiten.app", // or another custom URL
});

Building the Project

This package is written in TypeScript. To compile the TypeScript code to JavaScript, run:

npm run build

This will output the compiled files into the dist/ directory as configured in tsconfig.json.

TypeScript Support

The API client is fully typed. Interfaces are provided for API endpoints, including request header types and response object types. You can directly import and use these types in your TypeScript projects if needed.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contributing

Contributions, feature requests, and issues are welcome! Feel free to open a new issue or submit a pull request if you'd like to contribute.

Acknowledgments

  • Thanks to the Wartezeiten.APP / Waitingtimes.APP team for providing a robust API.
  • Thanks to the open source community for their continuous contributions and support.