{
  "openapi": "3.0.1",
  "info": {
    "title": "France BODACC Monitor: new companies & insolvency notices",
    "description": "Get announcements from the BODACC, the French official gazette of commercial announcements, as flat JSON rows: new company creations, insolvency proceedings, business sales and strike-offs.",
    "version": "0.0",
    "x-build-id": "drk7EKuiYJPFucf0n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/goobertje~france-bodacc-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-goobertje-france-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/goobertje~france-bodacc-monitor/runs": {
      "post": {
        "operationId": "runs-sync-goobertje-france-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/goobertje~france-bodacc-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-goobertje-france-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": {
          "announcementFamilies": {
            "title": "Announcement families",
            "type": "array",
            "description": "Which kinds of announcements to return. Default: creation and collective (new companies and insolvency proceedings). Leave the list empty to return every family. Example: [\"creation\", \"vente\"].",
            "items": {
              "type": "string",
              "enum": [
                "creation",
                "collective",
                "vente",
                "radiation",
                "modification",
                "dpc",
                "immatriculation",
                "conciliation",
                "retablissement_professionnel",
                "divers"
              ],
              "enumTitles": [
                "Company creations (Créations)",
                "Insolvency proceedings (Procédures collectives)",
                "Business sales and transfers (Ventes et cessions)",
                "Strike-offs (Radiations)",
                "Changes to a company (Modifications diverses)",
                "Annual accounts filings (Dépôts des comptes)",
                "Registrations (Immatriculations)",
                "Conciliation proceedings (Procédures de conciliation)",
                "Professional recovery proceedings (Rétablissement professionnel)",
                "Miscellaneous announcements (Annonces diverses)"
              ]
            },
            "default": [
              "creation",
              "collective"
            ]
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Keep announcements from these French departments, by code: two digits (\"75\" Paris, \"13\" Bouches-du-Rhône), \"2A\" or \"2B\" for Corsica, or a three-digit overseas code (\"971\"). Up to 50. Empty means all of France. Example: [\"75\", \"92\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "Keep announcements whose postal code is one of these (exactly 5 digits each). Up to 50. Empty means any. Example: [\"75001\", \"69002\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "sirens": {
            "title": "SIREN numbers",
            "type": "array",
            "description": "Keep announcements that mention one of these SIREN numbers (9 digits, spaces allowed; a 14-digit SIRET is reduced to its SIREN). Use this to watch specific companies. Up to 50. Empty means any. Example: [\"132488008\"].",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "nameContains": {
            "title": "Company name contains",
            "type": "string",
            "description": "Keep announcements whose company name contains these words (word match, case-insensitive). Only letters, digits, spaces, hyphens and apostrophes are used; other characters are replaced by spaces. Empty means any. Example: \"boulangerie\"."
          },
          "publishedWithinDays": {
            "title": "Published within last days",
            "minimum": 1,
            "maximum": 3660,
            "type": "integer",
            "description": "Only announcements published in the last N days, counted in Paris time (1 to 3660). Ignored when Published from or Published until is set. Default: 7. Example: 3.",
            "default": 7
          },
          "dateFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication date to include (YYYY-MM-DD). Overrides Published within last days. Leave empty to use the day window. Example: \"2026-10-01\"."
          },
          "dateTo": {
            "title": "Published until",
            "type": "string",
            "description": "Last publication date to include (YYYY-MM-DD). Overrides Published within last days. Leave empty for today. Example: \"2026-10-31\"."
          },
          "onlyNew": {
            "title": "Only new announcements (delta mode)",
            "type": "boolean",
            "description": "Remember every delivered announcement id in a named key-value store and skip them on later runs, so a daily schedule only returns announcements not delivered before. Skipped announcements are not billed. The first run returns everything that matches.",
            "default": false
          },
          "stateStoreName": {
            "title": "State store name",
            "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$",
            "minLength": 3,
            "maxLength": 63,
            "type": "string",
            "description": "Name of the persistent key-value store that holds the delta state. Use a different name per feed (for example per department set). Only lowercase letters, digits and hyphens are allowed (not at the start or end). Default: \"bodacc-monitor-state\".",
            "default": "bodacc-monitor-state"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Maximum number of announcements (dataset items, each one billed) a run outputs; the run stops once reached. Announcements skipped in delta mode are not counted and not billed. Default: 100. Example: 20.",
            "default": 100
          },
          "requestDelaySecs": {
            "title": "Delay between requests (seconds)",
            "minimum": 1,
            "maximum": 30,
            "type": "number",
            "description": "Pause between requests to the BODACC API, to stay polite. Minimum 1, maximum 30. Default: 1.",
            "default": 1
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}