destatis hello
Connectivity check (helloworld/whoami) — needs no credentials
destatis hello [options]Every command, argument and option of destatis 0.0.6, read from the CLI itself.
These options work with every command.
| Option | Description | Default |
|---|---|---|
-V, --version |
output the version number | |
--base-url <url> |
API base URL | https://genesis.destatis.de |
--token <token> |
GENESIS API token (env: DESTATIS_API_TOKEN) | |
--username <user> |
GENESIS account username (env: DESTATIS_USERNAME) | |
--password <pass> |
GENESIS account password (env: DESTATIS_PASSWORD) | |
--language <lang> |
response language Choices: de, en | de |
--pagelength <n> |
max list results for find/catalogue (1..25000; ignored by data/metadata) | |
--timeout <ms> |
time limit per request in ms, whole response included (0 = no timeout) | |
--user-agent <ua> |
User-Agent header value | |
--max-retries <n> |
retries for transient 429/503 responses (0..10) | |
--max-response-bytes <n> |
cap response body size in bytes (0 = unlimited; default 100 MiB) | |
--compact |
print JSON on a single line instead of pretty-printed | |
-o, --output <file> |
write output (JSON, or a download) to this file | |
--force |
overwrite the --output file if it already exists |
destatis helloConnectivity check (helloworld/whoami) — needs no credentials
destatis hello [options]destatis logincheckValidate your credentials (helloworld/logincheck)
destatis logincheck [options]destatis findFull-text search across statistics, tables, cubes, variables and time series
destatis find [options] <term>Arguments
<term>
requiredOptions
| Option | Description | Default |
|---|---|---|
--category <cat> |
restrict to an object type Choices: all, tables, statistics, cubes, variables, time-series | all |
destatis catalogueBrowse the catalogue: list objects by code selection (e.g. `124*`)
destatis catalogue tablesList tables (Tabellen)
destatis catalogue tables [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue statisticsList statistics (Statistiken)
destatis catalogue statistics [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue cubesList data cubes (Datenquader)
destatis catalogue cubes [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue timeseriesList time series (Zeitreihen)
destatis catalogue timeseries [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue variablesList variables (Merkmale)
destatis catalogue variables [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue valuesList variable values (Ausprägungen)
destatis catalogue values [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue termsList search terms (Begriffe)
destatis catalogue terms [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue jobsList background jobs (Aufträge)
destatis catalogue jobs [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue modifiedList recently modified objects
destatis catalogue modified [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue resultsList saved result tables (Ergebnistabellen)
destatis catalogue results [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis catalogue qualitysignsList quality-sign symbols
destatis catalogue qualitysigns [options] [selection]Arguments
[selection]
optionalOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area (default server-side; try `all`) | |
--search-criterion <c> |
field `selection` matches Choices: Code, Content | |
--sort-criterion <c> |
result sort order Choices: Code, Content | |
--type <type> |
object subtype filter |
destatis metadataDescribe an object's structure (metadata) by its code
destatis metadata tableDescribe a table
destatis metadata table [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area |
destatis metadata statisticDescribe a statistic
destatis metadata statistic [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area |
destatis metadata cubeDescribe a data cube
destatis metadata cube [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area |
destatis metadata timeseriesDescribe a time series
destatis metadata timeseries [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area |
destatis metadata variableDescribe a variable
destatis metadata variable [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area |
destatis metadata valueDescribe a variable value
destatis metadata value [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area |
destatis dataRetrieve statistical data (tables, cubes, time series, results)
destatis data tableFetch a table's data (data/table) — CSV in Object.Content
destatis data table [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional variable code | |
--region-key <key> |
regional key (e.g. a Land/Kreis code, `*` wildcard ok) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
destatis data cubeFetch a data cube (data/cube)
destatis data cube [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional variable code | |
--region-key <key> |
regional key (e.g. a Land/Kreis code, `*` wildcard ok) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
destatis data timeseriesFetch a time series (data/timeseries)
destatis data timeseries [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional variable code | |
--region-key <key> |
regional key (e.g. a Land/Kreis code, `*` wildcard ok) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
destatis data resultFetch a saved result table (data/result)
destatis data result [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional variable code | |
--region-key <key> |
regional key (e.g. a Land/Kreis code, `*` wildcard ok) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
destatis data tablefileDownload a table as a file (ZIP) — use -o <file>
destatis data tablefile [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--format <fmt> |
download format Choices: datencsv, csv, ffcsv, xlsx, html, genml | |
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional variable code | |
--region-key <key> |
regional key (e.g. a Land/Kreis code, `*` wildcard ok) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
destatis data cubefileDownload a cube as a file (ZIP) — use -o <file>
destatis data cubefile [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--format <fmt> |
download format Choices: datencsv, csv, ffcsv, xlsx, html, genml | |
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional variable code | |
--region-key <key> |
regional key (e.g. a Land/Kreis code, `*` wildcard ok) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
destatis data timeseriesfileDownload a time series as a file (ZIP) — use -o <file>
destatis data timeseriesfile [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--format <fmt> |
download format Choices: datencsv, csv, ffcsv, xlsx, html, genml | |
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional variable code | |
--region-key <key> |
regional key (e.g. a Land/Kreis code, `*` wildcard ok) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |
destatis data resultfileDownload a saved result as a file (ZIP) — use -o <file>
destatis data resultfile [options] <name>Arguments
<name>
requiredOptions
| Option | Description | Default |
|---|---|---|
--format <fmt> |
download format Choices: datencsv, csv, ffcsv, xlsx, html, genml | |
--area <area> |
data area | |
--start-year <year> |
earliest year (YYYY) | |
--end-year <year> |
latest year (YYYY) | |
--timeslices <n> |
number of time slices from the end | |
--region-var <code> |
regional variable code | |
--region-key <key> |
regional key (e.g. a Land/Kreis code, `*` wildcard ok) | |
--contents <labels> |
restrict to these value labels (comma-separated) | |
--stand <date> |
only data newer than this date (DD.MM.YYYY) | |
--structure |
include the dimension structure tree | |
--transpose |
transpose rows and columns | |
--compress |
compress repeated labels | |
--class-var1 <code> |
classifying variable 1 code | |
--class-key1 <key> |
classifying key 1 (value selection) | |
--class-var2 <code> |
classifying variable 2 code | |
--class-key2 <key> |
classifying key 2 (value selection) | |
--class-var3 <code> |
classifying variable 3 code | |
--class-key3 <key> |
classifying key 3 (value selection) | |
--class-var4 <code> |
classifying variable 4 code | |
--class-key4 <key> |
classifying key 4 (value selection) | |
--class-var5 <code> |
classifying variable 5 code | |
--class-key5 <key> |
classifying key 5 (value selection) |