Latvia Law
v0.1.0Latvia law -- Likumi.lv, the legal-acts portal run by the official publisher Latvijas Vēstnesis.…
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
lv_law_search
Search Latvian national legislation (laws, Cabinet regulations, orders and other acts on Likumi.lv) by title words in Latvian, e.g. "Fizisko personu datu apstrādes likums" or "darba likums". By default only acts in force or not yet in force are returned (set include_repealed=true to add acts that lost force). Returns id, title, status, issuer, type, adoption and in-force dates, Latvijas Vēstnesis publication, and a link; 20 per page, use page to continue. Pair with lv_law_get for the text.
| Parameter | Type | Description |
|---|---|---|
query * | string | Latvian title words, e.g. "darba likums" or "datu apstrādes" |
include_repealed | boolean | Also return acts that have lost force (default false) |
page | number | Page number, 1-based (default 1; 20 per page) |
lv_law_get
Fetch one Latvian legal act by id from lv_law_search (e.g. "300099" for the Personal Data Processing Law). Returns title, status, issuer, type, adoption and in-force dates, Latvijas Vēstnesis publication reference, and the current consolidated text in Latvian. Pass article (e.g. "3" or "16_1" for article 16 superscript 1) for one article only; without it the text is capped at max_chars with a contents list. The consolidated text is informative: the official publication prevails.
| Parameter | Type | Description |
|---|---|---|
id * | string | Numeric act id from lv_law_search, e.g. "300099" |
article | string | Article (pants) number, e.g. "3", "16_1" or "16.1" for article 16 superscript 1 |
max_chars | number | Cap on returned text when no article is given (default 20000, max 100000) |