{
  "openapi": "3.0.1",
  "info": {
    "title": "Insolvency & Handelsregister Monitor – German Company Check",
    "description": "Companies, domains or register numbers in, one row per German company out: insolvency notices (Insolvenzbekanntmachungen) from provisional measures on, Handelsregister notices (Löschungsankündigung), EU VAT ID check (VIES), open positions. Matched by register number; watchlists report only changes.",
    "version": "0.1",
    "x-build-id": "g73dq5yYeMnBc9ff9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/perceptr0n~german-insolvency-handelsregister-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-perceptr0n-german-insolvency-handelsregister-monitor",
        "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/perceptr0n~german-insolvency-handelsregister-monitor/runs": {
      "post": {
        "operationId": "runs-sync-perceptr0n-german-insolvency-handelsregister-monitor",
        "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/perceptr0n~german-insolvency-handelsregister-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-perceptr0n-german-insolvency-handelsregister-monitor",
        "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": {
          "companies": {
            "title": "Companies",
            "type": "array",
            "description": "One entry per German company. Most exact: the register number with its court, e.g. \"München HRB 6684\". Also possible: a website (\"example.de\", read from its Impressum) or a name with town (\"Muster Bau GmbH, Kleve\"). As an object: {\"registerCourt\": \"Kleve\", \"registerType\": \"HRB\", \"registerNumber\": \"12345\", \"name\": \"Muster Bau GmbH\", \"vatId\": \"DE123456789\", \"ref\": \"your ID\"} – `name` is needed for open positions, `vatId` for the VAT check. No natural persons. Empty: one example is checked."
          },
          "watchlistId": {
            "title": "Watchlist name (report only changes)",
            "type": "string",
            "description": "Any name, e.g. \"key-suppliers\". The first run with this name delivers every company once. Every later run delivers a row only for companies where something changed (`change`: new, changed, resolved); unchanged companies get no row and are charged as watch-check. Schedule it daily. Companies that are not in a run's input stay on the list (dropped when not checked for 35 days), so a long list can be checked in parts. The list is kept in a key-value store in your own account."
          },
          "signals": {
            "title": "Signals to check",
            "type": "array",
            "description": "insolvency: notices of the insolvency courts (provisional measures, openings, dismissals for lack of assets, end of proceedings). register: notices of the register courts in the last eight weeks (announced deletion, transformation, new documents). vat: EU VAT ID checked against VIES (needs a VAT ID from the entry or the website; Swiss numbers are not in VIES). hiring: open positions at the Jobbörse of the Bundesagentur für Arbeit.",
            "items": {
              "type": "string",
              "enum": [
                "insolvency",
                "register",
                "vat",
                "hiring"
              ],
              "enumTitles": [
                "Insolvency notices",
                "Register notices",
                "EU VAT ID (VIES)",
                "Open positions (Jobbörse)"
              ]
            },
            "default": [
              "insolvency",
              "register",
              "vat",
              "hiring"
            ]
          },
          "alertOn": {
            "title": "Watchlist: changes that produce a row",
            "type": "array",
            "description": "Only with a watchlist name. Which changes deliver a row; leave empty for all checked signals. Example: [\"insolvency\", \"register\"] reports new court and register notices and stays quiet about open positions.",
            "items": {
              "type": "string",
              "enum": [
                "insolvency",
                "register",
                "vat",
                "hiring"
              ],
              "enumTitles": [
                "Insolvency notices",
                "Register notices",
                "EU VAT ID (VIES)",
                "Open positions (Jobbörse)"
              ]
            }
          },
          "discoverDays": {
            "title": "Discover: companies with new notices in the last N days",
            "minimum": 1,
            "maximum": 7,
            "type": "integer",
            "description": "Only used when `companies` is empty. 1 to 7: one row per registered company (GmbH, UG, AG, GmbH & Co. KG, KG, OHG, cooperative …) with a new insolvency notice (provisional measures, opening, dismissal for lack of assets) or an announced deletion in the last N days, all of Germany, one row per register number. Sole traders and associations are left out. Every row is charged as a company check — set a maximum cost for the run or `maxCompanies`."
          },
          "includeNoticeText": {
            "title": "Add the text of the insolvency notice",
            "type": "boolean",
            "description": "Adds the full text of the notice that defines the company's status (`insolvency.noticeText`). Off by default: the texts name the company's representatives, which are personal data you then hold.",
            "default": false
          },
          "maxCompanies": {
            "title": "Maximum companies per run",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Entries beyond this number are not checked and not charged (the run says how many). A watchlist holds at most 10,000 companies.",
            "default": 1000
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}