Spain BOE Legislation Scraper avatar

Spain BOE Legislation Scraper

Pricing

from $3.50 / 1,000 provisions

Go to Apify Store
Spain BOE Legislation Scraper

Spain BOE Legislation Scraper

Get new Spanish laws, royal decrees, orders and resolutions from the official BOE open data API. Filter by keyword, department and legal rank. Legal metadata and optional full text for AI and legal research.

Pricing

from $3.50 / 1,000 provisions

Rating

0.0

(0)

Developer

Roberto Valera Calatrava

Roberto Valera Calatrava

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

Share

Spain BOE Legislation Scraper (Boletín Oficial del Estado)

Get every new Spanish law, royal decree, ministerial order and resolution published in the BOE (Boletín Oficial del Estado), Spain's official gazette, as clean structured data. Everything comes from the official BOE open data API.

Filter by keyword, section, issuing department and legal rank, and optionally get legal metadata (entry into force, repeal status, ELI identifier, subject matters, what each provision repeals, amends or transposes) and the full text.

Legislación española del BOE: leyes, reales decretos, órdenes y resoluciones, con metadatos jurídicos y texto completo.

What does Spain BOE Legislation Scraper do?

  • Reads the daily BOE summary from the official open data API (no fragile HTML scraping).
  • Returns each provision with title, rank, official number, issuing department, section, dates and links (PDF, HTML, XML).
  • Optionally adds legal metadata: approval date, entry into force, repeal and annulment status, ELI identifier, subject matters, alerts and references (repeals, amends, transposes EU directives...).
  • Optionally adds the full text of each provision, ready for AI, RAG and search.
  • Skips days without a BOE (Sundays) automatically.

Who is it for?

You are...Use it to...
A law firm or legal departmentTrack new legislation in your practice areas every morning.
A compliance or regulatory affairs teamGet a regulatory alert for rules that affect your sector.
A legal tech or AI companyBuild and update a corpus of Spanish legislation with full text.
A consultancy, association or lobbyMonitor ministries, regions and topics for your clients.
A journalist or researcherAnalyse regulatory activity by ministry, rank or subject.

How to use it

  1. Click Try for free (or Start).
  2. Optionally enter keywords (for example vivienda, protección de datos, IRPF), departments or legal ranks.
  3. Choose how many of the latest BOE issues to process, or set a date range.
  4. Turn on Include full text if you need the complete provision.
  5. Click Start and download the results as JSON, CSV, Excel or HTML, or connect an integration.
  1. Save your filters as a Task with Latest issues = 1.
  2. Add a Schedule to run it every weekday morning (the BOE is published early in the morning).
  3. Connect an integration (Google Sheets, Slack, email, Zapier, Make or a webhook).

Input examples

Only major legislation (laws and royal decree-laws):

{
"sections": ["1"],
"ranks": ["Ley", "Ley Orgánica", "Real Decreto-ley"],
"lastIssues": 5
}

Everything about housing, with full text, for a legal AI corpus:

{
"keywords": ["vivienda", "alquiler", "arrendamiento"],
"startDate": "2026-01-01",
"endDate": "2026-10-31",
"includeFullText": true
}

Daily alert from the Ministry of Labour (collective agreements included):

{
"departments": ["Trabajo"],
"lastIssues": 1
}

Input fields

FieldDescription
KeywordsWords to look for in the title or heading (accents ignored).
Exclude keywordsSkip items containing these words.
BOE sectionsI. General provisions (laws, decrees, orders) and/or III. Other provisions (agreements, grants, collective agreements, court rulings...).
Issuing departmentsPartial match, e.g. Hacienda, Trabajo, Tribunal Constitucional, Comunidad Autónoma de Cataluña.
Legal ranke.g. Ley, Ley Orgánica, Real Decreto, Real Decreto-ley, Orden, Resolución, Circular.
Latest issuesNumber of most recent BOE issues to process (use 1 for a daily schedule).
Start / end dateOptional date range (up to 1 year).
Include legal metadataRank, official number, dates, repeal status, ELI, subjects, references.
Include full textComplete text of each provision.
Maximum resultsStop after N items.

Output example

{
"id": "BOE-A-2026-22081",
"titulo": "Real Decreto 847/2026, de 21 de octubre, por el que se establecen las disposiciones mínimas de seguridad y salud aplicables a los trabajos con riesgo de exposición al amianto.",
"fechaPublicacion": "2026-10-23",
"numeroBoe": 263,
"seccion": "I. Disposiciones generales",
"departamento": "MINISTERIO DE LA PRESIDENCIA, JUSTICIA Y RELACIONES CON LAS CORTES",
"epigrafe": "Prevención de riesgos laborales",
"rango": "Real Decreto",
"numeroOficial": "847/2026",
"fechaDisposicion": "2026-10-21",
"fechaVigencia": "2026-10-24",
"derogada": false,
"urlEli": "https://www.boe.es/eli/es/rd/2026/10/21/847",
"materias": ["Seguridad e higiene en el trabajo", "Accidentes de trabajo y enfermedades profesionales"],
"referenciasAnteriores": [
{ "id": "BOE-A-2006-6474", "relacion": "DEROGA", "texto": "Real Decreto 396/2006, de 31 de marzo" },
{ "id": "DOUE-L-2023-81725", "relacion": "TRANSPONE", "texto": "la Directiva (UE) 2023/2668, de 22 de noviembre" }
],
"urlPdf": "https://www.boe.es/boe/dias/2026/10/23/pdfs/BOE-A-2026-22081.pdf",
"urlHtml": "https://www.boe.es/diario_boe/txt.php?id=BOE-A-2026-22081"
}

With Include full text enabled, each item also has a texto field with the complete provision.

How much does it cost?

You pay only for the provisions you get: $5 per 1,000 results (half a cent per provision). Platform usage is included, also with full text.

Typical useApproximate cost
Daily alert with ~10 matching provisionsabout $0.05 per day (~$1 per month)
Full BOE (sections I and III) for one day, ~60 provisionsabout $0.30
One-year corpus on a topic, ~1,000 provisions with full textabout $5

Apify's free plan includes monthly credits, so you can try it at no cost.

FAQ

Where does the data come from? From the official open data API of the Agencia Estatal Boletín Oficial del Estado (www.boe.es).

How fresh is the data? The BOE is published every day except Sundays, early in the morning. Run the Actor with Latest issues = 1 each morning to get the new provisions.

Does it include regional gazettes (DOGC, BOJA, BOCM...)? Not yet. It covers the BOE, which also publishes many regional laws and agreements in sections I and III.

Why are appointments and civil service exams not included? Section II of the BOE mostly concerns specific people. To respect data protection rules, this Actor only covers sections I and III and skips items about specific individuals.

Can I use the full text to train or feed an AI? Yes, the BOE open data is offered for reuse. Always cite the source (Agencia Estatal BOE).

Data source and privacy

Data comes from the open data API of the Agencia Estatal Boletín Oficial del Estado, offered for reuse under Spanish public sector information reuse rules. Source: Agencia Estatal BOE (www.boe.es).

This Actor only covers Section I (general provisions) and Section III (other provisions). To respect data protection rules, it does not include Section II (appointments and civil service exams) or court and administrative notices, and it automatically skips items about specific private individuals (such as grants of nationality or pardons).

This Actor is not affiliated with or endorsed by the Agencia Estatal BOE or the Spanish government.

  • Spain Public Tenders Scraper: new Spanish public tenders (licitaciones) from the official procurement platform, with filters by keyword, CPV, region and budget.

Feedback

Found a bug or need a new field or filter? Open an issue in the Issues tab and it will be looked at quickly.


Resumen en español: obtén cada día las nuevas leyes, reales decretos, órdenes y resoluciones del BOE desde la API oficial de datos abiertos. Filtra por palabras clave, sección, departamento y rango, con metadatos jurídicos (vigencia, derogaciones, ELI, materias) y texto completo opcional. Ideal para despachos, compliance, alertas normativas e IA jurídica.