# Normattiva — 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 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. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-normattiva-it-api-53f74d5b/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## 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.paywithlocus.com/api/wrapped/parse-normattiva-it-api-53f74d5b/get_law_full_text \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-normattiva-it-api-53f74d5b/search_laws \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-normattiva-it-api-53f74d5b/search_laws_simple \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -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.paywithlocus.com/api/wrapped/parse-normattiva-it-api-53f74d5b/suggest \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"<string>"}'
```
