hu_get_legislation
Retrieve metadata for any Hungarian legislation by its ELI components: type, year, issuer, serial. Use for decrees and other documents, excluding Acts.
Instructions
Fetch metadata for any Hungarian legislation by its ELI (type + year + issuer + serial).
Use this for anything other than Acts (torveny) - government decrees, ministerial decrees,
etc. Use hu_list_doc_types for valid doc_type codes and hu_list_issuers for valid
issuer codes (issuer codes are case-sensitive, e.g. Korm for Government).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | 4-digit year, e.g. ``"2016"``. | |
| issuer | Yes | NJT issuer code, case-sensitive, e.g. ``"Korm"`` (Government). | |
| serial | Yes | the document's serial number within that year, e.g. ``"428"``. | |
| doc_type | Yes | NJT type code, e.g. ``"R"`` (rendelet / decree). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| title | No | ||
| issuer | No | ||
| serial | No | ||
| eli_uri | No | ||
| doc_type | No | ||
| subtitle | 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 |