hu_get_text
Fetch the complete HTML text of a Hungarian legal document using its type, year, and serial number.
Instructions
Fetch the full document HTML content of a Hungarian piece of legislation.
For Acts (torveny), pass doc_type="TV" and omit issuer. For anything else, pass the
issuer code (case-sensitive - use hu_list_issuers).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | 4-digit year. | |
| issuer | No | NJT issuer code, case-sensitive (required for everything except `"TV"`). | |
| serial | Yes | the document's serial number within that year. | |
| doc_type | Yes | NJT type code, e.g. ``"TV"`` (torveny / Act) or ``"R"`` (rendelet / decree). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | ||
| title | No | ||
| format | No | njt-html-fragment | |
| issuer | No | ||
| serial | Yes | ||
| content | No | ||
| eli_uri | No | ||
| doc_type | Yes | ||
| subtitle | No | ||
| byte_size | No | ||
| source_url | No | ||
| dataset_note | No | Nemzeti Jogszabalytar (NJT) is Hungary's official, free-to-use national legislation database, maintained by MKIFK (Magyar Kozlonykiado es Igazsagugyi Forditokozpont Zrt.) at njt.jog.gov.hu. Hungary publishes a genuine, documented national ELI (European Legislation Identifier) URI scheme since 2023 (see /eli/urisemak). Each ELI URI resolves (HTTP 302) to a server-rendered HTML document page carrying the consolidated (currently-in-force, unless a historical date is requested) text of the act. There is no REST/JSON API and no headless full-text search - the search/browse UI is an AngularJS SPA that requires a session and JavaScript; documents must be addressed by a known ELI (type + year + serial, and an issuer code for non-Act types). | |
| in_force_date | No | ||
| human_readable_citation | No |