Statutes

Look up a Swiss law (federal + cantonal)

Look up a federal law by abbreviation/SR or a cantonal law by SR + canton.

get/laws/{abbreviation}

Request

  • Base URL: https://mcp.opencaselaw.ch/api
  • URL: https://mcp.opencaselaw.ch/api/laws/{abbreviation}
  • Auth: none declared

Path parameters

abbreviationstring required

Law abbreviation (e.g., BV, OR, ZGB, StGB) — or '_' for cantonal lookup by SR

Query parameters

sr_numberstring

SR number (e.g., 210 for ZGB)

articlestring

Article number to retrieve (e.g., 8, 41a)

languagestring

Language: de, fr, it

cantonstring

Canton code (CH=federal, ZH, BE, …)

as_ofstring

Past date (YYYY-MM-DD or DD.MM.YYYY): the historical Fedlex edition in force on that date; federal laws only

formatstring

json (default) or xml — for a single federal article, returns its verbatim Akoma Ntoso XML (application/xml). Issue #22.

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.