{
  "openapi": "3.0.1",
  "info": {
    "title": "France Bodacc Scraper",
    "description": "Search and monitor France's official BODACC legal-announcements gazette: insolvency proceedings, business sales, registrations, modifications, deregistrations and account filings. Filter by company name, SIREN, department, region, announcement type and date range, or watch for new filings.",
    "version": "1.0",
    "x-build-id": "pngunBTk05iOw5tcN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/normdata~france-bodacc-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-normdata-france-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/normdata~france-bodacc-scraper/runs": {
      "post": {
        "operationId": "runs-sync-normdata-france-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/normdata~france-bodacc-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-normdata-france-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": {
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Caps how many announcement rows this run writes. Starts at 10 for a quick sample; raise it for a full run."
          },
          "mode": {
            "title": "What to do",
            "enum": [
              "search",
              "lookup",
              "monitor"
            ],
            "type": "string",
            "description": "Search filters the whole gazette. Look up returns the full BODACC history for exact SIREN numbers. Monitor returns announcements published on or after a given date, for a recurring watch.",
            "default": "search"
          },
          "query": {
            "title": "Company name contains (for Search and Monitor)",
            "type": "string",
            "description": "Matches the announcement's registered company name. Leave empty to use the filters below instead, or use Look up mode for an exact SIREN."
          },
          "keywords": {
            "title": "Company name contains any of (for Search and Monitor)",
            "type": "array",
            "description": "Matches if the company name contains any of these terms (OR). Useful for scanning a trade or sector, e.g. boulangerie, patisserie.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Department codes (for Search and Monitor)",
            "type": "array",
            "description": "Two or three-digit French department codes, e.g. 75, 69, 971. Matches any of the listed departments.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions (for Search and Monitor)",
            "uniqueItems": true,
            "type": "array",
            "description": "Matches any of the selected administrative regions. Independent of the department filter above; set either or both.",
            "items": {
              "type": "string",
              "enum": [
                "Île-de-France",
                "Auvergne-Rhône-Alpes",
                "Provence-Alpes-Côte d'Azur",
                "Occitanie",
                "Nouvelle-Aquitaine",
                "Grand Est",
                "Hauts-de-France",
                "Pays de la Loire",
                "Bretagne",
                "Normandie",
                "Bourgogne-Franche-Comté",
                "Centre-Val de Loire",
                "La Réunion",
                "Corse",
                "Guadeloupe",
                "Martinique",
                "Guyane",
                "Mayotte",
                "Saint-Pierre-et-Miquelon",
                "Wallis et Futuna"
              ]
            }
          },
          "announcementFamilies": {
            "title": "Announcement type (for Search and Monitor)",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these announcement families, e.g. just insolvency proceedings for credit-risk monitoring.",
            "items": {
              "type": "string",
              "enum": [
                "Dépôts des comptes",
                "Modifications diverses",
                "Créations",
                "Radiations",
                "Procédures collectives",
                "Ventes et cessions",
                "Immatriculations",
                "Annonces diverses",
                "Procédures de conciliation",
                "Procédures de rétablissement professionnel"
              ],
              "enumTitles": [
                "Account filings",
                "General modifications",
                "New registrations",
                "Deregistrations",
                "Insolvency proceedings",
                "Business sales and transfers",
                "Registry entries",
                "Other announcements",
                "Conciliation proceedings",
                "Professional recovery proceedings"
              ]
            }
          },
          "noticeTypes": {
            "title": "Notice status (for Search and Monitor)",
            "uniqueItems": true,
            "type": "array",
            "description": "Keep only these notice statuses. Leave empty to include corrections and cancellations too.",
            "items": {
              "type": "string",
              "enum": [
                "Avis initial",
                "Avis rectificatif",
                "Avis d'annulation"
              ],
              "enumTitles": [
                "Initial notice",
                "Correction notice",
                "Cancellation notice"
              ]
            }
          },
          "dateFrom": {
            "title": "Published from (for Search)",
            "type": "string",
            "description": "YYYY-MM-DD. Only announcements published on or after this date."
          },
          "dateTo": {
            "title": "Published to (for Search)",
            "type": "string",
            "description": "YYYY-MM-DD. Only announcements published on or before this date."
          },
          "dedupeBySiren": {
            "title": "One row per company (for Search)",
            "type": "boolean",
            "description": "Keep only the most recent matching announcement per SIREN instead of every filing.",
            "default": false
          },
          "sortNewestFirst": {
            "title": "Newest first (for Search)",
            "type": "boolean",
            "description": "Order results by publication date, most recent first.",
            "default": true
          },
          "sirens": {
            "title": "SIREN numbers (for Look up)",
            "type": "array",
            "description": "Nine-digit SIREN numbers. Returns every BODACC announcement on record for each one (its full legal history), newest first. Spaces and dots are stripped.",
            "items": {
              "type": "string"
            }
          },
          "since": {
            "title": "Watch since (for Monitor)",
            "type": "string",
            "description": "YYYY-MM-DD. Returns announcements published on or after this date that also match the Search and Monitor filters above. Set this to yesterday's date and schedule the Actor daily to get a running feed of new filings."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}