# France B2B Leads, Pappers & SIRENE/BODACC Scraper (Emails) (`grimbles/fr-b2b-trigger-leads`) Actor

Extract French B2B company leads & daily sales triggers (Pappers / Societe.com alternative) from official INSEE SIRENE & BODACC registries. Enriches SIREN/SIRET, NAF, VAT, directors (Président/Gérant), financials, verified websites, emails, phones & CMS. Bilingual EN/FR output.

- **URL**: https://apify.com/grimbles/fr-b2b-trigger-leads.md
- **Developed by:** [Grimbles Data Labs](https://apify.com/grimbles) (community)
- **Categories:** Lead generation, Automation, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 33.3% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.35 / 1,000 b2b lead extracteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-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 Leads, SIRENE & BODACC Scraper (Emails & Directors)

**Turn official French commercial registry triggers (BODACC & INSEE SIRENE) into CRM-ready B2B leads in one click — a fast, automated API alternative to manual Pappers, Societe.com, or Infogreffe lookups.**

Instead of chaining 3 separate scrapers (BODACC + SIRENE + Website Contact Scraper) and merging messy CSVs, this Actor queries official French open data APIs directly, ranks real executives (`Président`, `Gérant`, `Directeur Général`) ahead of statutory auditors, discovers & verifies company websites (including parenthetical trade names / *enseignes*, verified by 9-digit SIREN or legal name + French city/postal code), extracts verified business emails/phones/CMS stacks, and outputs an actionable B2B Opportunity Score (`0–100`).

***

### Why Use This Actor?

- **Zero Anti-Bot Flakiness**: Pulls directly from official French government open data (`bodacc-datadila.opendatasoft.com` & `recherche-entreprises.api.gouv.fr`) with built-in rate-limiting and `429` backoff.
- **English or French Labels (`outputLanguage`)**: Choose `"en"` (default, ideal for global CRMs, Clay, n8n, and AI agents) or `"fr"`.
- **Smart Corporate Filtering**: Toggle `excludeSoleProprietors: true` to drop micro-businesses (`Entrepreneur individuel`) and focus on SAS, SARL, EURL, and SA companies.
- **Zero-False-Positive Website Discovery**: Probed `.fr` / `.com` domains are accepted **only** when verified by the company's 9-digit SIREN (`siren_match`) or exact legal name + city/postal code (`name_city_match`), plus an `emailMatchesDomain` flag.
- **MCP & AI-Agent Ready**: Includes strict input, output, and dataset schemas so Claude, ChatGPT, n8n, Make, or Clay can invoke it seamlessly.

***

### Sample Output JSON

```json
{
  "siren": "837679307",
  "siretSiege": "83767930700012",
  "vatNumber": "FR40878623164",
  "companyName": "RSF COM",
  "legalForm": "SAS (Simplified Joint-Stock Company)",
  "companyCategory": "PME",
  "nafCode": "62.01Z",
  "nafSectionLabel": "Information and Communication",
  "employeeCountLabel": "10-19 employees",
  "primaryDirectorName": "DECEMBER DIGITAL",
  "primaryDirectorRole": "Président de SAS",
  "latestRevenueEur": 3374337.0,
  "latestNetIncomeEur": 1150687.0,
  "latestFiscalYear": "2022",
  "triggerSource": "bodacc",
  "triggerType": "Company Creation",
  "triggerDate": "2026-11-17",
  "website": "https://rsfcom.fr",
  "websiteVerification": "name_city_match",
  "primaryEmail": "contact@rsfcom.fr",
  "emailMatchesDomain": true,
  "cmsDetected": ["WordPress", "Google Tag Manager / GA4"],
  "httpsEnabled": true,
  "hasLlmsTxt": false,
  "opportunityScore": 75,
  "opportunitySignals": ["recent_creation_trigger", "has_director_info", "has_verified_email", "missing_llms_txt"]
}
```

***

### Quick Input Examples

#### 1. Fresh French Companies (Last 14 Days in Paris, Excluding Sole Proprietors)

```json
{
  "mode": "bodacc_triggers",
  "bodaccFamilies": ["creation", "immatriculation", "modification"],
  "daysBack": 14,
  "departments": ["75"],
  "excludeSoleProprietors": true,
  "outputLanguage": "en",
  "maxResults": 100,
  "enrichWebsites": true
}
```

#### 2. Targeted Active Companies by NAF Code & Headcount (Lyon)

```json
{
  "mode": "sirene_search",
  "nafCodes": ["62.01Z", "70.22Z"],
  "departments": ["69"],
  "employeeBrackets": ["11", "12"],
  "excludeSoleProprietors": true,
  "onlyActive": true,
  "outputLanguage": "en",
  "maxResults": 100,
  "enrichWebsites": true
}
```

#### 3. Enrich an Existing List of SIRENs

```json
{
  "mode": "siren_list",
  "sirens": ["878623164", "837679307"],
  "enrichWebsites": true
}
```

***

### Ideal Use Cases

- **Web, SEO & AI Agencies**: Find newly incorporated French SAS/SARL companies with no website, missing `https`, legacy builders, or missing `llms.txt` — complete with executive names and verified emails.
- **B2B Outbound / SDR Workflows (Clay, n8n, Make)**: Run weekly to capture fresh incorporations, director changes, or insolvency/sale triggers (`pcl`, `vente`) directly into HubSpot/Pipedrive/Lemlist.
- **Accountants, Insurers & B2B SaaS**: Reach new French companies days after official BODACC registration.

***

### Compliance & Data Sources

All corporate registry data is retrieved exclusively from official French public open data endpoints (`bodacc-datadila.opendatasoft.com` and `recherche-entreprises.api.gouv.fr`) with built-in rate limiting and `HTTP 429` retry handling. Includes the official INSEE `commercialOptOut` flag (`opposition_diffusion_commerciale`) for compliant B2B outreach.

***

### AI Agent (MCP) & n8n Integration

Connect this Actor directly to **Claude Desktop**, **Cursor**, or any MCP-compatible AI agent using the Apify MCP Server:

```json
{
  "mcpServers": {
    "fr-b2b-trigger-leads": {
      "url": "https://mcp.apify.com/?tools=grimbles/fr-b2b-trigger-leads",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_API_TOKEN>"
      }
    }
  }
}
```

For **n8n**, call `POST https://api.apify.com/v2/acts/grimbles~fr-b2b-trigger-leads/run-sync-get-dataset-items?token=<YOUR_APIFY_API_TOKEN>` with your desired JSON filter payload on a weekday cron schedule.

# Actor input Schema

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

Choose whether to pull recent legal triggers from BODACC, search active companies in INSEE SIRENE, or enrich a specific list of SIREN numbers.

## `bodaccFamilies` (type: `array`):

Notice families to extract in bodacc_triggers mode (e.g. creation, immatriculation, modification, vente, pcl).

## `daysBack` (type: `integer`):

Lookback window in days from today for BODACC publications.

## `departments` (type: `array`):

Optional filter by department codes (e.g. 75, 69, 33, 92). Leave empty for all of France.

## `nafCodes` (type: `array`):

Optional INSEE NAF/APE codes (e.g. 62.01Z, 56.10A, 70.22Z). Applied in SIRENE search or post-filtering BODACC leads.

## `employeeBrackets` (type: `array`):

Optional INSEE codes: NN, 00, 01 (1-2), 02 (3-5), 03 (6-9), 11 (10-19), 12 (20-49), 21 (50-99), etc.

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

Optional free-text search (company name, trade keyword, city).

## `sirens` (type: `array`):

9-digit SIREN numbers to enrich when mode is siren_list.

## `candidateDomains` (type: `object`):

Optional JSON mapping of SIREN to website domain (e.g. {"123456789": "example.fr"}) for direct enrichment.

## `onlyActive` (type: `boolean`):

Exclude legally ceased/closed entities (etat_administratif = A).

## `excludeSoleProprietors` (type: `boolean`):

Filter out Entreprises Individuelles (code 1000) to focus on SAS, SARL, EURL, SA companies.

## `outputLanguage` (type: `string`):

Language used for human-readable labels (legalForm, employeeCountLabel, nafSectionLabel, triggerType).

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

Maximum number of deduplicated leads to output.

## `enrichWebsites` (type: `boolean`):

Probe/verify company websites and crawl homepage, /mentions-legales, /contact, /robots.txt and /llms.txt for emails, phones, socials, CMS, SSL & opportunity score.

## `probeCandidateDomains` (type: `boolean`):

When enrichWebsites is true and no domain is provided, test slugified .fr/.com domains and accept ONLY if the exact SIREN or legal notice matches.

## `maxWebPagesPerSite` (type: `integer`):

Maximum internal pages (homepage, mentions legales, contact) to inspect per domain.

## `onlyWithEmail` (type: `boolean`):

When enabled, filter out leads without an extracted public email address.

## Actor input object example

```json
{
  "mode": "bodacc_triggers",
  "bodaccFamilies": [
    "creation",
    "immatriculation"
  ],
  "daysBack": 7,
  "departments": [
    "75"
  ],
  "nafCodes": [],
  "employeeBrackets": [],
  "query": "",
  "sirens": [],
  "candidateDomains": {},
  "onlyActive": true,
  "excludeSoleProprietors": true,
  "outputLanguage": "en",
  "maxResults": 50,
  "enrichWebsites": false,
  "probeCandidateDomains": true,
  "maxWebPagesPerSite": 3,
  "onlyWithEmail": false
}
```

# Actor output Schema

## `leads` (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 = {
    "bodaccFamilies": [
        "creation",
        "immatriculation"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("grimbles/fr-b2b-trigger-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 = { "bodaccFamilies": [
        "creation",
        "immatriculation",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("grimbles/fr-b2b-trigger-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 '{
  "bodaccFamilies": [
    "creation",
    "immatriculation"
  ]
}' |
apify call grimbles/fr-b2b-trigger-leads --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,grimbles/fr-b2b-trigger-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/0fFjopUB0QJZecIwi/builds/Ge0Xr6AJCYLJwBpld/openapi.json
