BOE Spain Official Gazette Scraper
Pricing
Pay per usage
BOE Spain Official Gazette Scraper
Fetches daily summaries from Boletín Oficial del Estado open data JSON API with section and keyword filters.
Pricing
Pay per usage
Rating
0.0
(0)
Developer
Rastriq
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
2 days ago
Last modified
Categories
Share
Fetches daily summaries from the Boletín Oficial del Estado (BOE) open data JSON API. Extracts all published items with section, department, title, and links to PDF/HTML/XML versions.
No browser required. Uses BOE's official open data API — fast, structured, and reliable.
What does it do?
Queries the BOE API day by day within a date range, extracting every published item (laws, regulations, appointments, tenders, announcements). Supports filtering by BOE section codes and keyword search in titles.
Input parameters
| Parameter | Description | Default |
|---|---|---|
| daysBack | Number of days to fetch | 7 |
| desde/hasta | Date range in YYYYMMDD format (overrides daysBack) | - |
| secciones | Comma-separated section codes (e.g. 1,2A,5A) | all |
| keyword | Keyword filter on title (case-insensitive) | - |
| maxItems | Max items to return (0 = unlimited) | 0 |
Output fields
| Field | Description |
|---|---|
| identificador | BOE item identifier |
| control | Control code |
| titulo | Full title of the item |
| url_html | Link to HTML version |
| url_xml | Link to XML version |
| url_pdf | Link to PDF version |
| seccion_codigo | Section code (1, 2A, 2B, 3, 4, 5A, 5B) |
| seccion_nombre | Section name |
| departamento_codigo | Department code |
| departamento_nombre | Department name |
| epigrafe_nombre | Subsection heading |
| fecha_publicacion | Publication date |
| diario_numero | Gazette number |
Example input
{"daysBack": 30,"secciones": "5A","keyword": "licitación"}
Notes
- BOE does not publish on Sundays and public holidays (returns empty for those days)
- API returns 404 for dates with no gazette; the scraper handles this gracefully
- Includes 0.3s delay between daily requests to respect the API