Skip to content

BOE Data Loader

BOE Data Loader queries the open data of the Boletín Oficial del Estado (BOE), Spain’s official state gazette. With it you can search the consolidated legislation, read the data and text of a norm, get the BOE or BORME summary for a day, and look up the reference tables the BOE uses, such as subjects or departments.

It is a public service: you don’t need a credential.

When to use it

  • Every morning you want a summary of that day’s BOE.
  • You want to know which norms on a subject were updated in a period.
  • You need the consolidated text of a law so an AI agent can answer questions about it.
  • You want to read one specific article of a norm without downloading the whole norm.
  • You want to keep an eye on the daily BORME summary.

Configuration

FieldWhat it does
APIThe BOE data group: Legislación Consolidada, BOE Sumario, BORME Sumario or Datos Auxiliares. Default: Legislación Consolidada. Changing it changes the Operation list.
OperationWhat to query within the chosen group. See Operations.
Norm ID or URLThe norm’s identifier, for example BOE-A-2015-8147, or its address on boe.es. It appears in the operations on a norm.
Block IDOnly in Bloque de texto. The block of the norm you want, for example a1 for article 1 or preambulo. The identifiers come from Índice de texto.
QueryText to search for. In Buscar legislación, it searches the norms; in Buscar en sumarios, the titles of the provisions.
Date FromStart date, in yyyymmdd format, for example 20260101. In Buscar legislación it filters by last update date. Required in Buscar en sumarios.
Date ToEnd date, in the same format. Required in Buscar en sumarios.
LimitOnly in Buscar legislación. Maximum number of results; -1 returns all. Default: 50.
DateIn Sumario del día. The day of the summary, in yyyymmdd format.

Operations

The operation names are in Spanish, as the BOE names them.

Legislación Consolidada

OperationWhat it does
Buscar legislaciónSearches norms by text and by update date.
Metadatos de normaReturns a norm’s descriptive data, such as its title and dates.
Análisis de normaReturns the analysis the BOE publishes for the norm, such as its subjects.
Índice de textoReturns the list of the norm’s blocks (preamble, articles, provisions) with their identifiers.
Bloque de textoReturns the text of one specific block of the norm.
Texto consolidadoReturns the full consolidated text of the norm.
Norma completaReturns the complete norm as the BOE publishes it.
Metadatos ELIReturns the norm’s data in the European ELI format.

BOE Sumario

OperationWhat it does
Sumario del díaReturns the BOE summary for the given date.
Buscar en sumariosGoes through the summaries between two dates and returns the provisions whose title contains the Query text.

BORME Sumario

OperationWhat it does
Sumario del díaReturns the BORME summary for the given date.

Datos Auxiliares

The operations Materias, Ámbitos, Estados de consolidación, Departamentos, Rangos, Relaciones anteriores and Relaciones posteriores each return the BOE reference table with that name: the list of possible values and their codes. They don’t ask for any other field.

Advanced options

FieldWhat it does
OffsetOnly in Buscar legislación. Which result to start from, counting from 0. Useful to fetch results in batches. Default: 0.
Timeout (seconds)How many seconds to wait for the BOE’s answer. Default: 30.

Output

The Results output returns the BOE’s answer. When the answer is a list, such as search results or a norm’s index, you get one item per entry, with its title as text. When it is a single piece of data, such as a norm’s text or a summary, you get one item.

If the BOE answers with an error or a required value is missing, the component does not stop the flow: it returns one item with the error text.

You can connect the result to an agent that summarises it, to a component that filters the data, or to an email component. The component can also be connected to an Agent as a tool, so the agent queries the BOE when it needs to. See Tool Mode.

Example

A law firm wants to receive the BOE news every morning.

  1. Schedule the flow to run every working day. See Scheduler.
  2. Add BOE Data Loader with API set to BOE Sumario and Operation set to Sumario del día.
  3. In Date connect the day’s date in yyyymmdd format.
  4. Connect Results to an agent that summarises the provisions that affect your practice areas and to an email component that sends the summary to the team.

Good practices

  • For a long norm, use Índice de texto first and then Bloque de texto with the article you need, instead of fetching the full text.
  • Always write dates as yyyymmdd, without dashes or slashes.
  • If you want an AI to answer questions about a norm, try BOE Norm Agent, which finds the articles for you.
  • BOE Norm Agent: answers questions about BOE norms with their articles.