Files
destatis-genesis/logincheck.sh
2025-07-03 23:47:21 +02:00

21 lines
568 B
Bash
Executable File

#!/bin/sh
BASE_URL=https://www-genesis.destatis.de/genesisWS/rest/2020
# curl -X POST "$BASE_URL/helloworld/logincheck" \
# -H "Content-Type: application/x-www-form-urlencoded" \
# -H "username: c7a23d31ee1b4af6bc30c5c49840e57b" \
curl -X POST "$BASE_URL/data/tablefile" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "username: $DESTATIS_TOKEN" \
-d "name=61111-0004" \
-d "startyear=2025" \
-d "transpose=true" \
-d "classifyingvariable1=C13A5" \
-d "classifyingkey1=CC13-071*" \
-d "compress=true" \
-d "format=csv" \
-d "language=de"