# Njt Jog Gov — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search and retrieve Hungarian laws, decrees, and legal documents from the National Legislation Database to find current legislation and legal regulations. Quickly look up specific laws, get detailed document information, and discover relevant legal acts through intelligent search suggestions.

**Category:** Government & Public Data | **Website:** [njt.jog.gov.hu/](https://njt.jog.gov.hu/) | **Docs:** [parse.bot/marketplace/b9171f62-82ea-43c0-9595-9f5dd5acfc28/njt-jog-gov-hu-api](https://parse.bot/marketplace/b9171f62-82ea-43c0-9595-9f5dd5acfc28/njt-jog-gov-hu-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-njt-jog-gov-hu-api-b9171f62/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_law

Retrieve the full text content of a specific Hungarian law by its ID. Returns title, subtitle, effective date, ELI link, structured sections, and the complete plain text. The law_id is obtained from search_laws results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `law_id` | string | Yes | Unique identifier for the law (e.g. '2012-1-00-00', '2025-136-00-00'). Obtained from search_laws results[*].law_id. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-njt-jog-gov-hu-api-b9171f62/get_law \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"law_id":"<string>"}'
```

### search_laws

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.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `exact_match` | boolean | No | If true, search for exact word match. |
| `keyword` | string | No | Search term or phrase to find in law texts (e.g. 'munkaviszony' for employment-related laws). |
| `law_type` | string | No | 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` | string | No | Serial number of the law (e.g. 'CLV' in Roman numerals or Arabic numerals). |
| `only_valid` | boolean | No | If true, return only currently valid (hatályos) laws. |
| `page` | integer | No | Page number for pagination. |
| `per_page` | integer | No | Number of results per page. Accepts exactly one of: 10, 25, 50. |
| `title_only` | boolean | No | If true, search only in law titles. |
| `year` | string | No | Year of the law (4-digit, e.g. '2024'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-njt-jog-gov-hu-api-b9171f62/search_laws \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"exact_match":"<boolean>","keyword":"<string>","law_type":"<string>","number":"<string>","only_valid":"<boolean>","page":"<integer>","per_page":"<integer>","title_only":"<boolean>","year":"<string>"}'
```

### suggest

Get autocomplete suggestions for a partial search query. Returns a list of suggested search phrases ranked by relevance. Useful for building search UIs or discovering related legal terminology.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Partial search term to get suggestions for (e.g. 'munka'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-njt-jog-gov-hu-api-b9171f62/suggest \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
