# wili

> A Node client for the Wiener Linien public transport API

Latest version **0.8.1** (published 2025-10-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install wili
pnpm add wili
yarn add wili
bun add wili
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 0.8.1 |
| Published | 2025-10-20 |
| First published | 2018-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 0 |
| Unpacked size | 12.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Jan T. Sott |
| Maintainers | idleberg |
| Keywords | wiener linien, wienerlinien, vienna, öpvn, public transport |

## Links

- npm: https://www.npmjs.com/package/wili
- Repository: https://github.com/idleberg/node-wili
- Homepage: https://github.com/idleberg/node-wili#readme
- Issues: https://github.com/idleberg/node-wili/issues
- npm.io page: https://npm.io/package/wili

## Recent versions

- 0.8.1 (latest) — 2025-10-20
- 0.8.0 — 2025-10-17
- 0.7.1 — 2023-07-31
- 0.7.0 — 2023-07-28
- 0.6.1 — 2023-03-26
- 0.6.0 — 2023-03-24
- 0.5.1 — 2022-07-27
- 0.5.0 — 2021-07-26
- 0.4.0 — 2020-07-25
- 0.3.1 — 2020-03-21
- 0.3.0 — 2020-03-20
- 0.2.5 — 2019-08-04
- 0.2.4 — 2018-10-05
- 0.2.3 — 2018-06-14
- 0.2.2 — 2018-03-22
- … 5 more at https://npm.io/package/wili/versions

## README

# wili

[![License](https://img.shields.io/github/license/idleberg/node-wili?color=blue&style=for-the-badge)](https://github.com/idleberg/node-wili/blob/main/LICENSE)
[![Version](https://img.shields.io/npm/v/wili?style=for-the-badge)](https://www.npmjs.org/package/wili)
![GitHub branch check runs](https://img.shields.io/github/check-runs/idleberg/node-wili/main?style=for-the-badge)

**English** | [Deutsch](README.de.md)

A Node wrapper for the Wiener Linien public transport API.

## Installation

`npm install wili`

## Usage

Example usage in script:

```js
import { createWienerLinien } from 'wili';

const wili = createWienerLinien();

const options = {
  relatedLine: ['U2', 'U4', 'U6']
};

 const { trafficInfos } = await wili.trafficInfoList(options);
```

## API

### monitor

Usage: `monitor(rbl, [options])`

Returns real-time data for a station, including train information such as identifier or accessibility features.

#### Parameters:

#### `rbl`

Type: `String`, `Integer`, `Array`

RBL number (Rechnergestütztes Betriebsleitsystem - computer-aided operations control system), can be found this [website](https://till.mabe.at/rbl/?line=214433687&station=231116899).

##### `options.activeTrafficInfo`

Type: `String`, `Array`

Disruption type (`stoerungkurz`, `stoerunglang`, or `aufzugsinfo`).

### newsList

Usage: `newsList(options)`

Returns news, elevator maintenance and other information.

#### Options

##### `options.relatedLine`

Type: `String`, `Integer`, `Array`

Train or bus number, e.g. U1, S7, 59A (case-insensitive).

##### `options.relatedStop`

Type: `String`, `Integer`, `Array`

Station ID.

##### `options.name`

Type: `String`, `Array`

Information category, e.g `news` or `aufzugsservice`.

### trafficInfoList

Usage: `trafficInfoList([options])`

Returns interruption of operations and elevator outage.

#### Options

##### `options.relatedLine`

Type: `String`, `Integer`, `Array`

Train or bus number, e.g. U1, S7, 59A (case-insensitive).

##### `options.relatedStop`

Type: `String`, `Integer`, `Array`

Station ID.

##### `options.name`

Type: `String`, `Array`

Disruption type (`stoerungkurz`, `stoerunglang`, or `aufzugsinfo`).

## License

This work is licensed under [The MIT License](https://opensource.org/licenses/MIT).

---
_Source: https://npm.io/package/wili · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
