{
  "openapi": "3.0.1",
  "info": {
    "title": "Resoluciones DGSJFP y dictámenes del Consejo de Estado",
    "description": "Resoluciones de la DGSJFP sobre la calificación registral (Propiedad, Mercantil y Bienes Muebles), dictámenes del Consejo de Estado y resoluciones de Pleno del TACRC, con texto completo. Filtre por palabras, fechas o registro y reciba solo las novedades. Para notarías, registros y despachos.",
    "version": "0.3",
    "x-build-id": "wvmzriDUqH7FaY1oT"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/opendata-cr~doctrina-administrativa-espana/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-opendata-cr-doctrina-administrativa-espana",
        "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/opendata-cr~doctrina-administrativa-espana/runs": {
      "post": {
        "operationId": "runs-sync-opendata-cr-doctrina-administrativa-espana",
        "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/opendata-cr~doctrina-administrativa-espana/run-sync": {
      "post": {
        "operationId": "run-sync-opendata-cr-doctrina-administrativa-espana",
        "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": {
          "sources": {
            "title": "Fuentes / Sources",
            "type": "array",
            "description": "Qué doctrina consultar. DGSJFP: resoluciones sobre recursos contra la calificación de registradores, publicadas en el BOE. Consejo de Estado: dictámenes de la base del BOE. TACRC (Pleno): resoluciones de Pleno del Tribunal Administrativo Central de Recursos Contractuales. Si se deja vacío: DGSJFP y Consejo de Estado.",
            "items": {
              "type": "string",
              "enum": [
                "dgsjfp",
                "consejoEstado",
                "tacrcPleno"
              ],
              "enumTitles": [
                "DGSJFP · Registros y notariado (BOE)",
                "Consejo de Estado · Dictámenes (BOE)",
                "TACRC · Resoluciones de Pleno"
              ]
            },
            "default": [
              "dgsjfp",
              "consejoEstado"
            ]
          },
          "mode": {
            "title": "Modo / Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "«search» devuelve lo que coincide con los filtros. «monitor» devuelve solo los documentos nuevos desde la ejecución anterior con el mismo nombre de monitor. Search returns matches; monitor returns only new documents since the previous run.",
            "default": "search"
          },
          "keywords": {
            "title": "Palabras clave / Keywords",
            "type": "array",
            "description": "Palabras o frases completas, sin distinguir mayúsculas ni tildes. Se buscan en el título y en el texto completo (en el título y la procedencia si desactiva «Incluir texto»). Words or phrases, case- and accent-insensitive.",
            "items": {
              "type": "string"
            }
          },
          "keywordMode": {
            "title": "Combinación de palabras clave / Keyword mode",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "«any»: basta una palabra clave. «all»: deben aparecer todas. Any keyword or all keywords.",
            "default": "any"
          },
          "dateFrom": {
            "title": "Desde / From",
            "type": "string",
            "description": "Fecha inicial, inclusive (AAAA-MM-DD). DGSJFP: fecha de publicación en el BOE. Consejo de Estado: fecha de aprobación. TACRC: fecha de la resolución. Start date, inclusive."
          },
          "dateTo": {
            "title": "Hasta / To",
            "type": "string",
            "description": "Fecha final, inclusive. Si está vacía, hoy (hora de Madrid). End date, inclusive."
          },
          "recentDays": {
            "title": "Días recientes / Recent days",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Se usa cuando no hay fechas: se consultan los últimos N días (en monitor, la ventana de la primera ejecución). Used when no dates are given.",
            "default": 30
          },
          "includeText": {
            "title": "Incluir texto completo / Include full text",
            "type": "boolean",
            "description": "Con texto completo se cobra el evento «Documento con texto». Sin texto se devuelven solo los metadatos y se cobra «Documento solo con metadatos». Full text is billed as a text document; metadata only is billed at the lower rate.",
            "default": true
          },
          "maxResults": {
            "title": "Máximo de documentos / Max documents",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Máximo de documentos que se entregan (y se cobran) por ejecución. Los resultados salen de los más recientes a los más antiguos. Maximum documents delivered per run.",
            "default": 50
          },
          "onlyRecursos": {
            "title": "DGSJFP: solo resoluciones de recursos / DGSJFP: appeals only",
            "type": "boolean",
            "description": "Solo las resoluciones «en el recurso interpuesto contra la calificación…». Desactívelo para incluir también instrucciones, circulares y otras resoluciones de la DGSJFP en la sección III del BOE. Only appeal resolutions.",
            "default": true
          },
          "registros": {
            "title": "DGSJFP: tipo de registro / DGSJFP: registry type",
            "type": "array",
            "description": "Filtra por el registro cuya calificación se recurre, según el título de la resolución. Si se deja vacío: todos. Filter by registry type.",
            "items": {
              "type": "string",
              "enum": [
                "propiedad",
                "mercantil",
                "bienesMuebles"
              ],
              "enumTitles": [
                "Registro de la Propiedad",
                "Registro Mercantil",
                "Registro de Bienes Muebles"
              ]
            }
          },
          "includeDgrn": {
            "title": "DGSJFP: incluir resoluciones de la DGRN / Include DGRN",
            "type": "boolean",
            "description": "Incluye las resoluciones de la Dirección General de los Registros y del Notariado, nombre anterior de la DGSJFP (hasta 2020). Includes the former name of the body.",
            "default": false
          },
          "procedencias": {
            "title": "Consejo de Estado: procedencia / Council of State: origin",
            "type": "array",
            "description": "Texto que debe contener la procedencia de la consulta (ministerio o comunidad autónoma), por ejemplo «HACIENDA» o «CATALUÑA». Cualquiera de los textos basta. Origin of the consultation.",
            "items": {
              "type": "string"
            }
          },
          "expedientes": {
            "title": "Consejo de Estado: expedientes concretos / Council of State: specific files",
            "type": "array",
            "description": "Números de expediente con el formato «649/2026». Si se indican, se ignoran las fechas y solo se consultan esos expedientes. Specific file numbers; dates are ignored.",
            "items": {
              "type": "string"
            }
          },
          "maxPagesToScan": {
            "title": "Máximo de páginas a consultar / Max pages to fetch",
            "minimum": 1,
            "maximum": 30000,
            "type": "integer",
            "description": "Tope de peticiones a las fuentes por ejecución (un día de BOE, un documento o un expediente cuentan 1). Un año completo de dictámenes del Consejo de Estado requiere unas 1,000 a 2,000. Cap on source requests per run.",
            "default": 2500
          },
          "monitorName": {
            "title": "Nombre del monitor / Monitor name",
            "type": "string",
            "description": "Solo en modo monitor. El estado (documentos ya entregados) se guarda con este nombre: use nombres distintos para vigilancias con filtros distintos. Only in monitor mode.",
            "default": "doctrina-es-monitor"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Opcional. Las fuentes oficiales responden sin proxy desde Apify; actívelo solo si su ejecución es bloqueada. Optional: official sources respond without a proxy.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}