{
  "openapi": "3.0.1",
  "info": {
    "title": "BODACC & EU Legal Announcements Monitor (FR/AT/DE/GB)",
    "description": "Structured legal announcements from France (BODACC), Austria (Ediktsdatei), Germany (Bundesanzeiger) and the United Kingdom (The Gazette): company, proceeding type, court, publication date, with filters and a watchlist monitor. Official data, legal entities only.",
    "version": "0.3",
    "x-build-id": "VJPKvac8d7Ox2OG5C"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadfetch~bodacc-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadfetch-bodacc-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/steadfetch~bodacc-monitor/runs": {
      "post": {
        "operationId": "runs-sync-steadfetch-bodacc-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/steadfetch~bodacc-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-steadfetch-bodacc-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "monitor"
            ],
            "type": "string",
            "description": "search returns the newest matching notices. monitor checks each watchlist item and delivers only notices never seen before.",
            "default": "search"
          },
          "country": {
            "title": "Country",
            "enum": [
              "fr",
              "at",
              "de",
              "gb",
              "all"
            ],
            "type": "string",
            "description": "Country to search. \"fr\" for France (BODACC, API), \"at\" for Austria (Ediktsdatei, scraping), \"de\" for Germany (Bundesanzeiger, scraping), \"gb\" for the United Kingdom (The Gazette, official feed), \"all\" for all four.",
            "default": "all"
          },
          "fulltext": {
            "title": "Search text",
            "type": "string",
            "description": "Free-text search across the notice (company name, keyword). Leave empty to browse all.",
            "default": ""
          },
          "noticeFamily": {
            "title": "Notice family (FR)",
            "type": "string",
            "description": "Exact BODACC family for France. Empty means all families. Not used for AT/DE.",
            "default": ""
          },
          "department": {
            "title": "Department (FR)",
            "type": "string",
            "description": "French department code (06, 31, 2A, 971) or name. Not used for AT/DE.",
            "default": ""
          },
          "court": {
            "title": "Court (AT)",
            "type": "string",
            "description": "Austrian court filter (e.g. \"HG Wien\"). Not used for FR/DE.",
            "default": ""
          },
          "proceedingType": {
            "title": "Proceeding type (AT)",
            "type": "string",
            "description": "Austrian proceeding type (e.g. \"Konkursverfahren\"). Not used for FR/DE.",
            "default": ""
          },
          "category": {
            "title": "Category (DE)",
            "type": "string",
            "description": "Bundesanzeiger category id for Germany (e.g. \"59\" for insolvency). Not used for FR/AT/GB.",
            "default": ""
          },
          "noticeCodes": {
            "title": "Notice codes (GB)",
            "type": "string",
            "description": "The Gazette notice codes for the United Kingdom, comma-separated (e.g. \"2450,2452\" for winding-up petitions and orders). UK only; ignored for FR/AT/DE. Leave empty for all notice types.",
            "default": ""
          },
          "dateFrom": {
            "title": "Published from (YYYY-MM-DD)",
            "type": "string",
            "description": "Lower bound of the publication date (ISO). Empty means no lower bound.",
            "default": ""
          },
          "dateTo": {
            "title": "Published to (YYYY-MM-DD)",
            "type": "string",
            "description": "Upper bound of the publication date (ISO). Empty means no upper bound.",
            "default": ""
          },
          "watchlist": {
            "title": "Monitor watchlist",
            "type": "array",
            "description": "Required in monitor mode. One check is billed per watchlist item per run. Use country, keyword and country-specific filters.",
            "items": {
              "type": "object",
              "properties": {
                "country": {
                  "title": "Country code",
                  "type": "string",
                  "description": "Country for this watch item: \"fr\", \"at\", \"de\", or \"gb\"."
                },
                "keyword": {
                  "title": "Keyword",
                  "type": "string",
                  "description": "Company name or name fragment to watch (case-insensitive)."
                },
                "department": {
                  "title": "Department (FR)",
                  "type": "string",
                  "description": "French department filter for this watch item."
                },
                "noticeFamily": {
                  "title": "Family (FR)",
                  "type": "string",
                  "description": "BODACC family filter for this watch item."
                },
                "firmenbuchNr": {
                  "title": "Firmenbuch Nr (AT)",
                  "type": "string",
                  "description": "Austrian Firmenbuchnummer for this watch item."
                },
                "court": {
                  "title": "Court (AT)",
                  "type": "string",
                  "description": "Austrian court filter for this watch item."
                },
                "category": {
                  "title": "Category (DE)",
                  "type": "string",
                  "description": "Bundesanzeiger category id for this watch item."
                }
              },
              "required": [
                "keyword"
              ]
            },
            "default": []
          },
          "maxRows": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of validated notices to push to the dataset (and, in monitor mode, the most new notices delivered per run). Default when unset: 100 for fr/at/de/all; 5000 for gb, which covers 100% of the rolling 7-day Gazette window (~2,170 notices)."
          },
          "strictSchema": {
            "title": "Strict output schema",
            "type": "boolean",
            "description": "Fail the run when an item does not match the OUTPUT schema.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}