{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company Watch — SIREN Change & BODACC Alerts",
    "description": "Monitor a list of French companies (SIREN) on a schedule and get only what changed since the last run: status, head office address, officers, name, activity code, new BODACC notices (insolvency, sale, strike-off). Optional Slack, Discord or webhook alert. Official open data, independent tool.",
    "version": "0.1",
    "x-build-id": "BeTGLQu0VKn26OLBV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/openregistry~france-company-watch/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-openregistry-france-company-watch",
        "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/openregistry~france-company-watch/runs": {
      "post": {
        "operationId": "runs-sync-openregistry-france-company-watch",
        "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/openregistry~france-company-watch/run-sync": {
      "post": {
        "operationId": "run-sync-openregistry-france-company-watch",
        "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",
        "required": [
          "sirens"
        ],
        "properties": {
          "sirens": {
            "title": "Companies to watch (SIREN)",
            "type": "array",
            "description": "9-digit SIREN numbers (a 14-digit SIRET is cut to its SIREN, spaces are ignored). Up to 5,000 per watchlist.",
            "items": {
              "type": "string"
            }
          },
          "watchlistName": {
            "title": "Watchlist name",
            "type": "string",
            "description": "Recommended for schedules. The memory of the previous run is stored under this name, so you can add or remove companies without losing it. Leave empty and the memory is tied to the exact input (any edit starts a new baseline)."
          },
          "watch": {
            "title": "What to watch",
            "type": "array",
            "description": "Leave empty for everything except headcount range (updated once a year, rarely useful as an alert).",
            "items": {
              "type": "string",
              "enum": [
                "status",
                "name",
                "headOffice",
                "activity",
                "legalForm",
                "officers",
                "employeeRange",
                "bodacc"
              ],
              "enumTitles": [
                "Status (active / closed)",
                "Company name",
                "Head office (address or SIRET)",
                "Activity code (NAF)",
                "Legal form",
                "Officers (added / removed)",
                "Headcount range",
                "New BODACC notices"
              ]
            }
          },
          "bodaccNoticeTypes": {
            "title": "BODACC notice types",
            "type": "array",
            "description": "Leave empty for every type except annual accounts filings.",
            "items": {
              "type": "string",
              "enum": [
                "insolvency",
                "sale",
                "strikeOff",
                "modification",
                "registration",
                "creation",
                "conciliation",
                "professionalRecovery",
                "misc",
                "accounts"
              ],
              "enumTitles": [
                "Insolvency proceedings",
                "Business sales and transfers",
                "Strike-offs",
                "Changes (address, managers, capital…)",
                "Registrations",
                "Creations",
                "Conciliation",
                "Professional recovery",
                "Miscellaneous",
                "Annual accounts filings"
              ]
            }
          },
          "webhookUrl": {
            "title": "Alert URL (Slack, Discord or any webhook)",
            "type": "string",
            "description": "Optional. When something changed, the run POSTs a JSON message to this URL: a readable summary for Slack incoming webhooks and Discord webhooks, the full list of changes for any other URL (Zapier, Make, n8n, your server)."
          },
          "notifyWhenNothingNew": {
            "title": "Also notify when nothing changed",
            "type": "boolean",
            "description": "Send a short 'no change' message after each run (a heartbeat).",
            "default": false
          },
          "emitBaseline": {
            "title": "Show the current state on the first run",
            "type": "boolean",
            "description": "The first time a company is checked, a free 'baseline' row shows what will be watched. No alert is raised on the first run.",
            "default": true
          },
          "includeOptedOut": {
            "title": "Include companies that opted out of commercial reuse",
            "type": "boolean",
            "description": "Some companies object to the commercial reuse of their register data (prospecting). They are skipped and not charged by default. Turn on only for non-prospecting uses such as supplier, credit or compliance monitoring.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}