{
  "openapi": "3.0.1",
  "info": {
    "title": "Insolvenzbekanntmachungen Scraper: German Insolvency Notices",
    "description": "Collect official German insolvency notices (Insolvenzbekanntmachungen) by date, state, court or debtor name. Get case numbers, register IDs, subjects and optional full notice text, ready for company lookups.",
    "version": "0.1",
    "x-build-id": "nMJTk1z9zj8E6NefR"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/s-r~german-insolvency-notices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-s-r-german-insolvency-notices",
        "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/s-r~german-insolvency-notices/runs": {
      "post": {
        "operationId": "runs-sync-s-r-german-insolvency-notices",
        "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/s-r~german-insolvency-notices/run-sync": {
      "post": {
        "operationId": "run-sync-s-r-german-insolvency-notices",
        "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": {
          "date_from": {
            "title": "Date from",
            "maxLength": 10,
            "type": "string",
            "description": "Publication start date, YYYY-MM-DD, inclusive. Today and future-date validation use Europe/Berlin. Without dates, broad searches use today minus 14 days through today; a name, seat, first name, case or register filter searches the available archive."
          },
          "date_to": {
            "title": "Date to",
            "maxLength": 10,
            "type": "string",
            "description": "Publication end date, YYYY-MM-DD, inclusive, no later than today in Europe/Berlin. A single supplied date selects one day. Ranges are split automatically only when the portal reports too many matches."
          },
          "state": {
            "title": "State",
            "enum": [
              "",
              "BW",
              "BY",
              "BE",
              "BB",
              "HB",
              "HH",
              "HE",
              "MV",
              "NI",
              "NW",
              "RP",
              "SL",
              "SN",
              "ST",
              "SH",
              "TH"
            ],
            "type": "string",
            "description": "German federal state code. Empty searches all states."
          },
          "insolvency_court": {
            "title": "Insolvency court",
            "maxLength": 255,
            "type": "string",
            "description": "Official insolvency court name or code, for example Bochum or R2201. A court implies its state. Unknown courts and conflicting states are rejected."
          },
          "name": {
            "title": "Name",
            "maxLength": 1000,
            "type": "string",
            "description": "Company or debtor surname search. Use * as a wildcard; at least two non-wildcard characters are required."
          },
          "first_name": {
            "title": "First name",
            "maxLength": 255,
            "type": "string",
            "description": "Optional debtor first-name filter."
          },
          "seat": {
            "title": "Seat",
            "maxLength": 255,
            "type": "string",
            "description": "Registered seat or residence, without postal code. Wildcards are accepted."
          },
          "case_number": {
            "title": "Case number",
            "maxLength": 50,
            "type": "string",
            "description": "Official case number, for example 80 IN 575/26 or IN 96/20. IN, IK, IE and AR are supported."
          },
          "register_court": {
            "title": "Register court",
            "maxLength": 255,
            "type": "string",
            "description": "Register court name or code, for example Bochum or R2201. Supply together with register_type and register_number."
          },
          "register_type": {
            "title": "Register type",
            "enum": [
              "",
              "HRA",
              "HRB",
              "GnR",
              "GsR",
              "PR",
              "VR"
            ],
            "type": "string",
            "description": "Official register type. Supply together with register_court and register_number."
          },
          "register_number": {
            "title": "Register number",
            "maxLength": 80,
            "type": "string",
            "description": "Register number, including any local suffix. All three register filters are required together."
          },
          "subjects": {
            "title": "Subjects",
            "type": "array",
            "description": "Notice subject codes as a list. Empty or omitted selects all nine subjects. Use subject for a single code.",
            "items": {
              "type": "string"
            }
          },
          "debtor_type": {
            "title": "Debtor type",
            "enum": [
              "all",
              "company",
              "person"
            ],
            "type": "string",
            "description": "Derived debtor classification: all (default), company or person. A register entry or a recognized legal form indicates company; this is a heuristic.",
            "default": "all"
          },
          "include_text": {
            "title": "Include text",
            "type": "boolean",
            "description": "Include the complete official notice text. Omitted is false. Empty or unavailable text remains null and is not charged as a text result."
          },
          "max_items": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum notices across the complete search, including every cursor page. Default 100; non-paying Apify users receive at most 10."
          },
          "cursor": {
            "title": "Cursor",
            "maxLength": 5000,
            "type": "string",
            "description": "Signed continuation returned in next_cursor. Send the original input unchanged. Apify collects continuation pages automatically."
          },
          "dateFrom": {
            "title": "Datefrom",
            "maxLength": 10,
            "type": "string",
            "description": "Alias for date_from. An explicitly supplied date_from takes precedence."
          },
          "dateTo": {
            "title": "Dateto",
            "maxLength": 10,
            "type": "string",
            "description": "Alias for date_to. An explicitly supplied date_to takes precedence."
          },
          "bundesland": {
            "title": "Bundesland",
            "enum": [
              "",
              "BW",
              "BY",
              "BE",
              "BB",
              "HB",
              "HH",
              "HE",
              "MV",
              "NI",
              "NW",
              "RP",
              "SL",
              "SN",
              "ST",
              "SH",
              "TH"
            ],
            "type": "string",
            "description": "Alias for state. An explicitly supplied state takes precedence."
          },
          "companyName": {
            "title": "Companyname",
            "maxLength": 1000,
            "type": "string",
            "description": "Alias for name. An explicitly supplied name takes precedence."
          },
          "city": {
            "title": "City",
            "maxLength": 255,
            "type": "string",
            "description": "Alias for seat. An explicitly supplied seat takes precedence."
          },
          "subject": {
            "title": "Subject",
            "enum": [
              "ABWMASS",
              "ENT_RSB",
              "ENT_VERF",
              "ENT_AUF_VERF",
              "EROEFF",
              "SICHMASS",
              "SONST",
              "VERTVERZ",
              "INSO_PLAN"
            ],
            "type": "string",
            "description": "Single-code alias for subjects. An explicitly supplied subjects list takes precedence."
          },
          "fetchFullText": {
            "title": "Fetchfulltext",
            "type": "boolean",
            "description": "Alias for include_text. An explicitly supplied include_text takes precedence."
          },
          "maxItems": {
            "title": "Maxitems",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Alias for max_items. An explicitly supplied max_items takes precedence."
          },
          "maxResults": {
            "title": "Maxresults",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Alias for max_items. An explicitly supplied max_items takes precedence."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}