# Normattiva — Wrapped API

> **You are on:** `https://api.beta.paywithlocus.com/api` | [llms.txt](https://beta.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 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.

**Category:** Government & Public Data | **Website:** [www.normattiva.it/ricerca/complessa](https://www.normattiva.it/ricerca/complessa) | **Docs:** [parse.bot/marketplace/53f74d5b-cad6-48d7-86a4-b1b76877c1a5/normattiva-it-api](https://parse.bot/marketplace/53f74d5b-cad6-48d7-86a4-b1b76877c1a5/normattiva-it-api)

Pay-per-use API proxy for Locus Pro. Each call burns credits from your workspace balance.

## Access

**Base URL:** `https://api.beta.paywithlocus.com/api/wrapped/credits/normattiva/`
**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 full text

Retrieve the full text of a specific Italian law/act. Returns the official title, subtitle, and legislative text with article numbering preserved (Art. 1, Art. 2, etc.). Both parameters are available in search results. For repealed or not-yet-effective laws, text may indicate the status rather than the original content.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `codice_redazionale` | string | Yes | Unique code for the act (from search results field codice_redazionale, e.g. '26G00070') |
| `publication_date` | string | Yes | Publication date in YYYY-MM-DD format (from search results field publication_date) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/normattiva/get-law-full-text \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"codice_redazionale":"<string>","publication_date":"<string>"}'
```

### Search laws

Search for Italian laws/acts using advanced filters (year, act type, number, title text, body text). Returns paginated results with 20 items per page. At least one search parameter should be provided. The act_type parameter accepts either the display name (e.g. 'LEGGE') or the internal code (e.g. 'PLE'). Each result includes metadata and identifiers needed to retrieve the full text via get_law_full_text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `act_type` | string | No | Type/denomination of the act. Accepts display name or code. |
| `number` | string | No | Act number (e.g. '213') |
| `page` | integer | No | Page number (0-indexed) |
| `query` | string | No | Text to search in the body of laws |
| `title_search` | string | No | Text to search in the title of laws |
| `year` | string | No | Year of the act (e.g. '2026') |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/normattiva/search-laws \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"act_type":"<string>","number":"<string>","page":"<integer>","query":"<string>","title_search":"<string>","year":"<string>"}'
```

### Search laws simple

Full-text search across all Italian laws using a single query string. Equivalent to the homepage search bar. Returns paginated results with 20 items per page. Delegates to the advanced search internally with only the text query populated.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number (0-indexed) |
| `query` | string | Yes | Search text |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/normattiva/search-laws-simple \
  -H "Authorization: Bearer $LOCUS_CREDITS_SECRET_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```

### Suggest

Get autocomplete suggestions for a search query from the Normattiva database. Returns up to 5 matching terms as used by the search bar typeahead. Works best with Italian-language terms; terms not in the corpus return an empty list. Minimum 3 characters recommended.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `query` | string | Yes | Partial search text (Italian-language terms recommended, at least 3 characters) |

```bash
curl -X POST https://api.beta.paywithlocus.com/api/wrapped/credits/normattiva/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://beta.paywithlocus.com/wapi/index.md): pick another provider.
- [Find and call tools](https://beta.paywithlocus.com/agent/tools.md): price ceilings, async results, and errors.
- [Credits and billing](https://beta.paywithlocus.com/agent/billing.md): what a call costs and how to add credits.
- [Agent docs index](https://beta.paywithlocus.com/agent/index.md): every Locus agent page.