lt_get_attachment
Fetch a single Lithuanian legal act attachment by act code and attachment ID, returning extracted text, metadata, and a download URL.
Instructions
Fetch one attachment (priedas) of an act: extracted text, metadata and download URL.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| priedo_id | Yes | from ``lt_list_attachments``. | |
| tar_kodas | Yes | the act the attachment belongs to, e.g. ``"2014-21296"``. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | ||
| title | No | ||
| format | No | text/plain | |
| content | No | ||
| eli_uri | No | ||
| updated | 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. | |
| priedo_id | No | ||
| tar_kodas | No | ||
| source_url | No | ||
| file_format | 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. | |
| download_url | No | ||
| retrieved_at | No | ||
| content_sha256 | 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.). | |
| has_non_text_elements | No | ||
| human_readable_citation | No |