{
  "openapi": "3.0.1",
  "info": {
    "title": "Resoluciones DGSJFP vía BOE · Spanish Registry Rulings",
    "description": "Resoluciones de la DGSJFP (antes DGRN) en recursos contra la calificación registral, desde la API de datos abiertos del BOE: fecha, registro, sentido, texto limpio y enlaces oficiales. Spanish registry rulings as JSON. Consejo de Estado, solo por ID. No oficial.",
    "version": "0.1",
    "x-build-id": "dFMO5UQcR60F8a4em"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/crispish_guava~dgsjfp-resoluciones-boe/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-crispish_guava-dgsjfp-resoluciones-boe",
        "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/crispish_guava~dgsjfp-resoluciones-boe/runs": {
      "post": {
        "operationId": "runs-sync-crispish_guava-dgsjfp-resoluciones-boe",
        "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/crispish_guava~dgsjfp-resoluciones-boe/run-sync": {
      "post": {
        "operationId": "run-sync-crispish_guava-dgsjfp-resoluciones-boe",
        "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": {
          "fuentes": {
            "title": "Fuentes",
            "type": "array",
            "description": "Valores admitidos: \"dgsjfp\" (resoluciones de la DGSJFP/DGRN publicadas en el BOE) y \"consejoEstado\" (dictámenes, SOLO por identificador: robots.txt de BOE.es prohíbe el buscador de dictámenes, así que no hay descubrimiento automático). Por defecto, solo dgsjfp.",
            "default": [
              "dgsjfp"
            ],
            "items": {
              "type": "string"
            }
          },
          "identificadores": {
            "title": "Identificadores concretos",
            "type": "array",
            "description": "BOE-A-AAAA-N (resolución DGSJFP/DGRN), CE-D-AAAA-N o N/AAAA (dictamen del Consejo de Estado). Si se indican, no se recorren sumarios y se ignoran fechas y filtros (salvo procedencia en dictámenes).",
            "items": {
              "type": "string"
            }
          },
          "includeOtrasResoluciones": {
            "title": "Incluir otras resoluciones de la Dirección",
            "type": "boolean",
            "description": "Por defecto solo se devuelven resoluciones en recursos contra la calificación registral (doctrina). Actívalo para incluir instrucciones y otros actos de la misma Dirección (fundaciones, notarías, jubilaciones…); llevan tipoDocumento instruccion u otraResolucion.",
            "default": false
          },
          "includeDgrn": {
            "title": "Incluir la antigua DGRN",
            "type": "boolean",
            "description": "Incluye resoluciones firmadas como «Dirección General de los Registros y del Notariado» (denominación anterior a 2020). Solo afecta si el rango de fechas llega a esa época.",
            "default": true
          },
          "includeTexto": {
            "title": "Descargar el texto completo",
            "type": "boolean",
            "description": "Descarga la página HTML de cada resolución (la URL url_html que da el sumario) para obtener el texto limpio y el sentido de la decisión. Si lo desactivas, solo metadatos del sumario: una petición por día y sentido siempre null.",
            "default": true
          },
          "textoLibre": {
            "title": "Texto libre (filtro local)",
            "type": "string",
            "description": "Filtra por título, identificador y, si se descarga, texto (sin distinguir mayúsculas ni tildes). Las resoluciones descartadas consumen peticiones pero no se cobran."
          },
          "fechaDesde": {
            "title": "Publicado en el BOE desde",
            "type": "string",
            "description": "aaaa-mm-dd. Fecha de publicación en el BOE (no la de la resolución). Si se deja vacío, 90 días antes de fechaHasta."
          },
          "fechaHasta": {
            "title": "Publicado en el BOE hasta",
            "type": "string",
            "description": "aaaa-mm-dd. Si se deja vacío, hasta hoy."
          },
          "registros": {
            "title": "Registro (DGSJFP)",
            "type": "array",
            "description": "Valores: \"propiedad\", \"mercantil\", \"bienesMuebles\". Se infiere del título; las resoluciones cuyo registro no se puede identificar con fiabilidad quedan fuera si usas este filtro. Vacío = todos.",
            "items": {
              "type": "string"
            }
          },
          "procedencia": {
            "title": "Procedencia (Consejo de Estado)",
            "type": "string",
            "description": "Texto contenido en el órgano consultante del dictamen, si la página lo muestra (p. ej. «Ministerio de Hacienda»)."
          },
          "maxItems": {
            "title": "Máximo de documentos",
            "minimum": 0,
            "type": "integer",
            "description": "Número máximo de documentos a guardar (500 por defecto). Sin fechaDesde se recorren los últimos 90 días de sumarios, del más reciente al más antiguo, hasta llegar a este límite. 0 = sin límite (combínalo con un rango de fechas acotado: cada día es al menos una petición). El ejemplo de la Store (prefill) es 5, para que la prueba automática de Apify acabe en segundos; el valor por defecto sigue siendo 500.",
            "default": 500
          },
          "incremental": {
            "title": "Modo incremental",
            "type": "boolean",
            "description": "Solo devuelve documentos no entregados en ejecuciones anteriores con la misma clave de estado.",
            "default": false
          },
          "incrementalStateKey": {
            "title": "Clave de estado incremental",
            "type": "string",
            "description": "Usa claves distintas para seguimientos distintos (p. ej. \"mercantil\", \"propiedad\").",
            "default": "default"
          },
          "incrementalLookbackDays": {
            "title": "Ventana de revisión (días)",
            "minimum": 0,
            "maximum": 365,
            "type": "integer",
            "description": "Días hacia atrás desde la última publicación entregada que se vuelven a revisar en modo incremental.",
            "default": 7
          },
          "redactPersonalData": {
            "title": "Enmascarar datos personales",
            "type": "boolean",
            "description": "Sustituye NIF/DNI, NIE, correos, teléfonos, IBAN y nombres precedidos de «don/doña/D./D.ª» por marcadores ([DATO OMITIDO], [NOMBRE OMITIDO]). Conserva cargos y lugares. Recomendado: activado.",
            "default": true
          },
          "requestDelaySecs": {
            "title": "Retardo entre peticiones (s)",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Tiempo mínimo entre peticiones a www.boe.es. Mínimo 1 s (si robots.txt fija un Crawl-delay mayor, se respeta).",
            "default": 1
          },
          "maxConcurrency": {
            "title": "Concurrencia máxima",
            "minimum": 1,
            "maximum": 2,
            "type": "integer",
            "description": "Documentos descargados en paralelo (máx. 2). El retardo mínimo se aplica igualmente entre el inicio de cada petición.",
            "default": 1
          },
          "maxRequestRetries": {
            "title": "Reintentos por petición",
            "minimum": 0,
            "maximum": 8,
            "type": "integer",
            "description": "Reintentos con backoff exponencial + jitter ante errores transitorios (5xx, 408, 429, red). Se respeta Retry-After.",
            "default": 4
          },
          "healthCheck": {
            "title": "Fallar si no hay resultados (health check)",
            "type": "boolean",
            "description": "Si está activo, la ejecución falla cuando no se extrae ningún documento. Útil en una comprobación programada.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Normalmente no es necesario."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}