{
  "openapi": "3.0.1",
  "info": {
    "title": "Netherlands Insolvency Register - Bankruptcy Feed",
    "description": "From $2 per 1,000 records, no start fee. The Dutch national insolvency register: every bankruptcy, suspension-of-payment and debt-restructuring publication in its rolling 30-day window - company name, KvK number, address, court, case number, and the court-appointed trustee with a phone number.",
    "version": "0.1",
    "x-build-id": "VVM4Mnocr82cYH6zK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~rechtspraak-insolvency-nl-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-rechtspraak-insolvency-nl-scraper",
        "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/scrapersdelight~rechtspraak-insolvency-nl-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-rechtspraak-insolvency-nl-scraper",
        "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/scrapersdelight~rechtspraak-insolvency-nl-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-rechtspraak-insolvency-nl-scraper",
        "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": {
          "daysBack": {
            "title": "Days back",
            "minimum": 1,
            "maximum": 31,
            "type": "integer",
            "description": "How many days of publications to cover, ending today (Dutch calendar days — the register's own day boundary is midnight in Amsterdam). Measured over a full window: ~98 publications per business day, 2,574 in 30 days. Weekends and public holidays have none.",
            "default": 7
          },
          "publicationTypes": {
            "title": "Publication types",
            "type": "array",
            "description": "Leave empty for all seven. For a distressed-lead list you almost always want just \"uitspraken faillissement\" — that is the moment a company is declared bankrupt and a trustee is appointed.",
            "items": {
              "type": "string",
              "enum": [
                "uitspraken faillissement",
                "uitspraken surseance",
                "uitspraken schuldsanering",
                "einde faillissementen",
                "einde surseances",
                "einde schuldsaneringen",
                "overig"
              ],
              "enumTitles": [
                "New bankruptcies declared - uitspraken faillissement  (653 in 30 days)",
                "New suspensions of payment - uitspraken surseance  (29)",
                "New debt restructurings - uitspraken schuldsanering  (512)",
                "Bankruptcies closed - einde faillissementen  (433)",
                "Suspensions ended - einde surseances  (21)",
                "Debt restructurings ended - einde schuldsaneringen  (299)",
                "Everything else - hearings, corrections, trustee changes  (936)"
              ]
            },
            "default": []
          },
          "courts": {
            "title": "District courts",
            "type": "array",
            "description": "Leave empty for the whole country. The actor queries court by court either way — the register truncates any single search at 1,005 rows with no pagination and still reports the truncated figure as the total, and splitting by court is what keeps every query under that ceiling.",
            "items": {
              "type": "string",
              "enum": [
                "amsterdam",
                "den haag",
                "gelderland",
                "limburg",
                "midden-nederland",
                "noord-holland",
                "noord-nederland",
                "oost-brabant",
                "overijssel",
                "rotterdam",
                "zeeland-west-brabant"
              ],
              "enumTitles": [
                "Rechtbank Amsterdam  (173 in 30 days)",
                "Rechtbank Den Haag  (194)",
                "Rechtbank Gelderland  (285)",
                "Rechtbank Limburg  (121)",
                "Rechtbank Midden-Nederland  (344)",
                "Rechtbank Noord-Holland  (185)",
                "Rechtbank Noord-Nederland  (307)",
                "Rechtbank Oost-Brabant  (188)",
                "Rechtbank Overijssel  (195)",
                "Rechtbank Rotterdam  (494)",
                "Rechtbank Zeeland-West-Brabant  (222)"
              ]
            },
            "default": []
          },
          "subjectType": {
            "title": "Subject",
            "enum": [
              "companies",
              "individuals",
              "all"
            ],
            "type": "string",
            "description": "Decided from the register's own `KvKNummer` field on the subject, not from the name. A name-suffix rule (B.V./V.O.F./Stichting…) was tested and missed 1 real company in 125 — \"EANA Transport\" — so it is not used.",
            "default": "companies"
          },
          "includePersonalData": {
            "title": "Include birth date and home address of private individuals",
            "type": "boolean",
            "description": "OFF by default. When off, rows about a private individual still carry the name, the case and the trustee, but `birthDate`, `birthPlace` and `homeAddress` are omitted and `personalDataWithheld` is set. Measured on the 175 individuals in the sample: birth date 99.4%, home address 87.4% — this is real personal data about named people in financial distress, and it is your lawful basis, not ours. Has no effect on company rows, where all three fields are 0% filled anyway.",
            "default": false
          },
          "onlyPublicationsDatedInWindow": {
            "title": "Only publications actually dated inside the window",
            "type": "boolean",
            "description": "ON by default, and it matters more than it sounds. The register's date search is NOT a filter on a publication's own date: it re-serves an older publication whenever the case record is touched. Measured — of 300 publications returned by a 30-day query, 275 (91.7%) were dated inside it and 25 were not, one from 2023; the same check on a 7-day query gave 55 of 61 (90.2%). With this on, those are dropped and never charged.",
            "default": true
          },
          "onlyWithKvk": {
            "title": "Only subjects with a KvK number",
            "type": "boolean",
            "description": "A Dutch Chamber of Commerce number is the join key to every other Dutch company database. Measured: 100% of company rows carry one; 25.7% of individual rows do too (sole traders). Redundant when Subject is set to companies.",
            "default": false
          },
          "nameContains": {
            "title": "Name contains",
            "type": "string",
            "description": "Case-insensitive substring, matched against the subject name and every current and former trade name on the record. Applied after the record is read, so it never risks the near-miss that a server-side keyword search would."
          },
          "postcodePrefixes": {
            "title": "Postcode prefixes",
            "type": "array",
            "description": "Dutch postcode prefixes, e.g. \"10\" for Amsterdam-centre ranges or \"3011\" for one exact code. Spaces are ignored and matching is case-insensitive. A row matches if its business, postal or home postcode starts with any of them.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxRecords": {
            "title": "Max rows",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap on rows delivered — and therefore on rows charged. 0 means no cap. A capped run returns the newest publications first: the register orders every result set newest-first, verified across a whole 494-row court partition (42 of 42 consecutive dated pairs in non-increasing order). The whole 30-day window is 2,574 publications, about 3.5 minutes.",
            "default": 500
          },
          "detailConcurrency": {
            "title": "Detail requests in parallel",
            "minimum": 1,
            "maximum": 16,
            "type": "integer",
            "description": "The register does rate-limit, and it does it quietly: past roughly 45 requests/second it answers a zero-byte HTTP 403 with no body and no Retry-After, which looks exactly like a block and is not — 150 of 150 refused ids returned 200 when asked again more slowly. Measured 403 rate over 300 calls: 0% at concurrency 2, 3, 4 and 6 (13.6-44.6 req/s), ~15% at concurrency 8-10 (~60 req/s). The default of 4 sits comfortably inside the clean band, and every 403 is retried on a fresh proxy session anyway. Raise it only if you are in a hurry and are watching the run log.",
            "default": 4
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Optional. insolventies.rechtspraak.nl has no anti-bot, no CAPTCHA and no user-agent gate — it answered plain requests with no proxy at all throughout testing. Datacenter is plenty. If you ever do get blocked, switch to residential here. NOTE: the search leg pins ONE proxy session for the whole run, because the register's anti-CSRF token is only valid from the address that minted it.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}