{
  "openapi": "3.0.1",
  "info": {
    "title": "Bankruptcy & Liquidation Notices: France, Norway, Finland, IE",
    "description": "Daily feed of company bankruptcies, liquidations, restructurings and strike-offs from official open registers in France (BODACC), Norway (Brreg), Finland (PRH) and Ireland (CRO). One normalised schema, company filters, 'only new since last run' mode. Companies only, no personal data.",
    "version": "1.0",
    "x-build-id": "0m19s1Q5AlPmVLxJf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wooden_scanner_c1n~eu-insolvency-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wooden_scanner_c1n-eu-insolvency-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/wooden_scanner_c1n~eu-insolvency-monitor/runs": {
      "post": {
        "operationId": "runs-sync-wooden_scanner_c1n-eu-insolvency-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/wooden_scanner_c1n~eu-insolvency-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-wooden_scanner_c1n-eu-insolvency-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": {
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Registers to read. FR = France BODACC collective proceedings, NO = Norway Brønnøysund Register Centre, FI = Finland PRH Trade Register notices, IE = Ireland CRO company records.",
            "items": {
              "type": "string",
              "enum": [
                "FR",
                "NO",
                "FI",
                "IE"
              ],
              "enumTitles": [
                "France (BODACC)",
                "Norway (Brreg)",
                "Finland (PRH)",
                "Ireland (CRO)"
              ]
            },
            "default": [
              "FR",
              "NO",
              "FI",
              "IE"
            ]
          },
          "sinceDate": {
            "title": "Since date",
            "type": "string",
            "description": "Earliest date to include: YYYY-MM-DD, or relative like '7 days', '2 weeks', '1 month'. Empty = last 7 days. Compared with the publication date for notice registers (FR, FI) and with the status date for status registers (NO, IE)."
          },
          "untilDate": {
            "title": "Until date",
            "type": "string",
            "description": "Latest date to include (YYYY-MM-DD or relative like '1 day'). Empty = today."
          },
          "eventTypes": {
            "title": "Event types",
            "type": "array",
            "description": "Normalised event types to return. 'dissolution' (Ireland dissolved companies, Finland dissolutions) is off by default because it is mostly routine.",
            "items": {
              "type": "string",
              "enum": [
                "bankruptcy",
                "restructuring",
                "liquidation",
                "compulsory_dissolution",
                "strike_off",
                "other_insolvency",
                "dissolution"
              ],
              "enumTitles": [
                "Bankruptcy / judicial liquidation",
                "Restructuring (reorganisation, safeguard, examinership)",
                "Liquidation (voluntary or unspecified)",
                "Compulsory dissolution (Norway)",
                "Strike-off (Ireland)",
                "Other insolvency notices (France: claims lists, plans, other judgments)",
                "Dissolution (routine, off by default)"
              ]
            },
            "default": [
              "bankruptcy",
              "restructuring",
              "liquidation",
              "compulsory_dissolution",
              "strike_off",
              "other_insolvency"
            ]
          },
          "onlyNewProceedings": {
            "title": "Only new proceedings",
            "type": "boolean",
            "description": "Return only openings of proceedings and new status flags; drop closures, conversions, claims lists and plans.",
            "default": false
          },
          "companies": {
            "title": "Company filter (IDs or names)",
            "type": "array",
            "description": "Optional watchlist. One per line: a French SIREN/SIRET, Norwegian organisation number, Finnish Business ID (1234567-8), Irish CRO number, or part of a company name. Leave empty for every company.",
            "items": {
              "type": "string"
            }
          },
          "monitorName": {
            "title": "Monitor name",
            "type": "string",
            "description": "Name for this watch (e.g. 'my-suppliers'). Needed for 'Only unseen events': the Actor remembers which events it already returned under this name."
          },
          "onlyUnseen": {
            "title": "Only unseen events (new since last run)",
            "type": "boolean",
            "description": "With a monitor name set, skip events that an earlier run with the same monitor name already returned. Ideal for scheduled daily alerts: you only pay for new events.",
            "default": false
          },
          "maxItems": {
            "title": "Max events",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Hard cap on events returned (newest first). You pay per event returned.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}