Boe Legislacion

v0.2.1
io.github.pipeworx-io/boe-legislacion Checked 1 day ago Published 1 month ago

Spain 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.

ParameterTypeDescription
query *stringWords to match in the title, e.g. "Código Civil".
ambitostringOptional: "estatal" (national) or "autonomico" (regional) to restrict scope.
limitnumberMax results, 1-50 (default 20).
offsetnumberPagination 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…

ParameterTypeDescription
id *stringBOE identifier, e.g. "BOE-A-1889-4763".
articlestringOptional 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.

ParameterTypeDescription
date *stringPublication date, YYYY-MM-DD, e.g. "2026-10-13".