{
  "openapi": "3.0.1",
  "info": {
    "title": "Benelux Insolvency Radar – NL & BE Bankruptcies",
    "description": "Benelux insolvency data in one normalised daily feed: Dutch and Belgian bankruptcies, suspensions of payment, WHOA and judicial reorganisations of legal entities, with company, KvK/KBO number, procedure, event, status, ruling date, court and trustee. Natural persons are never delivered.",
    "version": "0.1",
    "x-build-id": "gBQMy0P5tvfQLclYK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lwsdjfls~benelux-insolvency-radar/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lwsdjfls-benelux-insolvency-radar",
        "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/lwsdjfls~benelux-insolvency-radar/runs": {
      "post": {
        "operationId": "runs-sync-lwsdjfls-benelux-insolvency-radar",
        "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/lwsdjfls~benelux-insolvency-radar/run-sync": {
      "post": {
        "operationId": "run-sync-lwsdjfls-benelux-insolvency-radar",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "lookup",
              "monitor"
            ],
            "type": "string",
            "description": "Lookup: every case publication of the period is delivered. Monitor: the first run delivers the publications of the period (and every entry of the WHOA register) as a baseline, charged per case like a lookup; later runs deliver only publications that are new since the previous run (schedule it daily).",
            "default": "lookup"
          },
          "countries": {
            "title": "Countries",
            "minItems": 1,
            "maxItems": 2,
            "type": "array",
            "description": "NL: Centraal Insolventieregister of de Rechtspraak. BE: court notices in the Belgisch Staatsblad / Moniteur belge (Dutch and French).",
            "items": {
              "type": "string",
              "enum": [
                "NL",
                "BE"
              ],
              "enumTitles": [
                "Netherlands",
                "Belgium"
              ]
            },
            "default": [
              "NL",
              "BE"
            ]
          },
          "procedures": {
            "title": "Procedures",
            "maxItems": 4,
            "type": "array",
            "description": "Which procedures to deliver. A country whose register publishes none of the selected procedures and events is not read.",
            "items": {
              "type": "string",
              "enum": [
                "faillissement",
                "surseance",
                "gerechtelijke-reorganisatie",
                "whoa"
              ],
              "enumTitles": [
                "Faillissement (NL, BE)",
                "Surseance van betaling (NL)",
                "Gerechtelijke reorganisatie / WCO (BE)",
                "WHOA (NL)"
              ]
            },
            "default": [
              "faillissement",
              "surseance",
              "gerechtelijke-reorganisatie",
              "whoa"
            ]
          },
          "events": {
            "title": "Events",
            "maxItems": 8,
            "type": "array",
            "description": "Which events to deliver. Hearings and distribution lists are procedural noise for most credit and sales use; openings, closings, conversions and withdrawals are the signal.",
            "items": {
              "type": "string",
              "enum": [
                "opening",
                "closing",
                "conversion",
                "withdrawal",
                "hearing",
                "distribution-list",
                "administration",
                "other"
              ],
              "enumTitles": [
                "Opening (uitspraak)",
                "Closing (einde, opheffing, vereffening)",
                "Conversion (surseance → faillissement)",
                "Withdrawal (vernietiging, intrekking)",
                "Hearing (zitting, vergadering)",
                "Distribution list (uitdelingslijst)",
                "Administration (curator, rechter-commissaris, overdracht)",
                "Other"
              ]
            },
            "default": [
              "opening",
              "closing",
              "conversion",
              "withdrawal",
              "administration"
            ]
          },
          "lookbackDays": {
            "title": "Days",
            "minimum": 1,
            "maximum": 30,
            "type": "integer",
            "description": "Publication days to read, ending today. In monitor mode keep it larger than the interval between runs; the Dutch register offers about the last month.",
            "default": 3
          },
          "maxItems": {
            "title": "Maximum publications per run",
            "minimum": 1,
            "maximum": 20000,
            "type": "integer",
            "description": "Caps the charged case publications in one run, taken in the order of Countries. In monitor mode, publications a watch already delivered do not count; new ones that did not fit arrive in a later run while they are still inside its period, and a new watch of a country the cap leaves no room for starts only in a later run with room under the cap.",
            "default": 2000
          },
          "webhookUrl": {
            "title": "Webhook URL",
            "type": "string",
            "description": "Receives a POST with a summary after each run that delivered publications. Must be a public http(s) address; redirects are not followed. Stored encrypted, because webhook URLs often carry a token."
          },
          "stateKey": {
            "title": "State key",
            "pattern": "^[a-zA-Z0-9_-]{1,64}$",
            "type": "string",
            "description": "Separates independent monitors. Defaults to the task ID, so each saved task keeps its own baseline; a new state key starts a new baseline, charged like a lookup."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The Belgisch Staatsblad rejects requests from data-centre addresses, so Belgian notices are read through Apify residential proxies by default (a few megabytes a day). The proxy is used for the Staatsblad only: the Dutch registers do not need one and are always read directly.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ]
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}