{
  "openapi": "3.0.1",
  "info": {
    "title": "BODACC France: new notices & SIREN / nouvelles annonces",
    "description": "Monitor official BODACC notices by SIREN, company, department and date; skip prior deliveries. / Veille DILA, nouvelles annonces sans doublons entre runs.",
    "version": "0.1",
    "x-build-id": "FmkVclsfEzyJajm1v"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/wavy_millpond~bodacc-france/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-wavy_millpond-bodacc-france",
        "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/wavy_millpond~bodacc-france/runs": {
      "post": {
        "operationId": "runs-sync-wavy_millpond-bodacc-france",
        "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/wavy_millpond~bodacc-france/run-sync": {
      "post": {
        "operationId": "run-sync-wavy_millpond-bodacc-france",
        "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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "demo",
              "live"
            ],
            "type": "string",
            "description": "Demo: one synthetic row without network or result charge; filters and history ignored. / Démo : une ligne fictive sans réseau ni événement ; filtres et historique ignorés. Live: official source / source officielle.",
            "default": "demo"
          },
          "maxItems": {
            "title": "Maximum results / Maximum de résultats",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "New rows emitted per run, 1–1,000, subject to budget. Historic skipped IDs do not count. / Lignes nouvelles émises par run, 1 à 1 000, selon budget ; annonces ignorées exclues.",
            "default": 10
          },
          "query": {
            "title": "Company name / Nom commercial",
            "pattern": "^[^\\u0000-\\u001f\\u007f]*$",
            "maxLength": 150,
            "type": "string",
            "description": "Approximate/prefix ODSQL search on commercant only. Empty: no filter. / Recherche ODSQL approximative/préfixe sur commercant uniquement. Vide : aucun filtre.",
            "default": ""
          },
          "sirens": {
            "title": "SIRENs / SIREN",
            "maxItems": 20,
            "type": "array",
            "description": "Up to 20 nine-digit SIRENs without spaces; empty means all. / Jusqu’à 20 SIREN de neuf chiffres sans espaces ; vide : tous.",
            "items": {
              "type": "string",
              "pattern": "^\\d{9}$"
            },
            "default": []
          },
          "departments": {
            "title": "Departments / Départements",
            "maxItems": 20,
            "type": "array",
            "description": "Filing departments: 75, 2A, 974. Empty means all. / Départements de dépôt : 75, 2A, 974. Vide : tous.",
            "items": {
              "type": "string",
              "pattern": "^(?:\\d{2}|2[ABab]|\\d{3})$"
            },
            "default": []
          },
          "families": {
            "title": "Notice families / Familles",
            "maxItems": 20,
            "type": "array",
            "description": "Official familleavis codes, e.g. creation. Empty means all; wrong codes may return zero rows. / Codes officiels familleavis, par exemple creation. Vide : toutes ; erreur de code : résultat possiblement vide.",
            "items": {
              "type": "string",
              "pattern": "^[a-z_]{1,60}$"
            },
            "default": []
          },
          "daysBack": {
            "title": "Days back / Nombre de jours",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Publication window, 1–90 UTC days including today; changing this resets history scope. / Fenêtre de 1 à 90 jours UTC incluant aujourd’hui ; la modifier ouvre un historique indépendant.",
            "default": 7
          },
          "onlyNew": {
            "title": "Only new notices / Nouvelles annonces uniquement",
            "type": "boolean",
            "description": "Skip IDs delivered in prior runs with the same stateKey and normalized filters. Live only; rejects uncertain/corrupt state. / Ignorer les identifiants déjà livrés avec la même clé et les mêmes filtres normalisés. Réel uniquement ; état incertain/corrompu refusé.",
            "default": false
          },
          "stateKey": {
            "title": "Monitoring key / Clé de veille",
            "pattern": "^[A-Za-z0-9_-]{1,64}$",
            "minLength": 1,
            "maxLength": 64,
            "type": "string",
            "description": "Private history namespace, 1–64 letters/digits/_/-. Default: default. New key or changed filters starts fresh and can bill old matches again. / Clé d’historique privé, 1 à 64 lettres/chiffres/_/-. Nouvelle clé ou nouveaux filtres : nouvelle veille et refacturation possible.",
            "default": "default"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}