{
  "openapi": "3.0.1",
  "info": {
    "title": "CENDOJ Spanish Case Law Search: Court Decisions & ECLI",
    "description": "Search Spanish court decisions in CENDOJ by phrase, court, region, decision type and date. Export ROJ, ECLI, summaries, PDF links, key passages and full judgment text for legal research.",
    "version": "0.1",
    "x-build-id": "aYPPCatb1H3Vi4rs3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~cendoj-case-law/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-cendoj-case-law",
        "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/cliqtomedia~cendoj-case-law/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-cendoj-case-law",
        "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/cliqtomedia~cendoj-case-law/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-cendoj-case-law",
        "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": {
          "query": {
            "title": "Search phrase",
            "maxLength": 500,
            "type": "string",
            "description": "Enter a phrase, ROJ or ECLI to find Spanish court decisions. Leave blank to use filters or decision links alone. If every field is blank, the example search runs."
          },
          "searchTerms": {
            "title": "More search phrases",
            "maxItems": 20,
            "type": "array",
            "description": "Add up to 20 more phrases. Each phrase is a separate search and gets its own Maximum decisions. Each row shows the phrase that found it.",
            "items": {
              "type": "string"
            }
          },
          "courts": {
            "title": "Courts",
            "type": "array",
            "description": "Limit decisions to these CENDOJ courts. Leave empty to search all courts.",
            "items": {
              "type": "string",
              "enum": [
                "11|12|13|14|15|16",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "22|2264|23|24|25|26|27|28|29",
                "22",
                "2264",
                "23",
                "24",
                "27",
                "26",
                "25",
                "29",
                "28",
                "31|31201202|33|34",
                "31",
                "31201202",
                "33",
                "34",
                "37",
                "38",
                "1001",
                "42",
                "43",
                "45",
                "53",
                "41",
                "47",
                "1002",
                "51",
                "44",
                "52",
                "48",
                "83",
                "85",
                "75"
              ],
              "enumTitles": [
                "Tribunal Supremo (all chambers)",
                "Tribunal Supremo. Civil",
                "Tribunal Supremo. Criminal",
                "Tribunal Supremo. Administrative",
                "Tribunal Supremo. Labor",
                "Tribunal Supremo. Military",
                "Tribunal Supremo. Special",
                "Audiencia Nacional (all)",
                "Audiencia Nacional. Criminal",
                "Audiencia Nacional. Appeals Chamber",
                "Audiencia Nacional. Administrative",
                "Audiencia Nacional. Labor",
                "Audiencia Nacional. Central investigating courts",
                "Audiencia Nacional. Central juvenile court",
                "Audiencia Nacional. Central prison supervision court",
                "Audiencia Nacional. Central administrative courts",
                "Audiencia Nacional. Central criminal courts",
                "Tribunal Superior de Justicia (all)",
                "Tribunal Superior de Justicia. Civil and Criminal",
                "Tribunal Superior de Justicia. Criminal appeals section",
                "Tribunal Superior de Justicia. Administrative",
                "Tribunal Superior de Justicia. Labor",
                "Audiencia Provincial",
                "Audiencia Provincial. Jury court",
                "EU Trade Mark Court",
                "First instance civil courts",
                "Investigating courts",
                "Administrative courts",
                "Juvenile courts",
                "First instance and investigating courts",
                "Commercial courts",
                "EU Trade Mark courts",
                "Criminal courts",
                "Labor courts",
                "Prison supervision courts",
                "Violence against women courts",
                "Territorial military courts",
                "Central military court",
                "Supreme Council of Military Justice"
              ]
            }
          },
          "jurisdictions": {
            "title": "Jurisdictions",
            "type": "array",
            "description": "Limit decisions to these areas of law. Leave empty to search all jurisdictions.",
            "items": {
              "type": "string",
              "enum": [
                "CIVIL",
                "PENAL",
                "CONTENCIOSO",
                "SOCIAL",
                "MILITAR",
                "ESPECIAL"
              ],
              "enumTitles": [
                "Civil",
                "Criminal",
                "Administrative",
                "Labor",
                "Military",
                "Special"
              ]
            }
          },
          "resolutionTypes": {
            "title": "Decision types",
            "type": "array",
            "description": "Limit decisions to these types. Sentencia is a judgment, Auto is a court order. Leave empty for all types.",
            "items": {
              "type": "string",
              "enum": [
                "SENTENCIA",
                "SENTENCIA CASACION",
                "SENTENCIA OTRAS",
                "AUTO",
                "AUTO RECURSO",
                "AUTO ADMISION",
                "AUTO INADMISION",
                "AUTO ACLARATORIO",
                "AUTO OTROS",
                "ACUERDO"
              ],
              "enumTitles": [
                "Sentencia (all judgments)",
                "Sentencia de casación",
                "Sentencia (other)",
                "Auto (all orders)",
                "Auto on a cassation appeal",
                "Auto de admisión",
                "Auto de inadmisión",
                "Auto aclaratorio",
                "Auto (other)",
                "Acuerdo"
              ]
            }
          },
          "regions": {
            "title": "Regions",
            "type": "array",
            "description": "Limit decisions to courts in these autonomous communities. Leave empty for all of Spain.",
            "items": {
              "type": "string",
              "enum": [
                "ANDALUCÍA",
                "ARAGÓN",
                "ASTURIAS",
                "BALEARES",
                "CANARIAS",
                "CANTABRIA",
                "CASTILLA LA MANCHA",
                "CASTILLA Y LEÓN",
                "CATALUÑA",
                "CEUTA",
                "COMUNIDAD VALENCIANA",
                "EXTREMADURA",
                "GALICIA",
                "LA RIOJA",
                "MADRID",
                "MELILLA",
                "MURCIA",
                "NAVARRA",
                "PAÍS VASCO"
              ],
              "enumTitles": [
                "Andalucía",
                "Aragón",
                "Asturias",
                "Balearic Islands",
                "Canary Islands",
                "Cantabria",
                "Castilla-La Mancha",
                "Castilla y León",
                "Catalonia",
                "Ceuta",
                "Valencian Community",
                "Extremadura",
                "Galicia",
                "La Rioja",
                "Madrid",
                "Melilla",
                "Murcia",
                "Navarre",
                "Basque Country"
              ]
            }
          },
          "dateFrom": {
            "title": "Decision date from",
            "type": "string",
            "description": "Include decisions made on or after this date."
          },
          "dateTo": {
            "title": "Decision date to",
            "type": "string",
            "description": "Include decisions made on or before this date."
          },
          "sortOrder": {
            "title": "Order",
            "enum": [
              "newest",
              "oldest",
              "relevance",
              "recentlyAdded"
            ],
            "type": "string",
            "description": "Order of decisions in each search.",
            "default": "newest"
          },
          "maxItems": {
            "title": "Maximum decisions",
            "minimum": 1,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum decisions to save for each search phrase, up to 300. CENDOJ shows 200 results per search. Above 200, the Actor splits the date range into smaller searches. Use at most 20 when full text is on. The charge cap can reduce this number.",
            "default": 10
          },
          "includeFullText": {
            "title": "Include full judgment text",
            "type": "boolean",
            "description": "Extract selectable text from official PDFs. This mode supports up to 20 decisions per phrase. A missing or scanned PDF can still return a metadata row.",
            "default": false
          },
          "keyPassages": {
            "title": "Key passages per decision",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "Return up to this many paragraphs of the full text that contain your search words. Needs full text or decision links. 0 turns it off.",
            "default": 0
          },
          "passageTerms": {
            "title": "Words for key passages",
            "maxItems": 20,
            "type": "array",
            "description": "Pick passages with these words instead of the search phrase.",
            "items": {
              "type": "string"
            }
          },
          "decisionUrls": {
            "title": "Decision links",
            "maxItems": 20,
            "type": "array",
            "description": "Get the full text of up to 20 decisions by their CENDOJ links (openDocument). Clear the search phrase to fetch only these decisions.",
            "items": {
              "type": "string"
            }
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}