Command-line tool and TypeScript library

smard

Query Germany’s open electricity-market data from your terminal. smard is a command-line tool over the SMARD chart-data API (smard.de), operated by the Bundesnetzagentur — fetch generation, consumption, residual load and wholesale prices as clean JSON you can pipe straight into jq.

Version 0.0.9 npm GitHub API reference

Install

Needs Node.js 20 or newer. Installs the smard command:

npm i -g @maschinenlesbar.org/smard-cli

Access

No account, no API key, no configuration — install and query.

Quick start

smard latest 410 DE week

Commands

All commands, arguments and options →

Claude Code skills

The smard plugin teaches Claude to use smard. Install it from the maschinenlesbar.org marketplace:

/plugin marketplace add maschinenlesbar-org/plugins
/plugin install smard@maschinenlesbar

TypeScript library

@maschinenlesbar.org/smard-cli is also a typed API client you can import in your own code, with no runtime HTTP dependencies.

The tool, not the data

The data comes from the provider behind the API, under its own terms — see DATA_LICENSE.md. The code is dual-licensed AGPL-3.0-or-later or commercial — see LICENSING.md.