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.
Install
Needs Node.js 20 or newer. Installs the smard command:
npm i -g @maschinenlesbar.org/smard-cliAccess
No account, no API key, no configuration — install and query.
Quick start
smard latest 410 DE weekCommands
-
timestampsList the available window timestamps for a series
-
seriesGet one window's data (timestamp from `timestamps`)
-
latestGet the newest available window's data in one call
-
tableGet quarter-hour table_data for one window
-
filtersList the documented chart-data filter ids
-
regionsList the valid region codes
-
resolutionsList the valid resolution values
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/smard:smard-generation-mix/smard:smard-price-watch/smard:smard-series-export
What the skills answer, with real examples → Skill descriptions and requirements →
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.