{
  "openapi": "3.0.1",
  "info": {
    "title": "France Company Leads – SIRENE, BODACC & New Businesses",
    "description": "Find and enrich French companies from official open data: search by NAF code, department, headcount, revenue or label (RGE, Qualiopi…), bulk-enrich SIREN/SIRET/VAT lists, and get daily new company creations & insolvency notices from BODACC. Directors, VAT, GPS, finances included.",
    "version": "1.0",
    "x-build-id": "kvir8djPiWL8iwUJ9"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cleardata-labs~france-company-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cleardata-labs-france-company-leads",
        "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/cleardata-labs~france-company-leads/runs": {
      "post": {
        "operationId": "runs-sync-cleardata-labs-france-company-leads",
        "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/cleardata-labs~france-company-leads/run-sync": {
      "post": {
        "operationId": "run-sync-cleardata-labs-france-company-leads",
        "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": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "What do you want to do?",
            "enum": [
              "search",
              "enrich",
              "bodacc"
            ],
            "type": "string",
            "description": "<b>Search</b>: find companies matching filters. <b>Enrich</b>: complete a list of SIREN / SIRET / VAT numbers or company names. <b>BODACC</b>: new company creations, insolvencies, sales and other legal notices for a date range (great for prospecting brand-new businesses).",
            "default": "search"
          },
          "maxResults": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Stop after this many results. You only pay for results delivered.",
            "default": 100
          },
          "query": {
            "title": "Keyword (name, address, director…)",
            "type": "string",
            "description": "Free-text search on company name, trade name, address or director names. Example: <code>boulangerie</code>, <code>agence web lyon</code>."
          },
          "nafCodes": {
            "title": "NAF / APE activity codes",
            "type": "array",
            "description": "One or more NAF codes, e.g. <code>62.01Z</code> (software), <code>43.22A</code> (plumbing), <code>56.10A</code> (restaurants). Formats 6201Z and 62.01Z both work.",
            "items": {
              "type": "string"
            }
          },
          "nafSections": {
            "title": "NAF sections",
            "type": "array",
            "description": "Broad activity sections (letters A to U), e.g. <code>F</code> = construction, <code>J</code> = information & communication.",
            "items": {
              "type": "string"
            }
          },
          "departments": {
            "title": "Departments",
            "type": "array",
            "description": "Department codes, e.g. <code>75</code>, <code>69</code>, <code>2A</code>, <code>971</code>.",
            "items": {
              "type": "string"
            }
          },
          "postalCodes": {
            "title": "Postal codes",
            "type": "array",
            "description": "5-digit postal codes, e.g. <code>75011</code>.",
            "items": {
              "type": "string"
            }
          },
          "regions": {
            "title": "Regions (INSEE codes)",
            "type": "array",
            "description": "Region codes, e.g. <code>11</code> Île-de-France, <code>84</code> Auvergne-Rhône-Alpes, <code>93</code> PACA.",
            "items": {
              "type": "string"
            }
          },
          "headcountRanges": {
            "title": "Headcount ranges",
            "type": "array",
            "description": "INSEE employee ranges.",
            "items": {
              "type": "string",
              "enum": [
                "NN",
                "00",
                "01",
                "02",
                "03",
                "11",
                "12",
                "21",
                "22",
                "31",
                "32",
                "41",
                "42",
                "51",
                "52",
                "53"
              ],
              "enumTitles": [
                "No employees",
                "0 (had employees during year)",
                "1-2",
                "3-5",
                "6-9",
                "10-19",
                "20-49",
                "50-99",
                "100-199",
                "200-249",
                "250-499",
                "500-999",
                "1000-1999",
                "2000-4999",
                "5000-9999",
                "10000+"
              ]
            }
          },
          "companyCategories": {
            "title": "Company size category",
            "type": "array",
            "description": "PME (SME), ETI (mid-size) or GE (large enterprise).",
            "items": {
              "type": "string",
              "enum": [
                "PME",
                "ETI",
                "GE"
              ],
              "enumTitles": [
                "PME – small & medium",
                "ETI – mid-size",
                "GE – large"
              ]
            }
          },
          "legalForms": {
            "title": "Legal form codes (catégorie juridique)",
            "type": "array",
            "description": "INSEE legal category codes, e.g. <code>5710</code> SAS, <code>5720</code> SASU, <code>5499</code> SARL, <code>5498</code> EURL, <code>6540</code> SCI, <code>9220</code> association.",
            "items": {
              "type": "string"
            }
          },
          "status": {
            "title": "Company status",
            "enum": [
              "active",
              "closed",
              "all"
            ],
            "type": "string",
            "description": "Filter on administrative status in the national register.",
            "default": "active"
          },
          "minRevenue": {
            "title": "Minimum revenue (€)",
            "type": "integer",
            "description": "Only companies with published accounts above this turnover."
          },
          "maxRevenue": {
            "title": "Maximum revenue (€)",
            "type": "integer",
            "description": "Only companies with published accounts below this turnover."
          },
          "minNetIncome": {
            "title": "Minimum net income (€)",
            "type": "integer",
            "description": "Only companies whose latest published net income is above this value."
          },
          "requiredLabels": {
            "title": "Must have label / certification",
            "type": "array",
            "description": "Keep only companies holding all the selected labels or certifications.",
            "items": {
              "type": "string",
              "enum": [
                "rge",
                "qualiopi",
                "bio",
                "ess",
                "training_organization",
                "mission_company",
                "entertainment_license",
                "living_heritage",
                "siae",
                "association",
                "egapro"
              ],
              "enumTitles": [
                "RGE (energy renovation)",
                "Qualiopi (training)",
                "Organic (Agence Bio)",
                "Social economy (ESS)",
                "Training organisation",
                "Société à mission",
                "Entertainment licence",
                "Entreprise du Patrimoine Vivant",
                "Insertion (SIAE)",
                "Association",
                "Egapro index published"
              ]
            }
          },
          "createdAfter": {
            "title": "Created after (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only companies created on or after this date."
          },
          "createdBefore": {
            "title": "Created before (YYYY-MM-DD)",
            "type": "string",
            "description": "Keep only companies created on or before this date."
          },
          "sortBySize": {
            "title": "Biggest companies first",
            "type": "boolean",
            "description": "Return companies with the most establishments first.",
            "default": false
          },
          "identifiers": {
            "title": "Identifiers to enrich",
            "type": "array",
            "description": "SIREN (9 digits), SIRET (14 digits), French VAT numbers (FRxx…) or company names — one per line.",
            "items": {
              "type": "string"
            }
          },
          "matchesPerName": {
            "title": "Matches per company name",
            "minimum": 1,
            "maximum": 25,
            "type": "integer",
            "description": "When an identifier is a name, how many best matches to return.",
            "default": 1
          },
          "bodaccFamilies": {
            "title": "Notice types",
            "type": "array",
            "description": "Which BODACC notices to fetch. Default: new company creations.",
            "items": {
              "type": "string",
              "enum": [
                "creation",
                "immatriculation",
                "vente",
                "modification",
                "radiation",
                "collective",
                "conciliation",
                "retablissement_professionnel",
                "dpc"
              ],
              "enumTitles": [
                "New company creations",
                "Registrations",
                "Business sales / transfers",
                "Modifications (management, capital, address…)",
                "Deregistrations",
                "Insolvency proceedings (receivership, liquidation…)",
                "Conciliation",
                "Professional recovery",
                "Annual accounts filings"
              ]
            },
            "default": [
              "creation"
            ]
          },
          "lastDays": {
            "title": "Last N days",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Fetch notices published in the last N days (ignored if 'From date' is set).",
            "default": 7
          },
          "dateFrom": {
            "title": "From date",
            "type": "string",
            "description": "Start of the publication date range (inclusive). Overrides \"Last N days\"."
          },
          "dateTo": {
            "title": "To date",
            "type": "string",
            "description": "End of the publication date range (inclusive). Defaults to today."
          },
          "activityKeywords": {
            "title": "Activity keywords",
            "type": "array",
            "description": "Keep notices whose activity description or name contains any of these words, e.g. <code>restaurant</code>, <code>informatique</code>, <code>immobilier</code>.",
            "items": {
              "type": "string"
            }
          },
          "enrichWithCompanyData": {
            "title": "Add company data (NAF, VAT, GPS, directors…)",
            "type": "boolean",
            "description": "Look up each notice's company in the SIRENE register. Very recent creations may not be indexed yet.",
            "default": true
          },
          "includeDirectors": {
            "title": "Include directors",
            "type": "boolean",
            "description": "Directors' names and roles as published in the national register (birth dates are never exported).",
            "default": true
          },
          "excludeOptedOut": {
            "title": "Exclude companies opposed to prospecting",
            "type": "boolean",
            "description": "Recommended. Skips companies that registered an opposition to commercial use of their data (opposition à la prospection, INSEE).",
            "default": true
          },
          "excludeSoleProprietors": {
            "title": "Exclude sole proprietors (entrepreneurs individuels)",
            "type": "boolean",
            "description": "Keep only legal entities (SAS, SARL…).",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}