# 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 for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/credits/njt-jog-gov/`
**Auth:** `Authorization: Bearer <LOCUS_CREDITS_SECRET_KEY>` (an `lcr_` secret key or a scoped `lcac_` agent credential)
**Required header:** `Idempotency-Key: <fresh UUID per call>`. A retry with the same key replays the stored result without a new charge.
**Response:** the provider response after any endpoint-specific normalization. `X-Locus-Credits-Charged` carries the charge and `X-Locus-Credits-Balance` the remaining balance. Insufficient credits return `402` before the provider is called.
**Pricing:** estimated costs below are USD. Locus debits the credit equivalent at your workspace rate.

Full call contract: https://docs.paywithlocus.com/api-reference/introduction

> Using a Pay With Locus wallet key (`claw_` prefix)? Wallet routes are documented separately: https://docs.paywithlocus.com/wrapped-apis/for-agents

## 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/credits/njt-jog-gov/get-law \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/njt-jog-gov/search-laws \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -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/credits/njt-jog-gov/suggest \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```

## Next steps

- [All wrapped API providers](https://paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://paywithlocus.com/agent/index.md): every Locus agent page.