Discover/boe.es API
live

boe.es APIboe.es

Access Spain's BOE via API: daily publication summaries, consolidated legislation, full law text, metadata, and classification codes in structured JSON.

Endpoints
5
Updated
3mo ago
Try it
Publication date in YYYYMMDD format (e.g. 20260513).
api.parse.bot/scraper/31fe9c4b-11e6-4739-b3d7-26a873d6c255/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/31fe9c4b-11e6-4739-b3d7-26a873d6c255/get_daily_summary?date=20260513' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 5 totalclick to expand

Get the summary of all documents published on a specific date in the BOE. Returns sections, departments, and individual items with identifiers, titles, and links to PDF/HTML/XML versions.

Input
ParamTypeDescription
daterequiredstringPublication date in YYYYMMDD format (e.g. 20260513).
Response
{
  "type": "object",
  "fields": {
    "data": "object containing sumario with metadatos, diario sections, departments, and items",
    "status": "object containing upstream API status code and text"
  },
  "sample": {
    "data": {
      "data": {
        "sumario": {
          "diario": [
            {
              "numero": "116",
              "seccion": [
                {
                  "codigo": "1",
                  "nombre": "I. Disposiciones generales",
                  "departamento": [
                    {
                      "codigo": "7723",
                      "nombre": "JEFATURA DEL ESTADO",
                      "epigrafe": [
                        {
                          "item": {
                            "titulo": "Real Decreto-ley 11/2026, de 12 de mayo...",
                            "identificador": "BOE-A-2026-10324"
                          },
                          "nombre": "Medidas urgentes"
                        }
                      ]
                    }
                  ]
                }
              ],
              "sumario_diario": {
                "identificador": "BOE-S-2026-116"
              }
            }
          ],
          "metadatos": {
            "publicacion": "BOE",
            "fecha_publicacion": "20260513"
          }
        }
      },
      "status": {
        "code": "200",
        "text": "ok"
      }
    },
    "status": "success"
  }
}

About the boe.es API

This API exposes 5 endpoints covering Spain's Boletín Oficial del Estado (BOE), returning daily publication summaries, consolidated legislation listings, detailed law metadata, structured full-text, and auxiliary classification codes. Starting with get_daily_summary, you can retrieve every document published on a given date — sections, departments, individual items, and links to PDF, HTML, and XML versions — all as structured JSON.

Daily Publications and Legislation Lists

get_daily_summary accepts a date parameter in YYYYMMDD format and returns the full sumario object for that date, including metadatos, diario sections, departments, and individual items with their BOE identifiers, titles, and document links. get_consolidated_legislation_list takes no parameters and returns the complete index of consolidated legislation entries — each with an identifier, title, relevant dates, scope, originating department, and URLs.

Law Detail and Full Text

Once you have a BOE identifier (e.g., BOE-A-2015-9140) from the legislation list, get_law_details returns the law's metadatos, analisis block (subject matters and cross-references to other laws), and ELI metadata. get_law_text uses the same id parameter and delivers the law's content as a texto object containing a bloque array — structured blocks covering the preamble, titles, articles, and other divisions in document order.

Auxiliary Classification Codes

get_auxiliary_data maps the numeric code system used throughout BOE documents to human-readable names. The optional type parameter accepts rangos (law types such as Real Decreto or Ley Orgánica), departamentos (ministry and agency names), or materias (subject classifications). The response is a flat object where each key is a numeric code string and each value is the corresponding descriptive label — useful for decoding the codes that appear in get_daily_summary and get_law_details responses.

Common use cases
  • Monitor daily BOE publications by date to detect new regulations affecting a specific department or subject area.
  • Build a consolidated legislation index by syncing get_consolidated_legislation_list to a database and enriching each entry with metadata from get_law_details.
  • Extract cross-references between laws using the analisis block in get_law_details to map legislative dependencies.
  • Retrieve full article-level text of a specific law via get_law_text for ingestion into legal research or contract analysis tools.
  • Decode BOE classification codes using get_auxiliary_data to translate rangos or materias codes into readable labels for display or filtering.
  • Track which ministries (departamentos) publish the most documents on a given date by parsing the diario sections in get_daily_summary.
  • Generate compliance alerts by scanning daily summaries for items from specific departments or matching subject matter codes.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does BOE have an official developer API?+
Yes. The Agencia Estatal Boletín Oficial del Estado publishes an open data API documented at https://boe.es/datosabiertos/documentos/boeDatosTecnicos.pdf. The Parse API surfaces that data in a consistent JSON structure with a single authentication layer.
What does get_daily_summary return and how granular is it?+
get_daily_summary returns a sumario object organised into diario sections, then departments, then individual items. Each item includes its BOE identifier, title, and links to the PDF, HTML, and XML versions of that document. It covers everything published on the requested date — legislative acts, announcements, and other official notices.
Can I search for laws by keyword or subject matter through this API?+
Not currently. The API covers retrieval by date (get_daily_summary), the full consolidated index (get_consolidated_legislation_list), and lookup by BOE identifier (get_law_details, get_law_text). There is no keyword or full-text search endpoint. You can fork this API on Parse and revise it to add a search endpoint if the underlying source exposes that capability.
Does get_law_text return the complete text of any BOE document, or only consolidated laws?+
get_law_text operates on consolidated legislation identifiers obtained from get_consolidated_legislation_list. It covers the structured text of those consolidated laws. Non-consolidated documents (e.g., individual daily announcements or resolutions) are accessible as PDF/HTML/XML links via get_daily_summary but their text content is not parsed by this API. You can fork it on Parse and revise to add a plain-document text endpoint.
Are historical BOE publications accessible, and how far back does coverage go?+
get_daily_summary accepts any valid YYYYMMDD date that the BOE open data service covers. The official BOE open data availability starts from 2009-01-02 for machine-readable summaries. Dates outside the supported range will return an error from the upstream status field rather than an empty result.
Page content last updated . Spec covers 5 endpoints from boe.es.
Related APIs in Government PublicSee all →
identify.plantnet.org API
Identify and explore plant species by searching through Pl@ntNet's comprehensive botanical database to access detailed information like taxonomic families, genera, species descriptions, photos, and community observations. Track plant distributions, view contribution trends, and discover expert contributors within the platform's collaborative plant identification community.
data.lime.bike API
Access real-time availability data for Lime bikes and scooters, including station locations, vehicle status, system alerts, and geofencing zones across multiple cities. Monitor micromobility inventory and service information to find nearby vehicles or plan your trips effectively.
accessdata.fda.gov API
Search and retrieve comprehensive FDA premarket approval information for medical devices, including approval status, supplements, applicant details, and advisory committee data. Get instant access to specific PMA records with all relevant approval information in one place.
eprocurement.gov API
Monitor India's public procurement opportunities by accessing active tenders, bids closing today, global tenders, high-value contracts, and cancelled tenders from the Central Public Procurement Portal. Search tender details, browse participating organizations, and track real-time procurement statistics to stay informed on government contracting opportunities.
cmegroup.com API
Get CME Group market data including FedWatch interest-rate probabilities, futures quotes and settlements, volume/open interest history, and options expirations and near-the-money option chains.
alienvault.com API
Search and analyze global threat intelligence data including indicators of compromise, threat pulses, and adversary profiles from the Open Threat Exchange community. Monitor recent security alerts and access detailed information about threats and adversaries to strengthen your cybersecurity defenses.
api.nasa.gov API
Access NASA's suite of open data APIs — including the Astronomy Picture of the Day, Near Earth Object tracking, DONKI space weather events, EPIC Earth imagery, Mars weather, the NASA Image and Video Library, the Exoplanet Archive, and EONET natural events.
mahatenders.gov.in API
Access Maharashtra government tenders from mahatenders.gov.in, browsing them by closing date or by organization with full tender details and pagination support. Find and review procurement opportunities across different government departments in one place.