# Spain Public Employment Vacancies and Oposiciones (BOE II.B) (`innovito/empleo-publico-boe`) Actor

Official Spanish public-employment vacancies and oposiciones notices from section II.B of the BOE Open Data API. Structured rows with official PDF/HTML links. Never includes applicant lists, grades or appointments.

- **URL**: https://apify.com/innovito/empleo-publico-boe.md
- **Developed by:** [Asier Sanchez](https://apify.com/innovito) (community)
- **Categories:** Jobs, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 public employment vacancies

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 Public Employment Vacancies and Oposiciones (BOE section II.B)

Get official **Spanish public-sector vacancies** (empleo público / oposiciones) published in the Official State Gazette as clean JSON or CSV rows.

The Actor reads the **official BOE Open Data API**. No HTML scraping and no login. It only keeps **section 2B** employment notices (concursos, oposiciones, convocatorias). It **never stores applicant lists** (admitidos, excluidos, aprobados) and does not request appointments (section 2A).

Ideal for job boards, oposiciones tools, public-employment alerts and AI/MCP or n8n agents that need the official convocatoria.

### What you get

| Field | Description |
|---|---|
| `noticeId` | Official BOE identifier (`BOE-A-…`) |
| `publicationDate`, `gazetteNumber` | Gazette date and issue number |
| `department`, `epigraph` | Issuing body and heading |
| `title` | Official title (honourifics + names replaced with `[nombre omitido]` when detected) |
| `kind` | `convocatoria`, `concurso`, `oposicion`, `bases` or `otro` |
| `personalDataRedacted` | `true` when a name pattern was replaced |
| `htmlUrl`, `pdfUrl` | Official links on boe.es (the Actor does not fetch disallowed `xml.php` routes) |
| `sourceAttribution` | Required credit line |

### Input example

```json
{
  "dateFrom": "2026-11-17",
  "dateTo": "2026-11-17",
  "keywords": ["oposiciones", "profesor"],
  "maxItems": 15
}
```

If `dateFrom` is empty, `lookbackDays` (default 14, maximum 62) is counted back from `dateTo` or today.

### Output example

```json
{
  "noticeId": "BOE-A-2026-22800",
  "controlNumber": "22800",
  "publicationDate": "2026-11-17",
  "gazetteNumber": "276",
  "department": "Ministerio para la Transformación Digital y de la Función Pública",
  "epigraph": "Cuerpo de Gestión de la Administración Civil del Estado. Oposición",
  "title": "Resolución por la que se convoca proceso selectivo para ingreso, por el sistema general de acceso libre, en el Cuerpo de Gestión",
  "kind": "oposicion",
  "personalDataRedacted": false,
  "htmlUrl": "https://www.boe.es/diario_boe/txt.php?id=BOE-A-2026-22800",
  "pdfUrl": "https://www.boe.es/boe/dias/2026/11/17/pdfs/BOE-A-2026-22800.pdf",
  "source": "boe",
  "sourceAttribution": "Fuente: Boletín Oficial del Estado (AEBOE). https://www.boe.es",
  "scrapedAt": "2026-11-23T21:00:00+00:00"
}
```

### Python example (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("innovito/empleo-publico-boe").call(
    run_input={
        "dateFrom": "2026-11-17",
        "dateTo": "2026-11-17",
        "keywords": ["oposiciones", "profesor"],
        "maxItems": 15,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["publicationDate"], item["kind"], item["title"])
```

### Pricing

Pay-per-event: $2.00 per 1,000 vacancies written to the dataset, plus $0.00005 per Actor start. You are not charged for platform compute.

### Data source and terms

- API: `https://www.boe.es/datosabiertos/api/boe/sumario/{YYYYMMDD}` ([Open Data portal](https://www.boe.es/datosabiertos/)).
- Reuse is subject to the [AEBOE legal notice](https://www.boe.es/informacion/aviso_legal/index.php#reutilizacion). Credit the Agencia Estatal Boletín Oficial del Estado. Do not present this Actor as an official BOE product.
- The Actor only calls the Open Data API. It does not request `/diario_boe/xml.php` (disallowed by `robots.txt`).
- Only section 2B. Applicant lists (admitidos, excluidos, aprobados) are skipped. Section 2A (nombramientos) is never requested.

***

## Empleo público y oposiciones de España (BOE, sección II.B)

Extrae las **vacantes de empleo público** (concursos, oposiciones, convocatorias) publicadas en el Boletín Oficial del Estado en filas JSON o CSV.

Usa la **API oficial de datos abiertos del BOE**. Sin scraping HTML ni inicio de sesión. Solo conserva los anuncios de **empleo público de la sección 2B**. **No guarda listas de aspirantes** (admitidos, excluidos, aprobados) y no pide nombramientos (sección 2A).

Ideal para portales de empleo, herramientas de oposiciones, alertas de función pública y agentes de IA, MCP o n8n que necesitan la convocatoria oficial.

### Qué devuelve

| Campo | Descripción |
|---|---|
| `noticeId` | Identificador oficial del BOE (`BOE-A-…`) |
| `publicationDate`, `gazetteNumber` | Fecha y número del boletín |
| `department`, `epigraph` | Órgano emisor y epígrafe |
| `title` | Título oficial (tratamientos y nombres sustituidos por `[nombre omitido]` si se detectan) |
| `kind` | `convocatoria`, `concurso`, `oposicion`, `bases` u `otro` |
| `personalDataRedacted` | `true` si se sustituyó un patrón de nombre |
| `htmlUrl`, `pdfUrl` | Enlaces oficiales en boe.es (el Actor no llama a `xml.php`) |
| `sourceAttribution` | Línea de atribución obligatoria |

### Ejemplo de entrada

```json
{
  "dateFrom": "2026-11-17",
  "dateTo": "2026-11-17",
  "keywords": ["oposiciones", "profesor"],
  "maxItems": 15
}
```

Si no hay `dateFrom`, se usan `lookbackDays` (14 por defecto, máximo 62) hasta `dateTo` o hoy.

### Ejemplo de salida

```json
{
  "noticeId": "BOE-A-2026-22800",
  "publicationDate": "2026-11-17",
  "department": "Ministerio para la Transformación Digital y de la Función Pública",
  "title": "Resolución por la que se convoca proceso selectivo para ingreso, por el sistema general de acceso libre, en el Cuerpo de Gestión",
  "kind": "oposicion",
  "pdfUrl": "https://www.boe.es/boe/dias/2026/11/17/pdfs/BOE-A-2026-22800.pdf",
  "sourceAttribution": "Fuente: Boletín Oficial del Estado (AEBOE). https://www.boe.es"
}
```

### Ejemplo en Python (`apify-client`)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("innovito/empleo-publico-boe").call(
    run_input={
        "dateFrom": "2026-11-17",
        "dateTo": "2026-11-17",
        "keywords": ["oposiciones", "profesor"],
        "maxItems": 15,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["publicationDate"], item["kind"], item["title"])
```

### Precio

Pago por uso: 2,00 $ por cada 1.000 vacantes escritas en el dataset, más 0,00005 $ por arranque. No se cobra el cómputo de la plataforma.

### Origen y condiciones

- API: `https://www.boe.es/datosabiertos/api/boe/sumario/{YYYYMMDD}` ([portal de datos abiertos](https://www.boe.es/datosabiertos/)).
- Reutilización sujeta al [aviso legal de la AEBOE](https://www.boe.es/informacion/aviso_legal/index.php#reutilizacion). Hay que citar al Boletín Oficial del Estado. Este Actor no es un producto oficial del BOE.
- Solo llama a la API de datos abiertos. No solicita `/diario_boe/xml.php` (lo prohíbe `robots.txt`).
- Solo sección 2B. Se omiten las listas de aspirantes (admitidos, excluidos, aprobados). La sección 2A (nombramientos) no se pide nunca.

# Actor input Schema

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

First gazette date (YYYY-MM-DD). If empty, the Actor looks back <code>lookbackDays</code> from the end date.

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

Last gazette date (YYYY-MM-DD). Defaults to today (UTC). Days with no BOE issue are skipped.

## `lookbackDays` (type: `integer`):

When <code>dateFrom</code> is empty, how many days to request ending at <code>dateTo</code>. Capped at 62.

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

Keep only notices whose title, department or epigraph contains one of these words, e.g. <code>ayuntamiento</code>, <code>concurso</code>, <code>enfermería</code>. Other typical Spanish queries: <code>oposiciones</code>, <code>empleo público</code>, <code>Cataluña</code>.

## `maxItems` (type: `integer`):

Stop after this many notices. 0 = no limit.

## Actor input object example

```json
{
  "lookbackDays": 7,
  "maxItems": 0
}
```

# Actor output Schema

## `vacancies` (type: `string`):

Dataset of official Spanish public-employment and competitive-examination notices (oposiciones y concursos) from BOE section II.B (one row per convocatoria). Applicant lists, grades and appointments are not included.

## `runStats` (type: `string`):

RUN_STATS record: days requested, vacancies found and pushed, personal lists skipped.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("innovito/empleo-publico-boe").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("innovito/empleo-publico-boe").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 '{}' |
apify call innovito/empleo-publico-boe --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,innovito/empleo-publico-boe"
        }
    }
}
```

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/iDs4cPg30w9CXwTt0/builds/0QZxBvRpVLp0cESeE/openapi.json
