# France B2B Companies & BODACC Leads (Sirene + Email/Web) | MCP (`akramkrimo/france-b2b-companies-leads`) Actor

Extract French B2B companies, directors (dirigeants), financials, RGE/Qualiopi labels & fresh BODACC creations/acquisitions/bankruptcies from official French Gov APIs (Sirene + BODACC) — enriched with website, emails (/mentions-legales), LinkedIn, tech stack & MX check. Built for n8n & MCP.

- **URL**: https://apify.com/akramkrimo/france-b2b-companies-leads.md
- **Developed by:** [Akram S](https://apify.com/akramkrimo) (community)
- **Categories:** Lead generation, Agents, Business
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 french b2b company / bodacc records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## France B2B Companies & BODACC Signals (Sirene + Web/MX Enricher) | MCP

Extract **French B2B companies and real-time BODACC legal events (company creations, business sales/acquisitions, insolvencies)** directly from official **INSEE Sirene/RNE (`recherche-entreprises.api.gouv.fr`)** and **BODACC OpenDataSoft** APIs — automatically enriched with **corporate `.fr`/`.com` website, `/mentions-legales` & `/contact` emails (`roleEmails` separated), LinkedIn company URL, tech stack, Qualiopi/RGE certifications, and live DNS MX (`OVH Mail`, `Gandi`, `Google Workspace`, `M365`)**.

Built for **French B2B sales agencies, accountants, B2B SaaS, solar/renovation suppliers (RGE), training vendors (Qualiopi), n8n & MCP agents** — a pay-per-use **Pappers / Societe.com API alternative**.

***

### Why Use This Actor Over Traditional French Company Scrapers?

| Capability | Legacy French Directories (`Pappers` / `Societe.com`) | This Actor (`france-b2b-companies-leads`) |
|---|---|---|
| Live **INSEE Sirene/RNE** Search (NAF, Dept, **RGE**, **Qualiopi**) | Paid seat / rate-limited | **Yes — zero-proxy official API** |
| Daily **BODACC Legal Events** (`creation`, `vente`, `pcl`, `dpc`) + fallback on `row.commercant` | Separate feed | **Yes — joined directly with Sirene data** |
| Corporate `.fr`/`.com` Site + `/mentions-legales` Emails & LinkedIn | Manual research | **Yes (`enrichment` with `roleEmails` split)** |
| French ESP Verification (`OVH Mail`, `Gandi Mail`, `Google Workspace`, `M365`) | No | **Yes (`emailDeliverability`)** |
| Native **Apify Standby MCP Server** (`/mcp`) | No | **Yes — JSON-RPC tool for Claude & Cursor** |

***

### Transparent Pay-Per-Event Pricing & Free Tier Calculator

| Event | Price (USD) | When You Are Charged |
|---|---|---|
| `apify-actor-start` | `$0.005` | Once per Actor run initialization (waives first 5s compute cost) |
| `company-extracted` | `$0.004` | Per French company / BODACC record returned (`$4/1,000`) |
| `company-domain-enriched` | `$0.012` | **Only** when a verified live corporate site is scanned (`mentions-legales` + tech) |
| `email-deliverability-verified` | `$0.004` | **Only** when live DNS MX confirms active corporate mail routing |

- **$5/month Apify Free Tier**: Pull **~250–1,245+ qualified French B2B company records** every month at **$0 out of pocket**.

***

### Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `mode` | `string` | `"sirene"` | `"sirene"` (search active firms) or `"bodacc"` (newest legal announcements). |
| `query` | `string` | `"logiciel"` | Activity keyword or company name (Sirene mode). |
| `departement` | `string` | `"75"` | 2-digit French department (`"75"`, `"69"`, `"33"`, `"92"`). Empty = all France. |
| `nafCode` | `string` | `""` | Optional NAF/APE code (e.g. `"62.01Z"`, `"70.22Z"`). |
| `onlyQualiopi` | `boolean` | `false` | Filter exclusively for Qualiopi-certified training orgs. |
| `onlyRge` | `boolean` | `false` | Filter exclusively for RGE-certified installers. |
| `bodaccCategory` | `string` | `"creation"` | BODACC category: `"creation"`, `"vente"`, `"pcl"`, `"dpc"`, or `"all"`. |
| `maxResults` | `integer` | `25` | Max companies to return (`1–1000`). |
| `enrichCompanyWeb` | `boolean` | `true` | Resolve `.fr`/`.com` website, `/mentions-legales` emails & MX. |

***

### Sample Output Record

```json
{
  "siren": "912345678",
  "companyName": "ATELIER CLOUD PARIS",
  "nafCode": "62.01Z",
  "address": { "city": "PARIS", "departement": "75", "postalCode": "75009" },
  "labels": { "qualiopi": false, "rge": false },
  "enrichment": {
    "domain": "ateliercloud.fr",
    "websiteUrl": "https://ateliercloud.fr",
    "domainConfidence": "high",
    "roleEmails": ["bonjour@ateliercloud.fr"],
    "techStack": ["Next.js", "HubSpot"],
    "emailDeliverability": { "acceptsMail": true, "emailProvider": "OVH Mail", "hasSpf": true, "hasDmarc": true }
  }
}
```

***

### Using With AI Agents (MCP Standby Server)

- **Exposed MCP Tool**: `search_french_b2b_companies(mode, query, departement, nafCode, onlyQualiopi, onlyRge, bodaccCategory, maxResults, enrichCompanyWeb)`
- **Example prompt**:
  > *"Find 15 newly created French companies (`bodacc`, `creation`) in Paris (`75`) with verified `.fr` corporate websites and OVH or Google Workspace MX."*

***

### Automating in n8n / Make / Clay

1. Import the ready-to-run workflow: [04-france-sirene-bodacc-leads.json](https://github.com/Akramsemekte/n8n-b2b-lead-gen-templates/blob/main/workflows/04-france-sirene-bodacc-leads.json) (`Akramsemekte/n8n-b2b-lead-gen-templates`).
2. Or call directly: `POST https://api.apify.com/v2/acts/akramkrimo~france-b2b-companies-leads/run-sync-get-dataset-items?token=<APIFY_TOKEN>` with:

```json
{
  "mode": "bodacc",
  "bodaccCategory": "creation",
  "departement": "75",
  "maxResults": 25,
  "enrichCompanyWeb": true
}
```

# Actor input Schema

## `mode` (type: `string`):

'sirene' searches active French companies by keyword, NAF code, department, or RGE/Qualiopi labels. 'bodacc' pulls newest BODACC legal events (creations, sales, bankruptcies) and joins them with Sirene directors.

## `query` (type: `string`):

Keyword, activity or company name (e.g. 'agence marketing', 'logiciel', 'solaire', 'plomberie').

## `departement` (type: `string`):

2-digit French department code (e.g. '75' Paris, '69' Lyon, '33' Bordeaux, '13' Marseille, '92' Hauts-de-Seine). Empty = all France.

## `nafCode` (type: `string`):

Exact French NAF code (e.g. '62.01Z' Software, '70.22Z' Management Consulting, '43.22A' Plumbing).

## `onlyQualiopi` (type: `boolean`):

Filter for French certified Qualiopi training providers.

## `onlyRge` (type: `boolean`):

Filter for French RGE-certified renovation/solar/heat-pump installers.

## `bodaccCategory` (type: `string`):

'creation' (newly created businesses), 'vente' (business sales/acquisitions), 'pcl' (insolvencies/bankruptcies), 'dpc' (annual accounts filed), or 'all'.

## `maxResults` (type: `integer`):

Maximum number of French B2B companies to return (up to 1000).

## `enrichCompanyWeb` (type: `boolean`):

Resolves live French corporate website (.fr/.com), scans homepage + /contact + /mentions-legales for public emails, LinkedIn, tech stack & DNS MX/SPF/DMARC.

## Actor input object example

```json
{
  "mode": "sirene",
  "query": "logiciel",
  "departement": "75",
  "nafCode": "",
  "onlyQualiopi": false,
  "onlyRge": false,
  "bodaccCategory": "creation",
  "maxResults": 25,
  "enrichCompanyWeb": true
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {};

// Run the Actor and wait for it to finish
const run = await client.actor("akramkrimo/france-b2b-companies-leads").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {}

# Run the Actor and wait for it to finish
run = client.actor("akramkrimo/france-b2b-companies-leads").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{}' |
apify call akramkrimo/france-b2b-companies-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,akramkrimo/france-b2b-companies-leads"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/nH9Jrhr2i4fu87HZ5/builds/DKMljEhqEbEkzsUIr/openapi.json
