# Spain BOE & BORME Daily Bulletin Search (`opendata-forge/boe-borme-daily-search`) Actor

Get every entry from Spain's Boletín Oficial del Estado (BOE) and the Boletín Oficial del Registro Mercantil (BORME) for a date range, filtered by keyword and section, as clean structured data (JSON, CSV, Excel).

- **URL**: https://apify.com/opendata-forge/boe-borme-daily-search.md
- **Developed by:** [OpenData Forge](https://apify.com/opendata-forge) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Spain BOE & BORME Daily Bulletin Search

Get every entry from Spain's **BoletÃ­n Oficial del Estado (BOE)** and the **BoletÃ­n Oficial del Registro Mercantil (BORME)** for a date range, filtered by keyword and section, as clean structured data (JSON, CSV, Excel).

Data comes from the official, free BOE open-data API (`https://www.boe.es/datosabiertos/api/`). No login, no scraping of HTML pages.

### Use cases

- Daily monitoring of **subsidies (subvenciones)**, public job calls (oposiciones), regulations and notices for your sector or region
- Tracking **BORME** company-register publications by province
- Feeding alerts into Slack, email, n8n, Make or Zapier
- Compliance and legal research archives

### Input

| Field | Description |
|---|---|
| `bulletins` | `BOE`, `BORME` or both |
| `dateFrom` / `dateTo` | YYYY-MM-DD, default last 7 days (max 366 days per run) |
| `keywords` | Case-insensitive; matches title, department, heading or section (any keyword) |
| `sections` | Optional codes, e.g. `1`, `2B`, `3`, `5A` (BOE) or `A`, `B`, `C` (BORME) |
| `maxResults` | Cap on items returned |

### Output (one item per bulletin entry)

```json
{"bulletin":"BOE","date":"2026-10-16","id":"BOE-A-2026-21526","title":"Real Decreto 830/2026 ... concesiÃ³n directa de una subvenciÃ³n ...","section":"1 I. Disposiciones generales","sectionCode":"1","department":"MINISTERIO PARA LA TRANSICIÃ“N ECOLÃ“GICA Y EL RETO DEMOGRÃFICO","heading":"Subvenciones","pdfUrl":"https://www.boe.es/boe/dias/2026/10/16/pdfs/BOE-A-2026-21526.pdf","htmlUrl":"https://www.boe.es/diario_boe/txt.php?id=BOE-A-2026-21526","xmlUrl":"https://www.boe.es/diario_boe/xml.php?id=BOE-A-2026-21526"}
```

### Pricing

Pay per result: you only pay for entries returned. Days with no issue (e.g. Sundays for BORME) cost nothing.

### Notes

Source: Agencia Estatal BoletÃ­n Oficial del Estado, reused under its open-data reuse conditions (https://www.boe.es/datosabiertos/). This Actor is not affiliated with the BOE. Official versions are the PDFs linked in each item.

# Actor input Schema

## `bulletins` (type: `array`):

BOE and/or BORME

## `dateFrom` (type: `string`):

YYYY-MM-DD. Defaults to the last 7 days.

## `dateTo` (type: `string`):

YYYY-MM-DD. Defaults to today.

## `keywords` (type: `array`):

Case-insensitive match on title, department or section (any keyword matches)

## `sections` (type: `array`):

Optional filter, e.g. 1, 2A, 3, 5A (BOE) or A, B, C (BORME)

## `maxResults` (type: `integer`):

Maximum number of items to return

## Actor input object example

```json
{
  "bulletins": [
    "BOE"
  ],
  "keywords": [
    "subvenciones"
  ],
  "maxResults": 200
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "bulletins": [
        "BOE"
    ],
    "keywords": [
        "subvenciones"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("opendata-forge/boe-borme-daily-search").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "bulletins": ["BOE"],
    "keywords": ["subvenciones"],
}

# Run the Actor and wait for it to finish
run = client.actor("opendata-forge/boe-borme-daily-search").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "bulletins": [
    "BOE"
  ],
  "keywords": [
    "subvenciones"
  ]
}' |
apify call opendata-forge/boe-borme-daily-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,opendata-forge/boe-borme-daily-search"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/h4l9cdTC0xG7OTbQA/builds/PATqJH7xtPLhDBipH/openapi.json
