Discover/Gov API
live

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.

Endpoint health
verified 2d ago
suggest
search_laws
get_law
3/3 passing latest checkself-healing
Endpoints
3
Updated
27d ago

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.

Try it
Page number for pagination.
Year of the law (4-digit, e.g. '2024').
Serial number of the law (e.g. 'CLV' in Roman numerals or Arabic numerals).
Search term or phrase to find in law texts (e.g. 'munkaviszony' for employment-related laws).
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.
Number of results per page. Accepts exactly one of: 10, 25, 50.
If true, return only currently valid (hatályos) laws.
If true, search only in law titles.
If true, search for exact word match.
api.parse.bot/scraper/74b9b4b7-0065-41f2-8d82-b37964db687b/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
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'
Python SDK · recommended

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)
All endpoints · 3 totalmissing one? ·

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.

Input
ParamTypeDescription
pageintegerPage number for pagination.
yearstringYear of the law (4-digit, e.g. '2024').
numberstringSerial number of the law (e.g. 'CLV' in Roman numerals or Arabic numerals).
keywordstringSearch term or phrase to find in law texts (e.g. 'munkaviszony' for employment-related laws).
law_typestringType 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_pageintegerNumber of results per page. Accepts exactly one of: 10, 25, 50.
only_validbooleanIf true, return only currently valid (hatályos) laws.
title_onlybooleanIf true, search only in law titles.
exact_matchbooleanIf true, search for exact word match.
Response
{
  "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.

Reliability & maintenanceVerified

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.

Last verified
2d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • 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
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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.

Frequently asked questions
Does njt.jog.gov.hu have an official developer API?+
The site does not publish a documented public developer API. It provides a web interface and ELI-compliant document URLs for human browsing. This Parse API surfaces the same data in a structured, machine-readable form.
What does get_law return beyond the plain text?+
get_law returns the official 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?+
The 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?+
Not currently. The API returns the current version of a law along with its 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.
Page content last updated . Spec covers 3 endpoints from njt.jog.gov.hu.
Related APIs in Government PublicSee all →
normattiva.it API
Search and retrieve Italian laws and legislative acts from the official Normattiva portal with advanced filtering, full text access with preserved article structure, and autocomplete suggestions. Quickly find specific legislation, browse complete legal texts, and explore Italian law with intelligent search capabilities.
eur-lex.europa.eu API
Access and explore the complete collection of European Union laws, regulations, and Official Journal publications through a comprehensive database that lets you search documents, retrieve full texts, summaries, and metadata, and track legislative procedures and national implementations. Find exactly what you need with detailed search capabilities and get detailed information about how EU laws are transposed into national legislation.
indiankanoon.org API
indiankanoon.org API
moj.gov.kh API
Access Cambodia's official legal resources including books, news, laws, and regulations through the Ministry of Justice's digital library. Search and retrieve information about legal documents, news events, and official publications to stay informed on Cambodian legislation and justice updates.
legifrance.gouv.fr API
Search and retrieve official French legal documents, laws, and unclaimed estate notices from the Journal Officiel (JORF), including the ability to browse the latest published issues. Find specific legal texts and succession notices to stay informed about French legislation and inheritance announcements.
canlii.org API
Access Canadian legal information from CanLII.org. Discover jurisdictions and databases, search case law and legislation across all provinces and territories, and retrieve full document text and metadata.
indiacode.nic.in API
Search and retrieve Indian legislation from indiacode.nic.in. Browse Central and State Acts, look up individual sections, and extract fully structured act content by keyword or handle ID.
judgments.ecourts.gov.in API
Search for Indian court judgments and orders across multiple courts to access legal rulings, case decisions, and judicial orders. Find relevant court cases by searching through a comprehensive database of Indian judicial decisions.