{
  "openapi": "3.0.1",
  "info": {
    "title": "Oposiciones BOE Scraper & Alerts (Spain Public Jobs)",
    "description": "Daily alerts of new Spanish public job calls (oposiciones) from the BOE: State, regions, universities and city councils. Filter by keyword, province, region and group. Places and application deadline included. Only new announcements since your last run.",
    "version": "1.0",
    "x-build-id": "F7AfdkJ3su2eBshRO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hispadata~spain-oposiciones-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hispadata-spain-oposiciones-monitor",
        "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/hispadata~spain-oposiciones-monitor/runs": {
      "post": {
        "operationId": "runs-sync-hispadata-spain-oposiciones-monitor",
        "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/hispadata~spain-oposiciones-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-hispadata-spain-oposiciones-monitor",
        "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": "Keywords",
            "type": "array",
            "description": "Return only announcements that contain any of these words (title, body, corps or job names). Accents and case do not matter. Example: informática, policía local, enfermería. Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Skip announcements that contain any of these words.",
            "items": {
              "type": "string"
            }
          },
          "stages": {
            "title": "Stage",
            "type": "array",
            "description": "Which kind of announcement you want. Default: only new calls with an open application period.",
            "items": {
              "type": "string",
              "enum": [
                "convocatoria",
                "admitidos",
                "tribunal",
                "examen",
                "aprobados",
                "adjudicacion",
                "oferta_empleo",
                "correccion",
                "otros"
              ],
              "enumTitles": [
                "New calls (application period open)",
                "Admitted / excluded lists",
                "Selection board",
                "Exam date or place",
                "Passed / selected",
                "Results and posts awarded",
                "Public employment offer",
                "Corrections",
                "Other"
              ]
            },
            "default": [
              "convocatoria"
            ]
          },
          "adminLevels": {
            "title": "Administration",
            "type": "array",
            "description": "Leave empty for all.",
            "items": {
              "type": "string",
              "enum": [
                "estatal",
                "autonomica",
                "local",
                "universidad",
                "otros"
              ],
              "enumTitles": [
                "State",
                "Regional government",
                "Local (city councils, provincial councils, islands)",
                "Universities",
                "Other"
              ]
            }
          },
          "regions": {
            "title": "Regions (comunidades autónomas)",
            "type": "array",
            "description": "Example: Andalucía, Comunidad de Madrid, Cataluña.",
            "items": {
              "type": "string"
            }
          },
          "provinces": {
            "title": "Provinces",
            "type": "array",
            "description": "Example: Sevilla, Madrid, Valencia.",
            "items": {
              "type": "string"
            }
          },
          "alwaysIncludeStateJobs": {
            "title": "Keep State jobs when filtering by place",
            "type": "boolean",
            "description": "State calls (Ministries, Policía Nacional, AGE...) cover all of Spain. Keep them when you filter by region or province.",
            "default": true
          },
          "groups": {
            "title": "Groups",
            "type": "array",
            "description": "Professional group or subgroup. Announcements without a known group are skipped when you use this filter.",
            "items": {
              "type": "string",
              "enum": [
                "A1",
                "A2",
                "B",
                "C1",
                "C2",
                "E",
                "AP"
              ],
              "enumTitles": [
                "A1",
                "A2",
                "B",
                "C1",
                "C2",
                "E",
                "Agrupaciones Profesionales"
              ]
            }
          },
          "minPositions": {
            "title": "Minimum number of places",
            "minimum": 0,
            "type": "integer",
            "description": "Only calls with at least this many places (read from the full text). 0 = no limit.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new announcements",
            "type": "boolean",
            "description": "Remember what was already delivered for the same filters, so each scheduled run returns only new announcements and you never pay twice.",
            "default": true
          },
          "lookbackDays": {
            "title": "Days to look back (first run)",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "How many days of BOE the first run reads. Later runs continue from the last bulletin read.",
            "default": 3
          },
          "fetchDetails": {
            "title": "Read the full text",
            "type": "boolean",
            "description": "Read each announcement to get the number of places, the groups and the application deadline. A bit slower.",
            "default": true
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum announcements delivered in one run.",
            "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}