Legislation

Search legislation

Search Swiss legislation (federal + all 26 cantons) by keyword. Covers 33,000+ legislative texts from LexFind.ch.

get/legislation/search

Request

  • Base URL: https://mcp.opencaselaw.ch/api
  • URL: https://mcp.opencaselaw.ch/api/legislation/search
  • Auth: none declared

Query parameters

querystring

Search query

qstring

Alias for query.

cantonstring

Filter by canton (CH, ZH, BE, etc.)

languagestring

OPTIONAL filter (de/fr/it). Omit to return whichever language version the portal indexes — set ONLY when the user explicitly asks for one language.

limitinteger

Max results

active_onlyboolean

Only show laws currently in force

search_in_contentboolean

Also search in law text content

fetch_top_n_textsinteger

If > 0, enrich top N results with parsed full text (max 10)

Response

Successful Response

unknown required

Changes

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