{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Signals (BODACC) – Insolvencies & New Companies",
    "description": "Daily French company events from official BODACC open data: liquidations, receiverships, safeguard, sale plans, new incorporations, strike-offs and business sales. Filter by département and activity, add SIRENE context (NAF, headcount, revenue) and get only new notices.",
    "version": "1.0",
    "x-build-id": "v2bmHtta4sUEYpFhN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/replay~bodacc-signaux-b2b/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-replay-bodacc-signaux-b2b",
        "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/replay~bodacc-signaux-b2b/runs": {
      "post": {
        "operationId": "runs-sync-replay-bodacc-signaux-b2b",
        "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/replay~bodacc-signaux-b2b/run-sync": {
      "post": {
        "operationId": "run-sync-replay-bodacc-signaux-b2b",
        "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": {
          "signals": {
            "title": "Signals / Signaux",
            "type": "array",
            "description": "Which BODACC events to return. Results are balanced across the selected types (equal share of maxItems, unused share redistributed).",
            "items": {
              "type": "string",
              "enum": [
                "liquidation_opening",
                "receivership_opening",
                "safeguard_opening",
                "conversion_to_liquidation",
                "sale_plan",
                "continuation_plan",
                "closure",
                "creation",
                "radiation",
                "business_sale"
              ],
              "enumTitles": [
                "Ouverture liquidation judiciaire",
                "Ouverture redressement judiciaire",
                "Ouverture sauvegarde",
                "Conversion en liquidation",
                "Plan de cession",
                "Plan de redressement / sauvegarde",
                "Clôture de procédure",
                "Création / immatriculation",
                "Radiation",
                "Vente de fonds de commerce"
              ]
            },
            "default": [
              "liquidation_opening",
              "receivership_opening",
              "safeguard_opening",
              "sale_plan"
            ]
          },
          "departments": {
            "title": "Départements",
            "type": "array",
            "description": "Department codes, e.g. 69, 75, 2A, 971. Empty = all of France.",
            "items": {
              "type": "string"
            }
          },
          "activityKeywords": {
            "title": "Activity keywords / Mots-clés d'activité",
            "type": "array",
            "description": "Full-text search in the notice (activity, company name). One query per keyword, results merged. Example: restaurant, maçonnerie, transport. Empty = all activities.",
            "items": {
              "type": "string"
            }
          },
          "sinceDays": {
            "title": "Published within (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only notices published in the BODACC during the last N days.",
            "default": 7
          },
          "minCapitalEur": {
            "title": "Minimum share capital (EUR)",
            "minimum": 0,
            "type": "integer",
            "description": "Keeps companies whose share capital stated in the notice is at least this amount. Capital is mostly stated in creations, rarely in insolvency notices."
          },
          "includeUnknownCapital": {
            "title": "Keep notices without stated capital",
            "type": "boolean",
            "description": "Only used with 'Minimum share capital'. If true, notices that do not state any capital are kept; if false, they are dropped.",
            "default": true
          },
          "enrichSirene": {
            "title": "Add SIRENE context",
            "type": "boolean",
            "description": "Adds NAF code, INSEE staff band, company category (PME/ETI/GE), creation date and last published revenue from the official API Recherche d'entreprises. Never director names.",
            "default": true
          },
          "minStaffBand": {
            "title": "Minimum INSEE staff band",
            "enum": [
              "01",
              "02",
              "03",
              "11",
              "12",
              "21",
              "22",
              "31",
              "32",
              "41"
            ],
            "type": "string",
            "description": "Keeps companies with at least this INSEE staff band (uses SIRENE)."
          },
          "includeUnknownStaff": {
            "title": "Keep companies with unknown staff band",
            "type": "boolean",
            "description": "Only used with 'Minimum INSEE staff band'.",
            "default": false
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "all",
              "new-only",
              "lookup"
            ],
            "type": "string",
            "description": "'new-only' remembers returned notices per watchlist name, so a daily scheduled run only delivers (and charges) new ones. 'lookup' (for AI agents / MCP): give 'sirens'; returns one compact item per SIREN with its latest BODACC notices and filtered SIRENE context. All other filters are ignored in this mode.",
            "default": "all"
          },
          "sirens": {
            "title": "SIRENs (lookup mode)",
            "type": "array",
            "description": "Only used when mode='lookup'. List of 9-digit French SIREN company numbers (spaces allowed), max 20. Example: [\"552032534\"]. Each SIREN found = 1 'signal' event (+1 'sirene-context' if SIRENE data is returned). Sole traders / natural persons are not returned (privacy) and not charged.",
            "items": {
              "type": "string"
            }
          },
          "maxNotices": {
            "title": "Max notices per SIREN (lookup mode)",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Only used when mode='lookup'. Number of most recent BODACC notices returned per SIREN (newest first).",
            "default": 10
          },
          "stateKey": {
            "title": "Watchlist name (new-only)",
            "type": "string",
            "description": "Different names keep separate 'already returned' lists, e.g. one per client or territory.",
            "default": "default"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of notices returned (and charged) in this run.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}