# Spain Public Sector Jobs & Oposiciones (BOE) (`kstro/empleo-publico-espana`) Actor

Oposiciones, plazas y concursos de empleo público en España (Estado, CCAA, universidades y ayuntamientos) desde el BOE: plazas, sistema de acceso, municipio, provincia y fecha límite de solicitud.

- **URL**: https://apify.com/kstro/empleo-publico-espana.md
- **Developed by:** [Kstro Data](https://apify.com/kstro) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 announcements

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 Sector Jobs & Oposiciones (BOE)

**ES:** Todas las **oposiciones, plazas y concursos de empleo público** que se publican cada día en el BOE (Estado, comunidades autónomas, universidades, ayuntamientos, diputaciones y cabildos), ya ordenadas: cuántas plazas, de qué, en qué municipio y provincia, por qué sistema (oposición, concurso-oposición, concurso, libre designación) y **hasta qué día te puedes presentar**.

**EN:** Every Spanish public-sector job call published in the Official State Gazette (BOE section II.B), structured: number of posts, job title, municipality and province, selection system and an estimated application deadline.

### Qué obtienes / What you get

Por cada anuncio: fecha, tipo (convocatoria nueva, nuevo plazo, admitidos, tribunal, resolución, corrección…), administración, organismo, entidad, municipio, provincia, cuerpo o escala, **lista de plazas** (número, denominación, sistema, turno, funcionario o laboral), número total de plazas, plazo en el texto oficial (p. ej. "veinte días hábiles"), **fecha límite estimada**, si el plazo sigue abierto, boletín donde están las bases y enlaces oficiales (HTML y PDF).

### Para quién / Who it's for

- Academias y preparadores de oposiciones que avisan a sus alumnos.
- Portales y newsletters de empleo público, sindicatos y colegios profesionales.
- Orientadores laborales, servicios de empleo y bibliotecas.
- Opositores que quieren una alerta diaria filtrada por provincia y puesto.

### Cómo usarlo / How to use

1. Escribe palabras clave (p. ej. `policía local`, `auxiliar administrativo`, `enfermería`).
2. Elige el periodo, la administración y, si quieres, la provincia.
3. Marca "Solo con plazo abierto" para quedarte con lo que aún se puede pedir.
4. Programa una ejecución diaria en Apify y recibe el resultado por correo, Google Sheets, Slack o webhook.

### Ejemplo de entrada / Example input

```json
{"palabrasClave": ["policía local"], "diasAtras": 30, "administraciones": ["LOCAL"], "provincia": "Madrid", "soloPlazoAbierto": true}
```

### Precio / Pricing

Pago por resultado: solo pagas por cada anuncio entregado.

### Origen de los datos y aviso / Data source and notice

- Datos de la Agencia Estatal Boletín Oficial del Estado (sección II.B, Oposiciones y concursos), obtenidos de su API de datos abiertos y reutilizados conforme a la Ley 37/2007 de reutilización de la información del sector público. Cada resultado indica su origen, su fecha de publicación y el enlace oficial.
- Herramienta independiente: no está patrocinada ni avalada por ninguna administración pública.
- No se extraen datos personales: ni listas de admitidos o aprobados ni nombres de personas. Del texto oficial solo se leen las plazas, el sistema y el plazo.
- La **fecha límite es una estimación**: cuenta desde el día siguiente a la publicación en el BOE y solo descuenta fines de semana y festivos nacionales (no los autonómicos ni locales). Comprueba siempre las bases oficiales antes de presentarte. Esto no es asesoramiento jurídico.

# Actor input Schema

## `palabrasClave` (type: `array`):

Se buscan en el título, el cuerpo o escala, la entidad y el nombre de las plazas. Vacío = todo. Ejemplos: policía local, auxiliar administrativo, enfermería, ingeniero, profesor titular.

## `diasAtras` (type: `integer`):

Anuncios publicados en el BOE en los últimos N días (si no se indican fechas).

## `fechaDesde` (type: `string`):

Opcional. Sustituye a Días hacia atrás.

## `fechaHasta` (type: `string`):

Opcional. Por defecto, hoy.

## `tiposAnuncio` (type: `array`):

Qué anuncios quieres. Por defecto, solo los que abren plazo para presentarse. Vacío = todos.

## `administraciones` (type: `array`):

Vacío = todas.

## `provincia` (type: `string`):

Opcional. Filtra por provincia, municipio o comunidad. Ejemplos: Madrid, A Coruña, Sevilla, Galicia.

## `soloPlazoAbierto` (type: `boolean`):

Quita los anuncios cuya fecha límite estimada ya pasó. Los que no indican plazo se mantienen.

## `detalle` (type: `boolean`):

Lee el texto oficial de cada convocatoria para sacar las plazas, el sistema de acceso y el plazo. Algo más lento, pero mucho más útil.

## `maxResultados` (type: `integer`):

Número máximo de anuncios que se devuelven (y se cobran).

## `comprobacion` (type: `boolean`):

Solo para el mantenimiento: comprueba que el BOE responde y que se leen las plazas; no devuelve resultados.

## Actor input object example

```json
{
  "diasAtras": 7,
  "tiposAnuncio": [
    "convocatoria",
    "nuevoPlazo"
  ],
  "soloPlazoAbierto": false,
  "detalle": true,
  "maxResultados": 100,
  "comprobacion": false
}
```

# Actor output Schema

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

// Run the Actor and wait for it to finish
const run = await client.actor("kstro/empleo-publico-espana").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("kstro/empleo-publico-espana").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 kstro/empleo-publico-espana --silent --output-dataset

```

## MCP server setup

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

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/bgUewp2GoAx4fIP8z/builds/GwAYiNwheF4OJPc30/openapi.json
