Atviri teisės aktai – Lithuanian law

v1.0.2
lt.atviri-teises-aktai/lithuanian-law Checked 4 days ago Published 21 days ago

Lithuanian laws article by article, with whether each applies today, past versions and search

B 84/100 Discovery passed License not confirmed SearchCloud

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_law

Find articles of Lithuanian codes, laws and Government-approved rules (unofficial mirror of e-tar.lt). Use a reference ("DK 52", "CK 6.228¹", "KET 52", "GDPR 17", "2019/944 15", "Energetikos įstatymo 15 straipsnis") or Lithuanian words ("kasmetinės atostogos", also everyday ones: "alimentai"). Returns articles with their URL, whether their text applies today, and for the first 10 the part where the words are (`part`, `snippet`); `suggested`: chosen for these everyday words, not from the text. Annexes are searched too (label "priedas-6"): lists, forms and tables that the articles refer to.

ParameterTypeDescription
query *stringA reference or Lithuanian words (4+ letters each; all must occur; when fewer than 3 articles have them all, then also those with all but one, each naming the word it lacks in `lacks_word`). Up to 3 al…
actstringOptional: limit to one act (key, abbreviation or name, e.g. "DK")
limitintegerHow many results, 1 to 30 (default 10)

get_article

The text of one article (or point) as published by the Seimas Chancellery, unchanged, with its status today (Galioja šiandien / Įsigalios D / Gali būti pasenęs / Neaišku, ar galioja / Neteko galios), until when that label is certain, amending acts, the future wording if adopted, defined terms used, a citation line and the official e-tar.lt link.

ParameterTypeDescription
act *stringAct key, abbreviation, TAR code or name: "DK", "CK", "KET", "2016-23709", "darbo kodeksas"
article *stringArticle or point number: "52", "21¹" or "21-1", "6.228-1", "3.2" (also accepted as `n`); an annex: "6 priedas", "V priedas" (whether an annex is in force today is not checked: its status says so)
datestringOptional YYYY-MM-DD: the text in force on that date (the Chancellery's official consolidation for it, since 2020, where the open data hold one); without it, today's text
findstringOptional: only the paragraphs and table rows holding these words, e.g. a substance's name or CAS number in a long annex ("formaldehidas", "50-00-0")
offsetnumberOptional: a very long text comes in pieces of about 60,000 characters; the answer's next_offset says where the next begins
partstringOptional: one part of the article, by number or anchor ("107" or "d107"; a rule's sub-point "8.12" or "p8.12"): only that part's text (and its future wording) instead of the whole article

find_definition

Where a term is legally defined, in every act on the site: the term, its alias ("toliau – …"), the definition text, the act and article/part with a link, and the article's status today. Inflection-tolerant ("vartotojo objektas" = "vartotojo objektą"). The same word often means different things in different acts ("vartotojas" in EĮ, EEĮ, GDĮ, VTAĮ): all are returned, plus narrower terms ending in it ("elektros energijos vartotojas").

ParameterTypeDescription
term *stringA word or phrase: "vartotojo objektas", "bešeimininkis daiktas"
actstringOptional: the meaning in this act (key, abbreviation, TAR code or name). If the act does not define the term itself but says its terms are understood as defined in other acts ("sąvokos suprantamos ta…
limitintegerHow many definitions, at most 50 (default 20)

get_articles

Several articles (or points, or parts) in one call, up to 20: each as get_article returns it. Use it to read everything a search or `related` found, instead of one call per article.

ParameterTypeDescription
refs *arrayReferences: "DK 52", "EEĮ 2 str. 15 d." (one part), "KET 3.2", "CK 6.228¹", or {act, article, part}
datestringOptional YYYY-MM-DD for all of them (as get_article's `date`)

list_acts

The acts on the site, 50 at a time: key, citation form, name, number of articles. Over 1,200 acts: give `query` (words of the name or a common name: "energetikos", "GDPR"). You rarely need this: search_law and get_article take an act's name, abbreviation, common name or EU number directly.

ParameterTypeDescription
limitnumberActs per page, at most 200 (default 50)
offsetnumberSkip this many (from `more`)
querystringWords of the act's name, abbreviation or common name

get_act_contents

The articles of one act in order (number, title, chapter, status), paged, and its annexes (read one with get_article: "6 priedas").

ParameterTypeDescription
act *stringAct key, abbreviation, TAR code or name: "DK", "CK", "2016-23709", "darbo kodeksas"
limitintegerEntries per page, at most 300 (default 100)
offsetintegerSkip this many entries of the contents (from the answer's next_offset)

search_votes

Seimas votes (the Lithuanian parliament; preview): find votes by a draft number ('XVP-1885'), the number of the law a draft amends ('XIV-1381'), an act on this site ('DK', 'darbo kodeksas') or Lithuanian words of the agenda item. Newest first: when, what was voted on, for/against/abstain, the result, the lrs.lt record. Says what the data lack (factions, consensus decisions and secret ballots have no individual votes).

ParameterTypeDescription
query *stringA draft number, a law number, an act (with article numbers: 'DK 138'), or words (all must occur); empty: the newest votes
fromstringOptional: from this day (YYYY-MM-DD)
limitinteger
termintegerSeimas term (kadencija) id (10: 2024–2028, 9: 2020–2024); default the term of `from`/`to`, else the current one
tostringOptional: to this day (YYYY-MM-DD)

get_vote

One Seimas vote (an id from search_votes or mp_votes): what was voted on, the totals and every MP's choice (for, against, abstain), or why there are no individual votes.

ParameterTypeDescription
id *string
terminteger

mp_votes

How one MP voted: their recorded votes, optionally only on votes matching a query (draft, law number, act or words, as search_votes) and one choice; newest first, with counts.

ParameterTypeDescription
mp *stringThe MP's name or surname ('Kubilius', 'Andrius Kubilius')
choicestringOptional: for, against or abstain
fromstring
limitinteger
querystringOptional: only votes matching this (as search_votes)
terminteger
tostring

upcoming_changes

Articles whose text or status changes in the next days (adopted amendments with a date).

ParameterTypeDescription
actstringOptional: only this act (key, abbreviation, TAR code or name)
daysintegerHow many days ahead from the labels' day, at most 30 (default 30)