Boe Legislacion
v0.2.1Spain consolidated legislation — Agencia Estatal Boletín Oficial del Estado (BOE), open-data API.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
boe_search_law
Search Spain's consolidated legislation (Legislación Consolidada) by words in the title — e.g. "Código Civil", "ley de propiedad horizontal". Returns matching laws/decrees with their BOE id, rank (ley/real decreto/...), issuing department, dates, and the official BOE page URL for each. Source: Agencia Estatal Boletín Oficial del Estado (BOE), Legislación Consolidada open-data API. Pass the returned id to boe_law for the full record or one article's text.
| Parameter | Type | Description |
|---|---|---|
query * | string | Words to match in the title, e.g. "Código Civil". |
ambito | string | Optional: "estatal" (national) or "autonomico" (regional) to restrict scope. |
limit | number | Max results, 1-50 (default 20). |
offset | number | Pagination offset (default 0) — the upstream does not report a total match count. |
boe_law
Get one Spanish consolidated law by its BOE id (from boe_search_law, e.g. "BOE-A-1889-4763" = Código Civil). Without "article": returns metadata (rank, department, dates, consolidation status), subject tags, notes, and a table of contents of its articles/sections ("bloques") — capped and marked truncated for large codes. With "article" (a block id from that table of contents, e.g. "a1" for Artículo 1): returns the actual text of that one article across every historical version, each dated, with the current one flagged. Unknown id or article is refused with found:false, never an empty succe…
| Parameter | Type | Description |
|---|---|---|
id * | string | BOE identifier, e.g. "BOE-A-1889-4763". |
article | string | Optional block id from the law's table of contents, e.g. "a1" (Artículo 1), "preambulo". |
boe_daily_summary
Table of contents of one day's Boletín Oficial del Estado (BOE) issue — every disposition and announcement published that day, grouped by section and issuing department, with each item's BOE id and title. Source: Agencia Estatal Boletín Oficial del Estado (BOE), daily Sumario open-data API. BOE does not publish every day (no Sunday issue, some holidays) — those dates come back found:false, not an empty success.
| Parameter | Type | Description |
|---|---|---|
date * | string | Publication date, YYYY-MM-DD, e.g. "2026-10-13". |