{
  "openapi": "3.0.1",
  "info": {
    "title": "Dutch Case Law API (Rechtspraak): court rulings by ECLI",
    "description": "Dutch court rulings (uitspraken) by ECLI or by keyword, court and date: case numbers, legal area, summary (inhoudsindicatie), appeal/cassation links, law references, full text on request. Hoge Raad (Supreme Court), Raad van State, appeal and district courts. Official Rechtspraak Open Data, sourced.",
    "version": "0.1",
    "x-build-id": "nnWOSh5sgMiT5eTYm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bosco_labs~dutch-case-law/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bosco_labs-dutch-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/bosco_labs~dutch-case-law/runs": {
      "post": {
        "operationId": "runs-sync-bosco_labs-dutch-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/bosco_labs~dutch-case-law/run-sync": {
      "post": {
        "operationId": "run-sync-bosco_labs-dutch-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": {
          "ecli": {
            "title": "ECLI(s)",
            "pattern": "^\\s*$|[Ee][Cc][Ll][Ii]",
            "type": "string",
            "description": "One or more Dutch ECLIs, separated by commas or spaces, e.g. \"ECLI:NL:HR:2024:123\" or \"ECLI:NL:HR:2024:123, ECLI:NL:RVS:2024:1000\" (max 100). Lower case and uitspraken.rechtspraak.nl links also work. One row per ECLI; an unknown ECLI fails at no charge. Empty = search with the fields below (both can be combined: ECLI rows come first)."
          },
          "query": {
            "title": "Keywords (search)",
            "pattern": "^[^\\[\\]{}<>\\r\\n]*$",
            "type": "string",
            "description": "Words to find in the decision's title and summary (inhoudsindicatie), case-insensitive. Commas separate alternatives, words within one alternative must all appear: \"huur, pacht\" = huur OR pacht; \"ontslag op staande voet\" = all four words. Summaries are in Dutch, so use Dutch words. The official API has no full-text search: this filters the newest-updated decisions that match the other filters (up to 10,000 scanned). Empty = no keyword filter."
          },
          "courts": {
            "title": "Courts (search)",
            "type": "array",
            "description": "Court codes as used in the ECLI, e.g. [\"HR\"] for the Hoge Raad (Supreme Court); others: PHR (Procureur-Generaal/AG opinions), RVS (Raad van State), CRVB, CBB, GHAMS, GHARL, GHDHA, GHSHE (courts of appeal), RBAMS, RBDHA, RBROT, RBMNE ... (district courts). Full Dutch names also work. Empty = all courts.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "HR",
                "PHR",
                "RVS",
                "CRVB",
                "CBB",
                "GHAMS",
                "GHARL",
                "GHDHA",
                "GHSHE",
                "RBAMS",
                "RBDHA",
                "RBGEL",
                "RBLIM",
                "RBMNE",
                "RBNHO",
                "RBNNE",
                "RBOBR",
                "RBOVE",
                "RBROT",
                "RBZWB"
              ],
              "enumTitles": [
                "HR: Hoge Raad (Supreme Court)",
                "PHR: Parket bij de Hoge Raad (AG opinions)",
                "RVS: Raad van State (Council of State)",
                "CRVB: Centrale Raad van Beroep",
                "CBB: College van Beroep voor het bedrijfsleven",
                "GHAMS: Gerechtshof Amsterdam",
                "GHARL: Gerechtshof Arnhem-Leeuwarden",
                "GHDHA: Gerechtshof Den Haag",
                "GHSHE: Gerechtshof 's-Hertogenbosch",
                "RBAMS: Rechtbank Amsterdam",
                "RBDHA: Rechtbank Den Haag",
                "RBGEL: Rechtbank Gelderland",
                "RBLIM: Rechtbank Limburg",
                "RBMNE: Rechtbank Midden-Nederland",
                "RBNHO: Rechtbank Noord-Holland",
                "RBNNE: Rechtbank Noord-Nederland",
                "RBOBR: Rechtbank Oost-Brabant",
                "RBOVE: Rechtbank Overijssel",
                "RBROT: Rechtbank Rotterdam",
                "RBZWB: Rechtbank Zeeland-West-Brabant"
              ]
            }
          },
          "legalAreas": {
            "title": "Legal areas (search)",
            "type": "array",
            "description": "Rechtsgebied names, e.g. [\"Strafrecht\"], [\"Belastingrecht\", \"Arbeidsrecht\"]; English also works: criminal, civil, administrative, tax, employment, immigration, insolvency, family, competition, environmental. A main area includes its sub-areas. Empty = all areas.",
            "items": {
              "type": "string",
              "enumSuggestedValues": [
                "Bestuursrecht",
                "Ambtenarenrecht",
                "Belastingrecht",
                "Bestuursprocesrecht",
                "Bestuursstrafrecht",
                "Europees bestuursrecht",
                "Mededingingsrecht",
                "Omgevingsrecht",
                "Socialezekerheidsrecht",
                "Vreemdelingenrecht",
                "Civiel recht",
                "Aanbestedingsrecht",
                "Arbeidsrecht",
                "Burgerlijk procesrecht",
                "Europees civiel recht",
                "Goederenrecht",
                "Insolventierecht",
                "Intellectueel-eigendomsrecht",
                "Internationaal privaatrecht",
                "Ondernemingsrecht",
                "Personen- en familierecht",
                "Verbintenissenrecht",
                "Strafrecht",
                "Europees strafrecht",
                "Internationaal strafrecht",
                "Materieel strafrecht",
                "Penitentiair strafrecht",
                "Strafprocesrecht",
                "Internationaal publiekrecht",
                "Mensenrechten",
                "Volkenrecht"
              ],
              "enumTitles": [
                "Bestuursrecht (administrative)",
                "Ambtenarenrecht",
                "Belastingrecht (tax)",
                "Bestuursprocesrecht",
                "Bestuursstrafrecht",
                "Europees bestuursrecht",
                "Mededingingsrecht (competition)",
                "Omgevingsrecht (environmental)",
                "Socialezekerheidsrecht (socialsecurity)",
                "Vreemdelingenrecht (immigration)",
                "Civiel recht (civil)",
                "Aanbestedingsrecht (procurement)",
                "Arbeidsrecht (employment)",
                "Burgerlijk procesrecht (civilprocedure)",
                "Europees civiel recht",
                "Goederenrecht (property)",
                "Insolventierecht (insolvency)",
                "Intellectueel-eigendomsrecht (intellectualproperty)",
                "Internationaal privaatrecht (privateinternational)",
                "Ondernemingsrecht (corporate)",
                "Personen- en familierecht (family)",
                "Verbintenissenrecht (contract)",
                "Strafrecht (criminal)",
                "Europees strafrecht",
                "Internationaal strafrecht",
                "Materieel strafrecht",
                "Penitentiair strafrecht",
                "Strafprocesrecht (criminalprocedure)",
                "Internationaal publiekrecht (publicinternational)",
                "Mensenrechten (humanrights)",
                "Volkenrecht"
              ]
            }
          },
          "dateFrom": {
            "title": "Decided from (search)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}(T.*)?)?$",
            "type": "string",
            "description": "Earliest decision date (uitspraakdatum), YYYY-MM-DD, e.g. \"2024-01-01\". Empty = no lower limit (to today if dateTo is empty)."
          },
          "dateTo": {
            "title": "Decided until (search)",
            "pattern": "^(\\d{4}-\\d{2}-\\d{2}(T.*)?)?$",
            "type": "string",
            "description": "Latest decision date, inclusive, YYYY-MM-DD, e.g. \"2024-12-31\". Empty = today when dateFrom is set, else no limit."
          },
          "documentType": {
            "title": "Document type (search)",
            "enum": [
              "uitspraak",
              "conclusie"
            ],
            "type": "string",
            "description": "\"uitspraak\" = court decisions only, \"conclusie\" = opinions of the Advocate-General at the Hoge Raad only. Empty = both."
          },
          "maxResults": {
            "title": "Max results (search)",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Most decisions to return from a search, most recently published or updated first, e.g. 20 (default). One charge per decision returned.",
            "default": 20
          },
          "includeText": {
            "title": "Include decision text",
            "type": "boolean",
            "description": "true = add the full decision as plain text (section headings as '## ', numbered paragraphs kept), cut at maxTextChars. Default false: metadata and summary only (small rows). Same price. E.g. `true`.",
            "default": false
          },
          "maxTextChars": {
            "title": "Max text characters",
            "minimum": 1000,
            "maximum": 500000,
            "type": "integer",
            "description": "With includeText: cap on the text per decision in characters, e.g. 20000 (default). Longer text is cut and flagged (text_truncated, text_chars gives the full length).",
            "default": 20000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}