Gov APInjt.jog.gov.hu ↗
Search and retrieve Hungarian laws, decrees, and legal documents from the National Legislation Database via 3 endpoints covering full text, sections, and ELI links.
What is the Gov API?
The NJT API exposes 3 endpoints for querying Hungary's Nemzeti Jogszabálytár — the official National Legislation Database. Use search_laws to filter acts by keyword, year, Roman-numeral serial number, issuing authority type, and validity status, then call get_law to fetch full structured text, effective date, and the European Legislation Identifier URL for any document returned in search results.
curl -X GET 'https://api.parse.bot/scraper/74b9b4b7-0065-41f2-8d82-b37964db687b/search_laws?page=1&keyword=munkaviszony&per_page=10&year=2024&number=1&law_type=0000' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace njt-jog-gov-hu-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
from parse_apis.hungarian_national_legislation_njt_api import NJT, LawSummary, Law, PerPage
njt = NJT()
# Search for employment-related laws with 25 results per page
for result in njt.laws.search(keyword="munkaviszony", only_valid=True, per_page=PerPage.TWENTY_FIVE, limit=5):
print(result.law_id, result.title, result.date)
# Get the full text of a specific law
law = njt.laws.get(law_id="2012-1-00-00")
print(law.title, law.subtitle, law.effective_date)
for section in law.sections:
print(section.type, section.text)
# Get autocomplete suggestions
suggestion = njt.suggestions.get(query="munka")
print(suggestion.query)
for s in suggestion.suggestions:
print(s)
Full-text search over Hungarian laws and legal documents. Accepts keyword, year, number, and type filters. At least one of keyword, year, or number must be provided. Paginates via page number. Returns law summaries with ID, title, date range, and description snippet.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination. |
| year | string | Year of the law (4-digit, e.g. '2024'). |
| number | string | Serial number of the law (e.g. 'CLV' in Roman numerals or Arabic numerals). |
| keyword | string | Search term or phrase to find in law texts (e.g. 'munkaviszony' for employment-related laws). |
| law_type | string | Type code for the law issuing authority (e.g. '0000' for törvény, '2220' for Korm. rendelet, '7530' for AB határozat). Omit for all types. |
| per_page | integer | Number of results per page. Accepts exactly one of: 10, 25, 50. |
| only_valid | boolean | If true, return only currently valid (hatályos) laws. |
| title_only | boolean | If true, search only in law titles. |
| exact_match | boolean | If true, search for exact word match. |
{
"type": "object",
"fields": {
"page": "integer - current page number",
"results": "array of LawSummary objects with law_id, title, date, and description",
"per_page": "integer - results per page",
"total_count": "integer or null - total number of results",
"total_pages": "integer or null - total number of pages"
},
"sample": {
"data": {
"page": 1,
"results": [
{
"date": "2026. 01. 01. – 2027. 01. 02.",
"title": "2025. évi CXXXVI. törvény",
"law_id": "2025-136-00-00",
"description": "a sportról szóló 2004. évi I. törvény és egyéb törvények sporttal kapcsolatos módosításáról"
}
],
"per_page": 10,
"total_count": 220,
"total_pages": 22
},
"status": "success"
}
}About the Gov API
What the API covers
The API covers Hungarian statutes (törvény), government decrees (Korm. rendelet), constitutional court decisions, and other legal acts catalogued in the njt.jog.gov.hu National Legislation Database. Each document carries a stable law_id (e.g. 2012-1-00-00) that ties search results to full-text retrieval. The total_count and total_pages fields on paginated results let you walk the entire result set programmatically.
search_laws endpoint
search_laws accepts keyword, year, number, and law_type filters — at least one of keyword, year, or number is required. The law_type parameter maps to issuing-authority codes: 0000 for acts of parliament, 2220 for government decrees, 7530 for Constitutional Court decisions, among others. Setting only_valid: true restricts results to currently in-force legislation. Setting title_only: true narrows keyword matching to document titles. Each result in the results array contains law_id, title, date, and a description snippet. Pagination is controlled by page and per_page (10, 25, or 50 results).
get_law and suggest endpoints
get_law takes a law_id from search results and returns the full document: title, subtitle, effective_date, eli_link (a standards-compliant European Legislation Identifier URL), a sections array with typed section objects, and a full_text string containing the complete plain-text of the act. The suggest endpoint accepts a partial query string (e.g. munka) and returns a ranked array of suggested search phrases, which is useful for autocomplete interfaces or discovering related legal terminology before running a full search.
The Gov API is a managed, monitored endpoint for njt.jog.gov.hu — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when njt.jog.gov.hu changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official njt.jog.gov.hu API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Building a Hungarian legal research tool that lets users filter acts by year and issuing authority type
- Monitoring changes to currently valid laws by periodically querying search_laws with only_valid:true
- Extracting structured sections from specific acts via get_law to populate a compliance knowledge base
- Resolving ELI links for Hungarian legislation to cross-reference with EU legal databases
- Implementing autocomplete in a legal search UI using the suggest endpoint on partial Hungarian legal terms
- Bulk-indexing Hungarian statutes by walking paginated search_laws results and storing full_text fields
- Checking whether a specific act (identified by year and Roman-numeral serial number) is currently in force
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does njt.jog.gov.hu have an official developer API?+
What does get_law return beyond the plain text?+
title, a subtitle, the effective_date of the current version, an eli_link (European Legislation Identifier URL), a sections array of typed section objects, and a full_text string containing the complete text of the act. The law_id used for the request is also echoed back in the response.What law_type codes are available in search_laws?+
law_type parameter accepts authority codes such as 0000 for parliamentary acts (törvény), 2220 for government decrees (Korm. rendelet), and 7530 for Constitutional Court decisions (AB határozat). The NJT database contains additional authority types; if you need a code not listed in the endpoint description, you can fork the API on Parse and revise it to add the missing type mappings.Does the API return amendment history or consolidated versions of a law over time?+
effective_date. Historical versions and amendment timelines are not exposed by the present endpoints. You can fork this API on Parse and revise it to add an endpoint targeting dated historical snapshots if the source makes them accessible.Are there pagination limits or gaps in total_count?+
total_count and total_pages are typed as integer-or-null, meaning they may not be populated for every query. The per_page parameter accepts only the values 10, 25, or 50 — other integers are not accepted. Page traversal should account for null totals by continuing until an empty results array is returned.