regionalstatistik government

Find the right regional-statistics object, fetch and decode its data by Kreis or Gemeinde, and export tables to CSV/Excel — over the Regionaldatenbank Deutschland GENESIS API via the regionalstatistik-cli.

Install

  1. Install the regstat CLI:

    npm i -g @maschinenlesbar.org/regionalstatistik-cli
  2. Add the marketplace (once):

    /plugin marketplace add maschinenlesbar-org/plugins
  3. Install the plugin:

    /plugin install regionalstatistik@maschinenlesbar

Requirements such as API keys or accounts are listed in SKILLS.md.

Skills

  • /regionalstatistik:regionalstatistik-data-fetch

    Fetch and interpret the actual numbers from a Regionaldatenbank Deutschland table, cube or time series (regionalstatistik.de) using the regionalstatistik-cli, then explain the returned CSV. Trigger when the user asks "Einwohnerzahl von Heidelberg?", "population of a German district over time", "Arbeitslosenquote je Kreis?", "pull table 12411-01-01-4 for Baden-Württemberg", "how many inhabitants does Kreis 08221 have?", or has an object code and wants values narrowed by year and region. Handles the region-key/region-var and year filters and decodes the ";"-delimited German-format CSV that arrives inside Object.Content.

  • /regionalstatistik:regionalstatistik-statistics-finder

    Find the right regional official-statistics object (table, statistic, cube or time series) in Germany's Regionaldatenbank (regionalstatistik.de) using the regionalstatistik-cli. Trigger when the user asks "which table has population per Kreis?", "find official statistics on unemployment by district", "Einwohnerzahl von Heidelberg?", "Arbeitslosenquote je Kreis?", "which regionalstatistik table covers Gemeinde-level land use?", or needs to turn a regional topic into a concrete object code before pulling numbers. Searches with find, narrows with catalogue, and confirms the structure with metadata — handing back the exact code and the regional variables to filter by.

  • /regionalstatistik:regionalstatistik-table-download

    Export a Regionaldatenbank Deutschland table, cube, time series or saved result (regionalstatistik.de) to a file (CSV, flat "ffcsv", Excel, HTML or GENML) using the regionalstatistik-cli. Trigger when the user asks "download the population per Kreis as CSV", "save table 12411-01-01-4 for Baden-Württemberg to Excel", "export district unemployment figures to a spreadsheet", "give me the Gemeinde data as a file", or wants a spreadsheet-ready file rather than JSON in the terminal. Writes the server-rendered download (a ZIP) to a path you confirm, and reports what was written.

Details

Repository
maschinenlesbar-org/regionalstatistik-cli
CLI
@maschinenlesbar.org/regionalstatistik-cli (command regstat)
Plugin version
0.2.0, from tag v0.0.5
License
AGPL-3.0-or-later
Data terms
DATA_LICENSE.md
Keywords
regionalstatistik, regionaldatenbank, genesis, genesis-online, statistik, official-statistics, regional-statistics, kreise, gemeinden, germany, opendata, bund.dev