lt_get_text
Fetches the full Lithuanian text of a legal act by TAR code, returning the consolidated edition in force today or the newest/original text when no current edition exists.
Instructions
Fetch the full Lithuanian text of an act by its TAR code - the version in force today.
Returns the consolidated edition (suvestine redakcija) in force today when the source has
one; otherwise the newest consolidated edition flagged stale; otherwise the act's
original text. text_source says which.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tar_kodas | Yes | e.g. ``"2014-21296"``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stale | No | ||
| title | No | ||
| format | No | text/plain | |
| content | No | ||
| eli_uri | No | ||
| warning | No | ||
| eli_note | No | Lithuania has no data.europa.eu ELI for the TAR dataset. eli_uri carries the canonical e-tar.lt legalAct URL (the stable national identifier), which is also the source_url. | |
| byte_size | No | ||
| cached_at | No | When that stored copy was fetched. | |
| tar_kodas | No | ||
| as_of_date | No | ||
| source_url | No | ||
| text_source | No | ||
| dataset_note | No | The Lithuanian Register of Legal Acts (TAR) is served as open data via the data.gov.lt Spinta API (dataset gov/lrsk/teises_aktai: models Dokumentas, Suvestine, Priedas; CC BY 4.0). Acts are addressed by their TAR code (tar_kodas, e.g. '2014-21296'); discover acts with lt_search (matches the title). Consolidated editions (suvestines redakcijos) come from the Suvestine model, attachments (priedai) from the Priedas model. Language: Lithuanian. | |
| retrieved_at | No | ||
| suvestines_id | No | ||
| content_sha256 | No | ||
| edition_valid_to | No | ||
| served_from_cache | No | True when data.gov.lt failed and a stored copy was served instead. | |
| source_fetched_at | No | Oldest fetch time of any source response used (cache incl.). | |
| edition_valid_from | No | ||
| human_readable_citation | No |