{
  "openapi": "3.0.1",
  "info": {
    "title": "French Company Leads & Dirigeants — SIRENE BODACC (MCP)",
    "description": "French company data and B2B leads: sociétés françaises + dirigeants (SIRENE), BODACC announcements — one row per executive (name, role, birth year) with full company record. Company finder for prospecting. MCP-ready for AI agents.",
    "version": "0.0",
    "x-build-id": "833qhR0AggVZOXfCd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/amygraphics~france-business-leads-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-amygraphics-france-business-leads-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/amygraphics~france-business-leads-scraper/runs": {
      "post": {
        "operationId": "runs-sync-amygraphics-france-business-leads-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/amygraphics~france-business-leads-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-amygraphics-france-business-leads-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": {
          "mode": {
            "title": "Mode",
            "enum": [
              "bodacc",
              "sirene",
              "dirigeants"
            ],
            "type": "string",
            "description": "`bodacc` = official announcements, published daily (fresh leads and insolvency monitoring). `sirene` = company directory records (one row per company, executives nested). `dirigeants` = one lead row per executive, ready for B2B prospection (name, role, birth year + full company data).",
            "default": "bodacc"
          },
          "announcementFamilies": {
            "title": "BODACC — announcement families",
            "type": "array",
            "description": "BODACC mode only. Leave empty for all families. Créations + Immatriculations = brand-new businesses (sales leads); Procédures collectives = insolvency filings (risk monitoring).",
            "items": {
              "type": "string"
            },
            "default": [
              "Créations",
              "Immatriculations"
            ]
          },
          "dateFrom": {
            "title": "BODACC — published from",
            "type": "string",
            "description": "BODACC mode only. Start date (YYYY-MM-DD). Leave empty for the last 7 days. Each day of announcements is published by the French government.",
            "default": ""
          },
          "dateTo": {
            "title": "BODACC — published until",
            "type": "string",
            "description": "BODACC mode only. End date (YYYY-MM-DD). Leave empty for today.",
            "default": ""
          },
          "departments": {
            "title": "Departments (both modes)",
            "type": "array",
            "description": "French department codes, e.g. 75, 93, 13, 2A, 2B, 971. Leave empty for all of France.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keyword": {
            "title": "BODACC — keyword filter",
            "type": "string",
            "description": "BODACC mode only. Full-text search inside the announcements, e.g. 'plomberie', 'restaurant', a city name or a person's name.",
            "default": ""
          },
          "enrichWithSirene": {
            "title": "BODACC — enrich with SIRENE data",
            "type": "boolean",
            "description": "BODACC mode only. Adds executives, employee bracket, NAF code, head-office address and establishment count for each company (one extra API call per record).",
            "default": false
          },
          "searchQuery": {
            "title": "SIRENE — search terms",
            "type": "string",
            "description": "SIRENE and dirigeants modes. Company name, trade name or keywords, e.g. 'plomberie paris' or 'boulangerie'. Leave empty to browse by NAF code and location only (best for building lists).",
            "default": ""
          },
          "nafCodes": {
            "title": "SIRENE — NAF/APE activity codes",
            "type": "array",
            "description": "SIRENE and dirigeants modes. Activity codes such as 43.22A (plumbing), 56.10A (restaurants), 68.20B (real estate rental).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "employeeRanges": {
            "title": "SIRENE — employee brackets",
            "type": "array",
            "description": "SIRENE and dirigeants modes. Official INSEE brackets: 00 (0 salarié), 01 (1-2), 02 (3-5), 03 (6-9), 11 (10-19), 12 (20-49), 21 (50-99), 22 (100-199), 31 (200-249), 32 (250-499), 41 (500-999), 42 (1000-1999), 51 (2000-4999), 52 (5000-9999), 53 (10000+).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "companyCategories": {
            "title": "SIRENE — company size category",
            "type": "array",
            "description": "SIRENE and dirigeants modes. TPE, PME, ETI or GE. Leave empty for all sizes.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "status": {
            "title": "SIRENE — administrative status",
            "enum": [
              "all",
              "active",
              "closed"
            ],
            "type": "string",
            "description": "SIRENE and dirigeants modes. For dirigeants, 'All' still keeps active companies only — closed ones make poor leads.",
            "default": "all"
          },
          "maxResults": {
            "title": "Max records to extract",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of records to extract in this run. In dirigeants mode one row = one executive (a company with 3 executives yields 3 rows). One billable event per extracted record.",
            "default": 200
          },
          "chargedEventName": {
            "title": "Billable event name",
            "type": "string",
            "description": "Pay-per-event name charged for each successfully extracted record.",
            "default": "record-extracted"
          },
          "minRevenue": {
            "title": "Dirigeants — minimum yearly revenue (€)",
            "type": "integer",
            "description": "Dirigeants mode only. Only companies whose last known yearly revenue is at least this amount, e.g. 500000. Leave empty for no revenue filter."
          },
          "includeLegalEntities": {
            "title": "Dirigeants — include companies as executives",
            "type": "boolean",
            "description": "Dirigeants mode only. By default only natural persons are returned (real decision-makers). Enable to also get parent companies and audit firms sitting on the board.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}