{
  "openapi": "3.0.1",
  "info": {
    "title": "Belgisch Staatsblad Scraper - Moniteur Belge & KBO Filings",
    "description": "Scrape the Belgian Official Gazette: every company act in the Annexes by KBO/BCE number, name or date — incorporation, statutes, director changes, office moves, dissolutions — with company number (mod-97 checked), legal form, address, act types, publication number and PDF.",
    "version": "0.1",
    "x-build-id": "Rj4DRdzEt3LkCOeQU"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapersdelight~be-gazette-company-publications-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapersdelight-be-gazette-company-publications-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~be-gazette-company-publications-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapersdelight-be-gazette-company-publications-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~be-gazette-company-publications-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapersdelight-be-gazette-company-publications-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": {
          "section": {
            "title": "What to scrape",
            "enum": [
              "company",
              "gazette"
            ],
            "type": "string",
            "description": "Company publications = one row per act a company published in the Annexes (Bijlagen bij het Belgisch Staatsblad / Annexes du Moniteur belge). Gazette publications = one row per entry of the daily Belgisch Staatsblad.",
            "default": "company"
          },
          "enterpriseNumbers": {
            "title": "Enterprise numbers (KBO/BCE)",
            "type": "array",
            "description": "One or more Belgian enterprise numbers, any spelling: \"0417.497.106\", \"BE0417497106\", \"417497106\". Each is searched over the whole archive (or your date range). Company publications only.",
            "items": {
              "type": "string"
            }
          },
          "companyName": {
            "title": "Company name",
            "type": "string",
            "description": "Search the Annexes by company name, e.g. \"colruyt\" (the gazette's own name search). Company publications only."
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication date (YYYY-MM-DD). Empty: the whole archive for a number or name search, otherwise 6 days before \"Published until\"."
          },
          "dateTo": {
            "title": "Published until",
            "type": "string",
            "description": "Last publication date (YYYY-MM-DD). Empty: today (Brussels time)."
          },
          "actTypes": {
            "title": "Act types",
            "type": "array",
            "description": "Only publications of these act types (pick several: each is one search on the gazette). Empty: every act type. Company publications only.",
            "items": {
              "type": "string",
              "enum": [
                "c01",
                "c02",
                "c03",
                "c04",
                "c05",
                "c06",
                "c07",
                "c08",
                "c09",
                "c10",
                "c11",
                "c12",
                "c13",
                "c14",
                "c15",
                "c16"
              ],
              "enumTitles": [
                "Incorporation / new branch (oprichting / constitution)",
                "Termination: dissolution, liquidation, judicial reorganisation (einde / fin)",
                "Company name (benaming / dénomination)",
                "Registered office (maatschappelijke zetel / siège social)",
                "Other addresses (adressen / adresses)",
                "Corporate purpose (doel / objet)",
                "Capital, shares (kapitaal / capital)",
                "Resignations, appointments (ontslagen - benoemingen / démissions, nominations)",
                "General meeting (algemene vergadering / assemblée générale)",
                "Financial year (boekjaar / année comptable)",
                "Articles of association (statuten / statuts)",
                "Change of legal form (wijziging rechtsvorm / modification forme juridique)",
                "Restructuring: merger, demerger (herstructurering / restructuration)",
                "Annual accounts (jaarrekeningen / comptes annuels)",
                "Miscellaneous (diversen / divers)",
                "Ex-officio deletion of the enterprise number (ambtshalve doorhaling / radiation d'office)"
              ]
            }
          },
          "legalForm": {
            "title": "Legal form",
            "enum": [
              "",
              "56",
              "1",
              "60",
              "57",
              "13",
              "15",
              "7",
              "5",
              "2",
              "4",
              "3",
              "25",
              "24",
              "26",
              "23",
              "11",
              "12",
              "54"
            ],
            "type": "string",
            "description": "Only publications of companies with this legal form (the gazette's own filter). Company publications only.",
            "default": ""
          },
          "postalCode": {
            "title": "Postal code",
            "type": "string",
            "description": "Registered-office postal code, e.g. \"1000\" (Brussels) or \"3500\" (Hasselt). Company publications only."
          },
          "municipality": {
            "title": "Municipality",
            "type": "string",
            "description": "Registered-office municipality as the gazette spells it, e.g. \"hasselt\", \"bruxelles\" (the form's Adres / Localité field). Company publications only."
          },
          "searchQuery": {
            "title": "Title contains (gazette)",
            "type": "string",
            "description": "Gazette publications only: keep entries whose title or issuing authority contains this text, e.g. \"orthoptist\" or \"Vlaamse Regering\". Accents and case are ignored."
          },
          "documentType": {
            "title": "Document type (gazette)",
            "type": "string",
            "description": "Gazette publications only: keep entries of this document type, e.g. \"Koninklijk besluit\", \"Arrêté royal\", \"Decreet\", \"Wet\"."
          },
          "onlyIndexed": {
            "title": "Only rows with an act type",
            "type": "boolean",
            "description": "Skip publications the gazette lists without address, legal form and act type (on 2026-10-15 that was 437 of the day's 777). Company publications only.",
            "default": false
          },
          "fullTextQuery": {
            "title": "Text inside the act",
            "type": "string",
            "description": "Keep only publications whose own text contains this phrase, e.g. \"faillissement\", \"vereffening\" or a person's name, with a snippet in fullTextMatch. Reads each act's PDF (or gazette article), so it is slower; scanned acts without a text layer never match."
          },
          "onlyNew": {
            "title": "Only new publications",
            "type": "boolean",
            "description": "Deliver only publications that earlier runs with the same monitor name have not delivered. The first run delivers everything in the window.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "type": "string",
            "description": "Keeps one monitor's memory apart from another's, e.g. \"portfolio-a\" or \"new-companies-antwerp\".",
            "default": "default"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 0,
            "maximum": 200000,
            "type": "integer",
            "description": "Stop after this many delivered publications (billed rows). 0 = no limit. A company search returns 100 rows per page; one working day of the Annexes holds roughly 800-1,100 publications.",
            "default": 50
          },
          "language": {
            "title": "Interface language",
            "enum": [
              "nl",
              "fr",
              "de"
            ],
            "type": "string",
            "description": "The gazette edition that is searched. Company publications are listed in the language of each filing whatever you pick (see filingLanguage); gazette titles come in this language.",
            "default": "nl"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "The gazette only answers European residential IPs (datacenter and North-American IPs get \"Request Rejected\"). Keep RESIDENTIAL with a European country (BE, NL, FR, DE all work).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "BE"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}