Search legislation
search_legislationWhere does the corpus discuss X? Full-text search across articles, annexes and recitals, ranked in that order of authority. Every hit carries the exact locator get_provision accepts, its cite anchor, the matched passage and why it matched. A citation-shaped query resolves through the citation grammar first; instrument acronyms become ranking hints; initialisms of the corpus's defined terms are expanded. Absence of a result is not evidence that no relevant law exists. The matched passage is a snippet of at most 320 characters, not the provision: open the hit with get_provision before citing it, and echo the cite it serves. topic narrows these hits rather than widening them: a topic-tagged provision whose words the query misses is never reached, so a page of hits is not a sweep. For coverage questions ('everything on X', 'which instruments deal with Y') pick the instruments with list_instruments by category, enumerate each with list_provisions filtered by topic, then open them with get_provision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | Restrict to one source type. Articles, annexes and recitals are all searched by default, ranked in that order of authority. | |
| limit | No | ||
| query | Yes | What to search for, in the words you expect in the legal text. Quoted phrases are honoured; AND, OR and NOT are the only operators. A citation-shaped query ("Article 97(1) PSD2") is resolved through the citation grammar first. | |
| topic | No | Keep only provisions carrying this topic. | |
| cursor | No | ||
| instrument_id | No | Restrict to one instrument, e.g. "rts-sca". | |
| in_force_on_date | No | ISO date; keeps hits from instruments in force on that date, on the same semantics list_instruments uses. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| error | Yes | ||
| coverage | Yes | ||
| warnings | Yes | ||
| pagination | Yes | ||
| provenance | Yes | ||
| derivations | Yes | ||
| corpus_release | Yes |