# Andalusia BOJA Gazette Scraper (`spain-data/andalucia-boja-legislation`) Actor

Get new dispositions from the BOJA (Boletín Oficial de la Junta de Andalucía) via the official open data API: decrees, orders, resolutions, public exams, grants and notices. Filter by keyword, section, type and issuing body.

- **URL**: https://apify.com/spain-data/andalucia-boja-legislation.md
- **Developed by:** [Roberto Valera Calatrava](https://apify.com/spain-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 dispositions

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Andalusia BOJA Gazette Scraper (Boletín Oficial de la Junta de Andalucía)

Get new dispositions published in the **BOJA (Boletín Oficial de la Junta de Andalucía)** as clean structured data: decrees, orders, resolutions, agreements, public exams and job calls, grants, notices and announcements. Everything comes from the **official open data API of the Junta de Andalucía**, updated daily.

Filter by **keyword, section, disposition type and issuing body**, and get JSON (or CSV/Excel) ready for alerts, spreadsheets, CRMs and AI pipelines.

> Disposiciones del BOJA: decretos, órdenes, resoluciones, oposiciones, ayudas y anuncios de la Junta de Andalucía, filtrados y listos para usar.

### What does Andalusia BOJA Gazette Scraper do?

- Queries the **official BOJA open data API** of the Junta de Andalucía (no fragile HTML scraping).
- Returns each disposition with **publication date, bulletin number, section and subsection, type, issuing body, summary, link to the official page and link to the PDF**.
- Optionally adds the **full plain text** of each disposition.
- Lets you filter by **keyword** (accents ignored), **section**, **type** (Decreto, Orden, Resolución...) and **issuing body** (Consejería, university, city council...).
- Works for a daily alert or for a historical export (the open data archive goes back to 2007).

### Who is it for?

| You are... | Use it to... |
| --- | --- |
| A law firm or legal department working in Andalusia | Track new regional decrees and orders in your practice areas. |
| A company or association in a regulated sector | Get an alert when the Junta regulates housing, tourism, agriculture, health, energy... |
| A grants or funding consultancy | Catch new aid programmes and calls (ayudas, subvenciones) the day they are published. |
| An academy or job portal | Monitor public exams and job calls (oposiciones, bolsas de empleo) in section 2. |
| A legal tech or AI company | Build a corpus of Andalusian regional legislation with full text. |

### How to use it

1. Click **Try for free** (or **Start**).
2. Optionally enter **keywords** (for example `vivienda`, `turismo`, `subvenciones`), choose **sections**, **types** or **issuing bodies**.
3. Choose **Days back** (default 7) or set a date range.
4. Click **Start** and download the results as JSON, CSV, Excel or HTML, or connect an integration.

#### Get a daily BOJA alert (recommended)

1. Save your filters as a **Task** with *Days back = 1*.
2. Add a **Schedule** to run it every weekday afternoon (the BOJA is published on weekdays).
3. Connect an integration (Google Sheets, Slack, email, Zapier, Make or a webhook).

### Input examples

New decrees and orders (general provisions) from the last week:

```json
{
  "sections": ["1"],
  "daysBack": 7
}
```

Public exams and job calls from the Andalusian Health Service:

```json
{
  "sections": ["2"],
  "organisations": ["Servicio Andaluz de Salud"],
  "daysBack": 30
}
```

Housing grants and aid in 2026, with full text:

```json
{
  "keywords": ["vivienda"],
  "types": ["Orden", "Resolución"],
  "startDate": "2026-01-01",
  "includeFullText": true
}
```

### Input fields

| Field | Description |
| --- | --- |
| Keywords | Words to look for in the summary or issuing body (accents ignored). |
| Exclude keywords | Skip dispositions containing these words. |
| BOJA sections | 0 State provisions, 1 General provisions, 2 Appointments and staff, 3 Other provisions, 4 Administration of Justice, 5 Notices. |
| Disposition types | Decreto, Orden, Resolución, Acuerdo, Anuncio... (partial match). |
| Issuing bodies | Part of the issuing body's name, matched against the issuing body and the summary, e.g. `Consejería de Salud`, `Servicio Andaluz de Salud`, `Universidad de Granada`, `Ayuntamiento de Málaga`. |
| Days back | Dispositions published in the last N days (default 7). |
| Start / end date | Optional publication date range (archive since 2007). |
| Include full text | Add the full plain text of each disposition. |
| Maximum results | Stop after N dispositions. |

### Output example

```json
{
  "id": "disposition.2026.219.2",
  "fechaPublicacion": "2026-11-12",
  "anio": 2026,
  "boletin": 219,
  "numeroDisposicion": 2,
  "seccion": "2. Autoridades y personal",
  "subseccion": "2.2. Oposiciones, concursos y otras convocatorias",
  "tipo": "Resoluciones",
  "organismo": "Universidades",
  "sumario": "Resolución de 5 de noviembre de 2026, de la Universidad de Granada, por la que se convoca concurso público para la adjudicación de contratos de Profesorado Permanente Laboral.",
  "urlHtml": "https://www.juntadeandalucia.es/boja/2026/219/2",
  "urlPdf": "https://juntadeandalucia.es/eboja/2026/219/BOJA26-219-00023-14758-01_00345987.pdf"
}
```

With *Include full text*, each item also has a `textoCompleto` field.

### How much does it cost?

You pay **only for the dispositions you get**: **$5 per 1,000 results** (half a cent per disposition), with discounts on Apify's paid plans. Platform usage is included, also with full text.

| Typical use | Approximate cost |
| --- | --- |
| Daily alert with ~10 matching dispositions | about $0.05 per day (~$1 per month) |
| Every disposition for one week (~200) | about $1 |
| Every disposition for a full year (~10,000) | about $50 |

Apify's free plan includes monthly credits, so you can try it at no cost.

### FAQ

**Where does the data come from?**
From the official BOJA open data API published by the Junta de Andalucía on its open data portal (dataset *BOJA - Disposiciones*), updated daily.

**Which dispositions are included?**
All sections of the bulletin: state provisions, general provisions, appointments and staff, other provisions, Administration of Justice and notices.

**How far back does it go?**
The open data archive starts in 2007. Use a start and end date for historical exports.

**Can I search in English?**
Dispositions are in Spanish, so use Spanish keywords, or filter by section, type and issuing body.

**Does it include personal data?**
The BOJA is an official public gazette and some dispositions (for example appointments or exam results) name people. If you store or reuse that data, you are responsible for complying with data protection rules (GDPR).

### Data source

Data: Junta de Andalucía open data portal, dataset *BOJA - Disposiciones*, licensed under **Creative Commons Attribution 4.0 (CC BY 4.0)**. Source: Junta de Andalucía.

This Actor is not affiliated with or endorsed by the Junta de Andalucía.

### Related Actors

- **[Spain BOE Legislation Scraper](https://apify.com/spain-data/spain-boe-legislation)**: new Spanish state laws, decrees and orders from the BOE, with legal metadata and full text.
- **[Catalonia DOGC Legislation Scraper](https://apify.com/spain-data/catalonia-dogc-legislation)**: new Catalan laws, decrees and orders from the DOGC, in Catalan and Spanish.
- **[Spain Public Tenders Scraper](https://apify.com/spain-data/spain-public-tenders)**: Spanish public tenders (licitaciones), including regional platforms such as Andalucía's.

### Feedback

Found a bug or need a new field or filter? Open an issue in the **Issues** tab and it will be looked at quickly.

***

**Resumen en español:** obtén las disposiciones del BOJA (decretos, órdenes, resoluciones, oposiciones, ayudas y anuncios) desde la API oficial de datos abiertos de la Junta de Andalucía. Filtra por palabras clave, sección, tipo y organismo, con enlace al PDF y texto completo opcional. Ideal para alertas diarias, despachos, consultoras de subvenciones y portales de empleo público.

# Actor input Schema

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

Return only dispositions whose summary or issuing body contains at least one of these words (Spanish, accents and case ignored). Leave empty for everything.

## `excludeKeywords` (type: `array`):

Skip dispositions containing any of these words.

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

Only these sections of the bulletin. Leave empty for all.

## `types` (type: `array`):

Only these types, e.g. Decreto, Orden, Resolución, Acuerdo, Anuncio (partial match, accents ignored).

## `organisations` (type: `array`):

Only dispositions whose issuing body or summary mentions one of these, e.g. Consejería de Salud, Servicio Andaluz de Salud, Universidad de Sevilla, Ayuntamiento de Málaga.

## `daysBack` (type: `integer`):

Dispositions published in the last N days, today included. Use 1 for a daily alert. Ignored if you set a start date.

## `startDate` (type: `string`):

Optional publication date range start (YYYY-MM-DD). The open data archive goes back to 2007.

## `endDate` (type: `string`):

Optional publication date range end (YYYY-MM-DD). Defaults to today.

## `includeFullText` (type: `boolean`):

Add the full plain text of each disposition (useful for AI, search and legal research).

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

Stop after this many matching dispositions.

## Actor input object example

```json
{
  "keywords": [
    "vivienda"
  ],
  "daysBack": 7,
  "includeFullText": false,
  "maxItems": 20
}
```

# Actor output Schema

## `results` (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 = {
    "keywords": [
        "vivienda"
    ],
    "daysBack": 7,
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("spain-data/andalucia-boja-legislation").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 = {
    "keywords": ["vivienda"],
    "daysBack": 7,
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("spain-data/andalucia-boja-legislation").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 '{
  "keywords": [
    "vivienda"
  ],
  "daysBack": 7,
  "maxItems": 20
}' |
apify call spain-data/andalucia-boja-legislation --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,spain-data/andalucia-boja-legislation"
        }
    }
}
```

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/B6zlGXeuFVQvPrZ3k/builds/SuNAj8QtTdHgbAU9l/openapi.json
