{
  "openapi": "3.0.1",
  "info": {
    "title": "Andalusia BOJA Scraper — Junta Gazette Monitor & Alerts",
    "description": "Scrape the official gazette of Andalusia (BOJA) by keyword and section. Stateful delta mode: every run returns only what is new since the last one, ideal for daily alerts. Monitor incremental del Boletín Oficial de la Junta de Andalucía por palabra clave y sección.",
    "version": "0.1",
    "x-build-id": "JHzbDm8Yn0ILAaeRf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/xamto1987~spain-boja-gazette/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-xamto1987-spain-boja-gazette",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/xamto1987~spain-boja-gazette/runs": {
      "post": {
        "operationId": "runs-sync-xamto1987-spain-boja-gazette",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/xamto1987~spain-boja-gazette/run-sync": {
      "post": {
        "operationId": "run-sync-xamto1987-spain-boja-gazette",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "Palabras clave / Keywords",
            "type": "array",
            "description": "Terminos a vigilar en el titulo de cada disposicion del BOJA (busqueda por substring, sin distinguir mayusculas ni acentos). Vacio = se entrega TODO lo publicado en las secciones seleccionadas. / Terms to watch for in each BOJA entry's title; empty = everything in the selected sections.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "secciones": {
            "title": "Secciones del BOJA / BOJA sections",
            "type": "array",
            "description": "Ambito por seccion del BOJA. Vacio = todas. 0 = Disposiciones estatales; 1 = Disposiciones generales; 2.1 = Nombramientos, situaciones e incidencias; 2.2 = Oposiciones, concursos y otras convocatorias; 3 = Otras disposiciones; 4 = Administracion de justicia; 5.1 = Licitaciones publicas y adjudicaciones; 5.2 = Otros anuncios oficiales. / BOJA section scope; empty = all sections.",
            "items": {
              "type": "string",
              "enum": [
                "0",
                "1",
                "2.1",
                "2.2",
                "3",
                "4",
                "5.1",
                "5.2"
              ]
            },
            "default": []
          },
          "diasHaciaAtras": {
            "title": "Dias hacia atras / Days back",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Solo se usa en la PRIMERA ejecucion (define la ventana inicial) o cuando `soloNuevos` esta desactivado. Con `soloNuevos: true`, las ejecuciones posteriores continuan solas desde la ultima fecha procesada. Maximo 30. / Only used on the first run or when delta mode is off; later runs resume automatically.",
            "default": 1
          },
          "soloNuevos": {
            "title": "Solo nuevos (modo delta) / New items only (delta mode)",
            "type": "boolean",
            "description": "ACTIVADO POR DEFECTO. El actor recuerda en un key-value store CON NOMBRE que identificadores ya entrego y no los repite: cada ejecucion trae solo lo publicado desde la anterior. Desactivalo para volcar de nuevo toda la ventana de `diasHaciaAtras`. / ON by default: the actor remembers what it already delivered and only emits new entries each run.",
            "default": true
          },
          "incluirTextoCompleto": {
            "title": "Incluir texto integro / Include full text",
            "type": "boolean",
            "description": "DESACTIVADO POR DEFECTO. Anade el texto integro de cada disposicion (version HTML oficial del BOJA). Cuesta 1 peticion adicional por disposicion entregada, a 1 peticion/segundo. / OFF by default: adds each entry's full text (one extra request per entry).",
            "default": false
          },
          "maxItems": {
            "title": "Maximo de disposiciones / Max entries",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Tope de disposiciones a entregar en una ejecucion. Un boletin ordinario del BOJA trae entre 10 y 120 disposiciones. Si se alcanza el tope, la ejecucion siguiente continua donde se quedo. / Cap on entries per run; the next run resumes where this one stopped.",
            "default": 500
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}