# Textul legii > Textul legii (Текст закона) is an unofficial static reader of the legislation of the Republic of Moldova in Romanian and Russian: the Constitution, the codes and the laws. The texts come from the State Register of Legal Acts (www.legis.md) as collected on 2026-11-17. Each act has the text the register gives as its newest version, which sometimes applies only after that date (`text_version` in the act JSON says which); other versions are listed by date without text. This is not an official publication; the official text is the one published in the Monitorul Oficial of the Republic of Moldova. This build holds 6,379 acts with text (the Constitution, 35 codes, 6,343 laws) of the 6,379 with text and 6,722 entries in the source index. Every file is static and needs no key. Each act has one HTML page per language and one JSON file with both languages; the anchors of the pages are the ids in the JSON. ## Find an act - Number lookup, one small file per number and year (the cheapest way): `https://legis.powerit.dev/api/lookup/{yyyy}/{number}.json`, e.g. `https://legis.powerit.dev/api/lookup/2017/49.json` for `49/2017`. `number` is in lower case without leading zeros; a roman suffix is kept (`292-xiii`) and also dropped (`292`). `yyyy` is the year in the code, or the year of adoption where no act has that number in the code's year. Fields `schema` (`legis-reader/lookup@1`), `key`, `snapshot` and `acts`, one row per act with that number: `slug, doc_id, code, category, adopted, status_key, version_date, applies_on_snapshot, json, html, articles` (`articles` as in the act JSON). Several rows mean several acts share the number. No file means no act in this build has that number and year, except where the number or the year has a character other than `a-z`, `0-9` and `-`, or starts with `-`: such keys have no file and are only in `lookup.json`. - [Catalog](https://legis.powerit.dev/api/index.json): every entry of the source index, including repealed acts without text here (`slug` null); fields `slug, base_slug, doc_id, code, category, number, year, adopted, status_key, act_type, title, version_date, applies_on_snapshot, has_text, built, html, json`. `version_date` and `applies_on_snapshot` are `text_version.date` and `text_version.applies_on_snapshot` of the act JSON, null for acts not built. - [Number lookup, one file](https://legis.powerit.dev/api/lookup.json): all of the keys above in one file, `number/year` to a list of slugs, e.g. `49/2017`, `292-xiii/1994` and `292/1994`. - Act page: `https://legis.powerit.dev/{lang}/act/{slug}/` with `lang` `ro` or `ru`. The slug comes from the code (`LP49/2017` is `lp49-2017`); acts that share a code get their adoption date appended (`lp20-2009-2009-02-03`) and the shared slug is a page that lists them. - Anchors: `#art-{n}` an article (`n` as written, `58`; a roman numeral in lower case, `iv`; `unic`; an article written 12¹, 12^1 or 12/1 is `12_1`; a repeated number gets `-2`, `-3`), `#art-{n}-p{k}` its paragraph `(k)`, `#art-{n}-p{k}-{x}` the letter item `x)` of that paragraph and `#art-{n}-{x}` one outside a paragraph (only where the letter occurs once there; `x` is a Latin letter, `b1` for b¹), `#s-{i}` the i-th part heading of that language's text. Where the source flattened a superscript, `#art-161` can be article 16¹ and the plain article 161 then has `#art-161-2`; the two languages can differ in such ids. - Laws by year of adoption: `https://legis.powerit.dev/{lang}/laws/{yyyy}/`. Full-text search for people: `https://legis.powerit.dev/{lang}/search/?q=...`. ## Read one article - One article in one language: `https://legis.powerit.dev/api/art/{slug}/{lang}/{n}.json`, e.g. `https://legis.powerit.dev/api/art/cp154-2003/ro/60.json`; `n` is the article's anchor without `art-` (`60`, `16_1`, `iv`, `unic`, `60-2`). An anchor with a character other than `a-z`, `0-9`, `_` and `-` has no file. - Index: `https://legis.powerit.dev/api/art/{slug}/{lang}/index.json` (`schema` `legis-reader/article-index@1`, `slug`, `lang`, `articles`: one row `[n, label, title]` per article in text order), for each language with text (`articles` is `[]` when that text has no article); `articles` in the act JSON and in each lookup row gives these paths. - Fields (`schema` `legis-reader/article@1`): `slug, code, doc_id, lang`; `act_title` (the act's title in that language, else Romanian) and `title_lang`; `dsg` the act's designation; `id` the anchor; `label` the number as the page prints it (`16¹`, `IV`); `title` the article's title; `html` the page at the article; `json` the act JSON; `text_version` as in the act JSON; `official` false; `snapshot`; `paras` the article's paragraphs and letter items in order, `[id or null, text]` (a table as plain text, one line per row, cells joined by ` | `); `notes` the publisher's history notes of the article as plain strings, not in `paras`; `text` the `paras` texts joined with newlines; `cite` a citation in that language, `{dsg}, art. {label}` or `{dsg}, ст. {label}`. - `digest`: the canonical article text digest of the citation registry, `sha-256:` and 64 hex digits over the source's own title and text of the article in NFC, publisher notes in square brackets removed and whitespace collapsed. `digest_of` says which source text: `ro.articles` or `ru.articles` (the source's article list) or `ro.text` (the Romanian full text cut at article headings, where the source has no article list). Both are null when the article is not located uniquely: its number with the superscript flattened (16¹ as `161`) is missing from that source or occurs there twice, or two articles of the page share it. The page text in `paras` may differ from the canonical text. ## Read an act as data - JSON: `https://legis.powerit.dev/api/act/{slug}.json`, UTF-8, sorted keys, byte-stable for one snapshot. - Preview: `https://legis.powerit.dev/api/preview/{lang}/{slug}.json` is a small per-language summary for link previews (`schema` `legis-reader/preview@1`: designation, title, type, number, dates, emitter, publication, status, `version_label` (how the text's version stands on the snapshot date; empty when it applied then), `open` the start of the text, `arts` one row `[id, title, excerpt, cut]` per article, excerpts cut near 400 characters). A large act lists `shards` instead of `arts`; its rows are in `https://legis.powerit.dev/api/preview/{lang}/{slug}/{key}.json`, `key` the article number divided by 100 (`0` for articles 1-99) or `x` for articles not numbered in digits. - `schema`: `legis-reader/act@1`. - `slug`, `base_slug`: the act's path name; `base_slug` is the shared part when several acts share a code. - `code`, `norm_code`: the publisher's code as given (`LP49/2017`) and normalised (no spaces, Latin letters, upper case). - `doc_id`: the publisher's id of the version whose text is here (see `text_version`); it changes with every new version, the slug does not. - `category`: `constitution`, `codex` or `laws`. - `number`, `year`: from the code (`49`, `2017`; a roman suffix stays, `292-XIII`). - `adopted`, `published`, `in_force_from`, `repealed_on`: ISO dates or null. - `active`, `has_text`: booleans from the source index. - `status`, `status_text`: source status texts per language; `status_key`: `in_force`, `amended`, `repealed` or `other`. - `title`, `full_name`, `act_type`: per language (`ro`, `ru`), as in the source. - `publication`, `emitter`: official publication reference and issuing body, per language. - `source_url`: `ro`, `ru` and `pdf` URLs of the act at the source. - `versions`: every version newest first, `{doc_id, date, is_latest, has_text, source_url}`; `date` is the register's version date; only the version with `has_text` (its `doc_id` equals the act's) has text here; `is_latest` is the source's flag and can be set on two versions. - `text_version`: `{doc_id, date, snapshot_date, applies_on_snapshot, snapshot_version, next_date, next_after_text}`, computed from the register's version dates only, not checked by a lawyer. The register gives an act's newest version as its text, also when that version applies only after the snapshot date. `applies_on_snapshot` is true when the text's version is the only newest one dated on or before `snapshot_date`; false when it is dated after it; null when the dates do not decide it (two versions share the deciding date, a newer-dated version on or before the snapshot has no text here, or the text's version is missing, undated, listed twice or dated more than 15 years ahead, which is taken as a source error and ignored, so `date` is then null). `snapshot_version` (`{doc_id, date, source_url}`) is the version that, by the register's dates, applied on the snapshot date: the text's own version when `applies_on_snapshot` is true; when it is false, a version whose text is only at the source, or null if no version is dated on or before the snapshot (the act did not apply yet by these dates); always null when `applies_on_snapshot` is null. `next_date`: the earliest version date after the snapshot; `next_after_text`: the earliest version date after the text's own. - `official`: always false; the official text is the one published in the Monitorul Oficial. - `cited_by`: acts in this reader that cite this act, `{slug, code, adopted, category, act_type, title}`, newest first. - `citation_status`: reserved for a later per-citation status; always null in this version. - `html`: page path per language; `json`: this file's path; `snapshot`: `{date, manifest_sha256}`. - `articles`: `{lang: path}` of the article index of each language with text (see Read one article); `{}` when neither has text. - `text.ro`, `text.ru`: `head`, `body`, `tail` and `amendments` (lists of blocks), `links`, `segmentation` (`headings`, `inferred` or `none`), `article_count`, `note_count`, `masthead` (source header lines, not shown on pages). - `body` items: parts `{t: "part", id: "s-3", level, lines, label, blocks}` (`blocks`: text between the heading and the next article) and articles `{t: "article", id: "art-58", num, label, title, repealed, part, blocks, note_count}`. - Blocks: `{t: "p", id, text, spans}`, `{t: "note", text, spans, target}` (a publisher's history note; `target` is the anchor it describes), `{t: "table", rows, head}`, `{t: "hr"}`; `text` is plain text. - `spans`: `[start, end, link_id]`, Python string offsets into `text`, sorted, not overlapping; `link_id` names an entry of `links`. - `links`: `{id, kind, status, slug, anchor, candidates, url, code, title, href}`; `kind` is `doc_id`, `number`, `note`, `self` or `external`. - Link statuses: - `in_corpus`: the cited act is in this reader; `href` opens it, at the cited article when the citation names one. - `not_built`: the act has a text at the source but is not part of this build; `href` is null. - `repealed`: the act is no longer in force and has no text here; `href` is null. - `ambiguous`: several acts share the number and year; `candidates` lists those in this reader. `slug` (the shared base slug) and `href` (the page that lists them) are set only when the candidates share one code; otherwise both are null. - `not_found`: no act with that number in the source index, neither under the year of its code nor under its year of adoption; `href` is null. - `external`: a file on the source site (annex, act sheet); `href` is its URL. ## The Constitution and the codes - [Constituţia Republicii Moldova](https://legis.powerit.dev/api/act/crm1-1994.json): CRM1/1994, adopted 1994-07-29; HTML https://legis.powerit.dev/ro/act/crm1-1994/ - [Cod fiscal al Republicii Moldova](https://legis.powerit.dev/api/act/cp1163-1997.json): CP1163/1997, adopted 1997-04-24; HTML https://legis.powerit.dev/ro/act/cp1163-1997/ - [Codul Civil al R.S.S.Moldoveneşti](https://legis.powerit.dev/api/act/cc81-1964.json): CC81/1964, adopted 1964-12-26; HTML https://legis.powerit.dev/ro/act/cc81-1964/ - [Codul administrativ al Republicii Moldova](https://legis.powerit.dev/api/act/ca116-2018.json): CA116/2018, adopted 2018-07-19; HTML https://legis.powerit.dev/ro/act/ca116-2018/ - [Codul aerian al Republicii Moldova](https://legis.powerit.dev/api/act/ca301-2017.json): CA301/2017, adopted 2017-12-21; HTML https://legis.powerit.dev/ro/act/ca301-2017/ - [Codul civil al Republicii Moldova](https://legis.powerit.dev/api/act/cp1107-2002.json): CP1107/2002, adopted 2002-06-06; HTML https://legis.powerit.dev/ro/act/cp1107-2002/ - [Codul contravenţional al Republicii Moldova](https://legis.powerit.dev/api/act/cc218-2008.json): CС218/2008, adopted 2008-10-24; HTML https://legis.powerit.dev/ro/act/cc218-2008/ - [Codul cu privire la contravenţiile administrative](https://legis.powerit.dev/api/act/cca47-1985.json): CCA47/1985, adopted 1985-03-29; HTML https://legis.powerit.dev/ro/act/cca47-1985/ - [Codul cu privire la locuinţe al R.S.S. Moldoveneşti](https://legis.powerit.dev/api/act/cl2718-1983.json): CL2718/1983, adopted 1983-06-03; HTML https://legis.powerit.dev/ro/act/cl2718-1983/ - [Codul cu privire la ştiinţă şi inovare al Republicii Moldova](https://legis.powerit.dev/api/act/csi259-2004.json): CȘI259/2004, adopted 2004-07-15; HTML https://legis.powerit.dev/ro/act/csi259-2004/ - [Codul de executare al Republicii Moldova](https://legis.powerit.dev/api/act/cp443-2004.json): CP443/2004, adopted 2004-12-24; HTML https://legis.powerit.dev/ro/act/cp443-2004/ - [Codul de procedură civilă al Republicii Moldova](https://legis.powerit.dev/api/act/cpc1964-1964.json): CPC1964/1964, adopted 1964-12-26; HTML https://legis.powerit.dev/ro/act/cpc1964-1964/ - [Codul de procedură civilă al Republicii Moldova](https://legis.powerit.dev/api/act/cpc225-2003.json): CPC225/2003, adopted 2003-05-30; HTML https://legis.powerit.dev/ro/act/cpc225-2003/ - [Codul de procedură penală](https://legis.powerit.dev/api/act/cpp42-1961.json): CPP42/1961, adopted 1961-03-24; HTML https://legis.powerit.dev/ro/act/cpp42-1961/ - [Codul de procedură penală al Republicii Moldova](https://legis.powerit.dev/api/act/cpp122-2003.json): CPP122/2003, adopted 2003-03-14; HTML https://legis.powerit.dev/ro/act/cpp122-2003/ - [Codul educaţiei al Republicii Moldova](https://legis.powerit.dev/api/act/cp152-2014.json): CP152/2014, adopted 2014-07-17; HTML https://legis.powerit.dev/ro/act/cp152-2014/ - [Codul electoral](https://legis.powerit.dev/api/act/ce325-2022.json): CE325/2022, adopted 2022-12-08; HTML https://legis.powerit.dev/ro/act/ce325-2022/ - [Codul electoral](https://legis.powerit.dev/api/act/cp1381-1997.json): CP1381/1997, adopted 1997-11-21; HTML https://legis.powerit.dev/ro/act/cp1381-1997/ - [Codul familiei](https://legis.powerit.dev/api/act/cp1316-2000.json): CP1316/2000, adopted 2000-10-26; HTML https://legis.powerit.dev/ro/act/cp1316-2000/ - [Codul funciar](https://legis.powerit.dev/api/act/cf22-2024.json): CF22/2024, adopted 2024-02-15; HTML https://legis.powerit.dev/ro/act/cf22-2024/ - [Codul funciar](https://legis.powerit.dev/api/act/cp828-1991.json): CP828/1991, adopted 1991-12-25; HTML https://legis.powerit.dev/ro/act/cp828-1991/ - [Codul muncii al Republicii Moldova](https://legis.powerit.dev/api/act/cp154-2003.json): CP154/2003, adopted 2003-03-28; HTML https://legis.powerit.dev/ro/act/cp154-2003/ - [Codul penal](https://legis.powerit.dev/api/act/cp41-1961.json): CP41/1961, adopted 1961-03-24; HTML https://legis.powerit.dev/ro/act/cp41-1961/ - [Codul penal al Republicii Moldova](https://legis.powerit.dev/api/act/cp985-2002.json): CP985/2002, adopted 2002-04-18; HTML https://legis.powerit.dev/ro/act/cp985-2002/ - [Codul serviciilor media audiovizuale al Republicii Moldova](https://legis.powerit.dev/api/act/csma174-2018.json): CSMA174/2018, adopted 2018-11-08; HTML https://legis.powerit.dev/ro/act/csma174-2018/ - [Codul silvic](https://legis.powerit.dev/api/act/cs69-2024.json): CS69/2024, adopted 2024-03-28; HTML https://legis.powerit.dev/ro/act/cs69-2024/ - [Codul subsolului](https://legis.powerit.dev/api/act/cs246-2024.json): CS246/2024, adopted 2024-11-08; HTML https://legis.powerit.dev/ro/act/cs246-2024/ - [Codul transportului feroviar](https://legis.powerit.dev/api/act/cp309-2003.json): CP309/2003, adopted 2003-07-17; HTML https://legis.powerit.dev/ro/act/cp309-2003/ - [Codul transportului feroviar](https://legis.powerit.dev/api/act/ctf19-2022.json): CTF19/2022, adopted 2022-02-03; HTML https://legis.powerit.dev/ro/act/ctf19-2022/ - [Codul vamal](https://legis.powerit.dev/api/act/cv95-2021.json): CV95/2021, adopted 2021-08-24; HTML https://legis.powerit.dev/ro/act/cv95-2021/ - [Titlul IV ACCIZELE](https://legis.powerit.dev/api/act/cp1053-2000.json): CP1053/2000, adopted 2000-06-16; HTML https://legis.powerit.dev/ro/act/cp1053-2000/ - [Titlul IV ACCIZELE](https://legis.powerit.dev/api/act/lp1053-2000.json): LP1053/2000, adopted 2000-06-16; HTML https://legis.powerit.dev/ro/act/lp1053-2000/ - [Titlul VI Impozitul pe bunurile imobiliare](https://legis.powerit.dev/api/act/cp1055-2000.json): CP1055/2000, adopted 2000-06-16; HTML https://legis.powerit.dev/ro/act/cp1055-2000/ - [Titlul VII taxele locale](https://legis.powerit.dev/api/act/cp93-2004.json): CP93/2004, adopted 2004-04-01; HTML https://legis.powerit.dev/ro/act/cp93-2004/ - [Transporturilor rutiere](https://legis.powerit.dev/api/act/ctr150-2014.json): CTR150/2014, adopted 2014-07-17; HTML https://legis.powerit.dev/ro/act/ctr150-2014/ - [Urbanismului și construcțiilor](https://legis.powerit.dev/api/act/cuc434-2023.json): CUC434/2023, adopted 2023-12-28; HTML https://legis.powerit.dev/ro/act/cuc434-2023/ ## Optional - [Sitemap](https://legis.powerit.dev/sitemap.xml): every HTML page with its other-language pair. - [About, Romanian](https://legis.powerit.dev/ro/about/): source, snapshot, manifest hash, known limits. - [About, Russian](https://legis.powerit.dev/ru/about/): the same in Russian. - [Release](https://legis.powerit.dev/release.json): which build this is: release id, snapshot date and manifest hash, the hash of the reader's code and of the split file, build time (UTC), the previous release, file and byte counts, and the sha256 of `/release.sha256`, which lists the sha256 of every file of the site except release.json and release.sha256 itself.