Kohus, õigused ja kaebused
Riigikohtu lahendid
Riigikohtu lahendid asja numbri, kuupäeva, menetlusliigi või teksti järgi.
Riigikohtu lahendite otsing (riigikohus.ee ja rikos.rik.ee) leiab lahendeid asja numbri, kuupäeva, menetlusliigi, annotatsiooni või teksti järgi. Tulemuse realt avaneb lahendi täistekst, mitte ainult pealkiri; pealkiri ise on asja nimetus, mitte kohtu seisukoht. Otsing ei taanda eesti tähti: pohiseadus leiab ühe lahendi ja põhiseadus 335, nii et väike vastuste arv tähendab tavaliselt kirjaviga, mitte seda, et kohus pole asjas sõna võtnud.
Mida su agent peab oskama
GETPiisab lehe tõmbamisest. Kõik vajalikud päringud on tavalised HTTPS-päringud. Iga agent, kes oskab veebilehe alla laadida, saab selle juhendi läbi teha.
Juhend ise
Inglise keeles, sest seda loeb mudel.
Supreme Court Judgments
Access
- Supreme Court page:
https://www.riigikohus.ee/et/lahendid - Search endpoint embedded by that page:
GET https://rikos.rik.ee/ - Public HTML; no login or browser automation is required.
Retrieve
Send search fields as query parameters. The short parameter names accepted by the public form include:
asjaNr: case numberasjaLiigidIds: case type classifier, repeat for multiple valuessyyteoLiigidIds: offence type classifierotsuseKpalgus,otsuseKpLopp: decision date rangeannotatsioon: annotation texttekst: full-text termpageSize: 1-100sortVaartus:LahendiKuulutamiseAegorMenetlus.MenetluseNRsortAsc:trueorfalse
For example, ?tekst=pohiseadus&pageSize=25 returns matching rows. Follow /LahendiOtsingEriVaade?asjaNr=... for the decision view. Add genereeriPdf=True to the same search query for the site's result-list PDF.
Return
supremeCourtSearch()rows are{case, date, kind, subject, url, textUrl};supremeCourtCase()documents use the same shape.textUrlis the judgment's FULL TEXT: the site prints afailObjektIdin its last column without linking it, and that id resolves on Riigi Teataja as/public-api/api/v1/kohtuteave/kohtulahendid/<id>/file. Read it withfileText(textUrl); do not summarize a holding from the result-listsubject, which is the case caption.
Limits
- This search is Supreme Court-specific. Use
court-proceedings-datafor all court levels and public hearing listings. - The search does not fold Estonian diacritics.
tekst=pohiseadusmatches 1 judgment wheretekst=põhiseadusmatches 335 (checked 2026-08-01). A small count here usually means the term was mistyped, not that the court has been silent. - Paging is
lk, 1-based.page,pageNumber,pageIndexandlehtare silently ignored and return page one again. - A case number the register does not hold answers a real HTTP 404, not an empty table. The case view wants the case (
5-26-5), not the document (5-26-5/14).
claim A case number the register does not hold answers a real HTTP 404
GET https://rikos.rik.ee/LahendiOtsingEriVaade?asjaNr=5-26-99999
expect-status 404
expect /Viga 404/
# The control is the SAME route with a case number the register does hold, so
# the 404 is pinned to the case number and not to the case view having gone
# away. A dead route would 404 for every number and "confirm" this forever.
control GET https://rikos.rik.ee/LahendiOtsingEriVaade?asjaNr=5-26-5
- Search results are HTML, not JSON. Parse the result table and resolve relative links against
https://rikos.rik.ee/. - Some judgments are redacted or not publicly available.
Verify
- Require a focused text query to return a positive
Tulemusedcount and rows with/LahendiOtsingEriVaade?asjaNr=links. - Confirm that the Supreme Court page still embeds
https://rikos.rik.ee/; reject unrelated files linked elsewhere on the page as judgment results.
Module API
supremeCourtSearch({text, caseNumber, annotation, from, to, year, kind, pageSize, page, ascending}) -> {source, page, query, totals, rows, note} supremeCourtCase(caseNumber) -> {source, page, found, case, subject, totals, documents, note}