BOE Scraper — Spanish Official Gazette avatar

BOE Scraper — Spanish Official Gazette

Pricing

Pay per usage

Go to Apify Store
BOE Scraper — Spanish Official Gazette

BOE Scraper — Spanish Official Gazette

Extract laws, royal decrees, appointments, public notices, and procurement announcements from Spain's Boletin Oficial del Estado (BOE). Filter by date, section, department, or keyword. Returns structured data with direct links to PDF, HTML, and XML documents. No cookies, no login.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Studio Amba

Studio Amba

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Share

Spanish Official Gazette Scraper -- BOE Laws & Decrees

Extract laws, royal decrees, appointments, public procurement notices, and official announcements from Spain's Boletin Oficial del Estado (BOE). Filter by date range, section, department, or keyword. Returns structured data with direct links to PDF, HTML, and XML documents. No cookies, no login required.

How to scrape BOE data

This actor queries the official BOE Open Data API to deliver structured Spanish gazette data. The BOE is Spain's mandatory publication channel for all legislation, government appointments, public procurement, and official notices. Published daily (Monday through Saturday), the BOE is the definitive legal record of the Spanish state.

Search by keyword

Search in Spanish for best results. Examples: "vivienda" (housing), "empleo" (employment), "impuesto" (tax), "energia" (energy), "educacion" (education). The keyword filter matches against document titles and headings.

Filter by section

The BOE is organized into sections:

SectionContent
IGeneral provisions -- laws, royal decrees, ministerial orders
II.AAppointments, promotions, transfers of civil servants
II.BPublic exams and competitive positions (oposiciones)
IIIOther provisions -- subsidies, grants, regional regulations
IVAdministration of Justice
V.APublic procurement announcements
V.BOther official announcements
V.CPrivate announcements

Filter by department

Narrow results to a specific ministry or institution: "HACIENDA" (Finance), "DEFENSA" (Defense), "INTERIOR", "TRABAJO" (Labor), "EDUCACION" (Education). Partial match, case-insensitive.

Date range monitoring

Set a date range to monitor specific periods. The BOE publishes Monday through Saturday (no Sunday edition). Perfect for daily or weekly monitoring of new regulations.

What data does BOE Scraper extract?

FieldTypeDescription
identificadorStringBOE document ID (e.g., BOE-A-2026-10986)
tituloStringFull document title in Spanish
seccionStringBOE section name
departamentoStringIssuing department or ministry
epigrafeStringSubject heading (e.g., "Medidas urgentes")
fechaPublicacionStringPublication date (YYYY-MM-DD)
numeroDiarioStringDaily issue number
urlPdfStringDirect PDF download link
urlHtmlStringHTML version link
urlXmlStringXML version link
paginaInicialStringStarting page in the printed edition
paginaFinalStringEnding page in the printed edition
controlStringInternal reference number
urlStringDirect link to BOE document
scrapedAtStringISO timestamp of extraction

Example output

{
"identificador": "BOE-A-2026-10986",
"titulo": "Resolucion de 20 de mayo de 2026, del Congreso de los Diputados, por la que se ordena la publicacion del Acuerdo de convalidacion del Real Decreto-ley 10/2026",
"seccion": "I. Disposiciones generales",
"departamento": "CORTES GENERALES",
"epigrafe": "Medidas urgentes",
"fechaPublicacion": "2026-05-22",
"numeroDiario": "125",
"urlPdf": "https://www.boe.es/boe/dias/2026/05/22/pdfs/BOE-A-2026-10986.pdf",
"urlHtml": "https://www.boe.es/diario_boe/txt.php?id=BOE-A-2026-10986",
"urlXml": "https://www.boe.es/diario_boe/xml.php?id=BOE-A-2026-10986",
"paginaInicial": "69602",
"paginaFinal": "69602",
"control": "2026/8251",
"url": "https://www.boe.es/diario_boe/txt.php?id=BOE-A-2026-10986",
"scrapedAt": "2026-05-23T10:00:00.000Z"
}

Use cases

  • Legal compliance monitoring -- Track new regulations affecting your industry by section and keyword.
  • Public procurement -- Monitor section V.A for new government contract opportunities.
  • HR and recruitment -- Follow section II.B for public exam announcements (oposiciones).
  • Academic research -- Build a corpus of Spanish legislation over time.
  • Government affairs -- Track ministerial appointments and institutional changes.

Tips for best results

  • Daily monitoring: Set dateFrom and dateTo to the same date for a single day's gazette.
  • Multi-day scan: Use a date range to catch up on recent publications.
  • Procurement focus: Set section to "5A" to only see public procurement announcements.
  • Scheduled runs: Run daily to build a comprehensive database of Spanish legislation.

How much does it cost?

Search sizeEstimated timeEstimated cost
1 day (20-80 items)~3 seconds~$0.002
1 week (~200 items)~10 seconds~$0.008
1 month (~1,000 items)~1 minute~$0.05

Can I use it as an API?

from apify_client import ApifyClient
client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("studio-amba/boe-scraper").call(run_input={
"searchQuery": "vivienda",
"section": "1",
"dateFrom": "2026-05-01",
"dateTo": "2026-05-22",
"maxResults": 50,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(f"{item['identificador']} | {item['titulo'][:80]}")

Limitations

  • The BOE API returns summaries by date. Keyword filtering is done client-side after fetching.
  • No Sunday editions -- the BOE is not published on Sundays.
  • Very large date ranges (months) will make many API calls; use maxResults to cap output.

Other Spanish data scrapers

Your feedback

Found a bug or want a feature? Open an issue on the Issues tab.