{
  "openapi": "3.0.1",
  "info": {
    "title": "BODACC Scraper: French Insolvencies, Business Sales & Filings",
    "description": "BODACC notices of French companies from DILA’s official daily files: insolvency judgments (liquidation, redressement, sauvegarde), business sales with price, creations, changes, removals and accounts filings, with SIREN, court, address and register data. Export to JSON, CSV or Excel, or via API.",
    "version": "1.0",
    "x-build-id": "WWhnWwP7M9DvVh56Z"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/steadyscrape~bodacc-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-steadyscrape-bodacc-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/steadyscrape~bodacc-scraper/runs": {
      "post": {
        "operationId": "runs-sync-steadyscrape-bodacc-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/steadyscrape~bodacc-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-steadyscrape-bodacc-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": {
          "noticeTypes": {
            "title": "Notice types",
            "type": "array",
            "description": "The BODACC families to read, as bodacc.fr names them. Empty reads all seven (only insolvency when a procedure or stage is picked below). A day of all seven is ~14,000 company notices, most of them accounts filings.",
            "items": {
              "type": "string",
              "enum": [
                "insolvency",
                "sale",
                "creation",
                "registration",
                "change",
                "removal",
                "accounts"
              ],
              "enumTitles": [
                "Procédures collectives",
                "Ventes et cessions",
                "Créations",
                "Immatriculations",
                "Modifications diverses",
                "Radiations",
                "Dépôts des comptes"
              ]
            }
          },
          "publishedInLastDays": {
            "title": "Published in the last days",
            "minimum": 0,
            "maximum": 366,
            "type": "integer",
            "description": "Notices of the BODACC issues published in the last N days, up to today (Paris time). <code>0</code> is today only. Ideal for a schedule: a daily run with <code>1</code> and <b>Only new notices</b> on lists each new notice once. Ignored when <b>Published from</b> or <b>Published to</b> is set.",
            "default": 7
          },
          "publishedFrom": {
            "title": "Published from",
            "type": "string",
            "description": "First publication day (YYYY-MM-DD). DILA keeps the daily files of the current year only, so earlier days come back as a free <code>not_covered</code> row. Empty with <b>Published to</b> set means 1 January."
          },
          "publishedTo": {
            "title": "Published to",
            "type": "string",
            "description": "Last publication day (YYYY-MM-DD), included. Empty means today."
          },
          "departments": {
            "title": "Départements",
            "type": "array",
            "description": "Keep notices of any of these départements (<code>75</code>, <code>06</code>, <code>2A</code>, <code>974</code>…): BODACC files each notice under the département of the court or registry that sent it. Empty keeps all of France.",
            "items": {
              "type": "string",
              "enum": [
                "01",
                "02",
                "03",
                "04",
                "05",
                "06",
                "07",
                "08",
                "09",
                "10",
                "11",
                "12",
                "13",
                "14",
                "15",
                "16",
                "17",
                "18",
                "19",
                "21",
                "22",
                "23",
                "24",
                "25",
                "26",
                "27",
                "28",
                "29",
                "30",
                "31",
                "32",
                "33",
                "34",
                "35",
                "36",
                "37",
                "38",
                "39",
                "40",
                "41",
                "42",
                "43",
                "44",
                "45",
                "46",
                "47",
                "48",
                "49",
                "50",
                "51",
                "52",
                "53",
                "54",
                "55",
                "56",
                "57",
                "58",
                "59",
                "60",
                "61",
                "62",
                "63",
                "64",
                "65",
                "66",
                "67",
                "68",
                "69",
                "70",
                "71",
                "72",
                "73",
                "74",
                "75",
                "76",
                "77",
                "78",
                "79",
                "80",
                "81",
                "82",
                "83",
                "84",
                "85",
                "86",
                "87",
                "88",
                "89",
                "90",
                "91",
                "92",
                "93",
                "94",
                "95",
                "2A",
                "2B",
                "971",
                "972",
                "973",
                "974",
                "975",
                "976",
                "977",
                "978",
                "986",
                "987",
                "988"
              ]
            }
          },
          "courts": {
            "title": "Courts or registries",
            "maxItems": 100,
            "type": "array",
            "description": "Keep notices of a commercial court or registry whose name contains any of these words, without case or accents: <code>cannes</code>, <code>paris</code>, <code>activites economiques de lyon</code>. Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "procedures": {
            "title": "Insolvency procedures",
            "type": "array",
            "description": "Keep insolvency judgments of these procedures. Picked alone, only insolvency notices are read.",
            "items": {
              "type": "string",
              "enum": [
                "liquidation",
                "receivership",
                "safeguard",
                "professional_recovery",
                "conciliation"
              ],
              "enumTitles": [
                "Liquidation judiciaire",
                "Redressement judiciaire",
                "Sauvegarde (incl. accélérée)",
                "Rétablissement professionnel",
                "Conciliation / accord homologué"
              ]
            }
          },
          "judgmentStages": {
            "title": "Judgment stages",
            "type": "array",
            "description": "Keep insolvency judgments at these stages: openings are the new insolvencies, closures the companies that end. Picked alone, only insolvency notices are read.",
            "items": {
              "type": "string",
              "enum": [
                "opening",
                "conversion",
                "plan",
                "closure",
                "claims",
                "sanction",
                "appeal",
                "retraction",
                "other"
              ],
              "enumTitles": [
                "Opening (jugement d’ouverture, extension)",
                "Conversion (e.g. redressement into liquidation)",
                "Plan (arrêt, modification, homologation)",
                "Closure (clôture, fin de procédure)",
                "Claims lists and distributions (état des créances)",
                "Sanctions of directors (faillite personnelle, interdiction de gérer)",
                "Court of appeal rulings",
                "Retractions",
                "Other judgments"
              ]
            }
          },
          "sirens": {
            "title": "SIREN numbers",
            "maxItems": 10000,
            "type": "array",
            "description": "Keep notices of these companies only: 9-digit SIREN numbers, spaces and dots allowed (<code>841 863 871</code>). Up to 10,000, to watch a portfolio of customers or suppliers.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keywords",
            "type": "string",
            "description": "Keep notices whose company name, activity, category or delivered texts contain every one of these words, without case or accents (<code>restaurant</code>, <code>boulangerie</code>, <code>transport routier</code>)."
          },
          "includeCorrections": {
            "title": "Include corrections and cancellations",
            "type": "boolean",
            "description": "Deliver notices that correct (<code>rectificatif</code>) or cancel (<code>annulation</code>) an earlier one too, with a link to it. Turn off for original notices only.",
            "default": true
          },
          "includeRegisterData": {
            "title": "Add register data",
            "type": "boolean",
            "description": "For each notice with a SIREN, add the company’s record from the State’s open register (Recherche d’entreprises: Insee’s Sirene and INPI’s RNE): official name and legal form, NAF/APE activity, workforce band, creation date, active or ceased, and head office. Directors are never added. Such a row is the dearer <code>notice-with-register</code> event; companies that object to prospecting get no record and the cheaper event.",
            "default": false
          },
          "onlyNewNotices": {
            "title": "Only new notices",
            "type": "boolean",
            "description": "Skip notices an earlier run of this same search already delivered (kept for the last 200,000 notices in a store named <code>steadyscrape-bodacc-scraper-state</code>). Made for scheduled runs: they deliver and charge each notice once.",
            "default": false
          },
          "maxNotices": {
            "title": "Max notices",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Stop after this many notices were delivered (1 to 100,000). The run's spending limit is respected too.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}