This repo contains an unofficial API for the Swissvotes-Datensatz published on swissvotes.ch.
Demo: https://swissvotes-api.resolved.ch
This is a first version and the API is still subject to breaking changes.
- Code in this repository is licensed under the MIT License.
- Data in
data/swissvotes.ch.csvis third-party data from Swissvotes (Année Politique Suisse, Universität Bern), licensed under CC BY 4.0 — seeLICENSE-DATAfor the required attribution. This data is not created by this project's authors.
The data from the (official) swissvotes CSV is changed as follows:
- Field names with an underscore are split (for example
"info\_br\_de": "..."becomes"info": {"br": {"de": "..."}}}). - Fields without a value are omitted.
docker pull ghcr.io/pascal-huber/swissvotes-api:latest
docker run -d --name votes-api -p 5000:5000 ghcr.io/pascal-huber/swissvotes-api:latest
docker build -t votes-api .
docker run -d --name votes-api -p 5000:5000 votes-api