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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@maschinenlesbar.org/entgeltatlas-cli

v0.0.2

Published

TypeScript API client and CLI for the Bundesagentur für Arbeit Entgeltatlas API (gross-salary statistics by occupation)

Readme

entgeltatlas-cli

A TypeScript API client and CLI for the Bundesagentur für Arbeit Entgeltatlas API — German median gross-monthly salary statistics by occupation (KldB-2010), sliced by requirement level, region, gender, age, and industry.

Read-only, zero runtime HTTP dependencies (built on node:http/https), strict TypeScript, ESM.

npm install -g @maschinenlesbar.org/entgeltatlas-cli

API key

The API needs a static X-API-Key (the BA's published community client_id). No key is bundled with this tool. Fetch the public key and set it:

export ENTGELTATLAS_API_KEY="$(npm run --silent fetch-key)"   # scrapes the bundesAPI README
# or pass --api-key <uuid> per call

Precedence is --api-key flag > ENTGELTATLAS_API_KEY env var > none. The codes command works with no key at all.

Heads-up — WAF/IP block. rest.arbeitsagentur.de sits behind an Akamai WAF that returns HTTP 403 (empty body) to datacenter/cloud/VPN IPs even with a valid key. If you get a 403, try from a residential connection. The CLI's 403 message says as much (exit code 3).

Quickstart

entgeltatlas codes                              # dimension code tables (offline, no key)
entgeltatlas entgelte 84304                     # salary stats for a KldB occupation
entgeltatlas entgelte 84304 -l 4 -r 1 -g 1      # Experte, Deutschland, all genders
entgeltatlas regionen                           # live region codes
entgeltatlas entgelte 84304 --compact | jq '.[0].entgelt'

entgelte <kldb> takes the numeric KldB-2010 code, not an occupation name — this API has no name search. Resolve a name to a code via the BERUFENET/DKZ sibling APIs or the KldB catalogue.

See Usage.md for the full command reference and GLOSSARY.md for the dimensions, the KldB system, and how to read censored/suppressed figures.

Library use

import { EntgeltatlasClient } from "@maschinenlesbar.org/entgeltatlas-cli";

const ea = new EntgeltatlasClient({ apiKey: process.env.ENTGELTATLAS_API_KEY });
const rows = await ea.entgelte("84304", { l: 4, r: 1 });
// rows[0].entgelt is the MEDIAN gross monthly EUR — or null when suppressed.

Errors are typed (EntgeltatlasApiError, EntgeltatlasNetworkError, EntgeltatlasValidationError, EntgeltatlasParseError).

Read the numbers correctly

  • entgelt is the median (not the mean), in EUR gross per month, full-time.
  • Figures are null when suppressed (too few observations) — never treat as 0.
  • High earners are censored at the social-insurance ceiling (region.beitragsBemessungsGrenze), so the top can look artificially flat.

Notes

  • The data is the BA's, not ours — custom BA terms (attribution, no modification). See DATA_LICENSE.md. This is not an official API (community-reverse-engineered).
  • Code license: AGPL-3.0-or-later OR commercial — see LICENSING.md. External code contributions are not accepted (CONTRIBUTING.md); bug reports and forks are welcome.

Development

npm install
npm run build      # tsc -> dist/
npm test           # builds, then node --test on dist/test
npm run typecheck

See DEVELOPING.md for architecture and API specifics.