Decisions Legislation Connect About
← opencaselaw.ch

+ Swiss Case Law Open Dataset

The largest open dataset of Swiss court decisions from all federal courts and 26 cantons. Download and search locally with AI tools.

Loading

Federal & Cantonal Legislation

via MCP

Fedlex SPARQL endpoint mirrored monthly and indexed in SQLite (FTS5): 5,510 federal laws, 132,586 articles in DE/FR/IT, full amendment history. Cantonal legislation locally mirrored from LexFind (~30,000 acts, monthly refresh, live API as fallback). Article lookup in <1 ms.

Federal law (local) get_law("OR", article="41")
Cantonal (Portale + LexFind) search_legislation("Mietrecht", canton="ZH")
Recent amendments browse_legislation_changes(canton="CH")

Access the Data

Download

Download the full dataset as Parquet files

from datasets import load_dataset ds = load_dataset("voilaj/swiss-caselaw")

REST API

Query via HuggingFace Datasets Server API

GET /rows?dataset=voilaj/swiss-caselaw &config=default&split=train &offset=0&length=10

Web UI

Local chat interface — ask questions in natural language, get answers with cited decisions. Runs on your machine with Claude, OpenAI, Gemini, or local models via Ollama (no API key needed).

git clone github.com/jonashertner/caselaw-repo-1 cd caselaw-repo-1 ./scripts/run_web_local.sh

Coverage

Decisions per Year

Language Distribution

Federal Courts

Court Decisions New Data Languages

Cantonal Courts

Court Canton Decisions New Data

Cantons

Browse

Scraper Health

Court Status New Duration Total Known JSONL Last Data