# French Companies Scraper - SIRENE Business Data API (`evpp/fr-entreprises`) Actor

Extract French company records as clean JSON: SIREN, SIRET, names, officers, addresses, APE activity codes, legal forms, status, and registration metadata.

- **URL**: https://apify.com/evpp/fr-entreprises.md
- **Developed by:** [Evp Labs](https://apify.com/evpp) (community)
- **Categories:** Business, Lead generation, Other
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.10 / 1,000 results

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/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

## French Companies Scraper - SIRENE Business Data API

Search the **official French company registry** and get clean, flat JSON for every match: SIREN, SIRET of the head office, legal name, NAF/APE activity code, legal form, headcount bracket, full head-office address with geo coordinates, and up to 3 top directors.

The Actor uses the French government's public [`recherche-entreprises.api.gouv.fr`](https://recherche-entreprises.api.gouv.fr) API - the same data behind [annuaire-entreprises.data.gouv.fr](https://annuaire-entreprises.data.gouv.fr) - covering **all companies registered in France** (SIRENE + RNE): SAS, SARL, SA, EURL, sole traders, associations, public bodies. No login, no scraping of HTML, no proxy required.

### Why use it

- **B2B lead generation:** build targeted prospect lists - e.g. all bakeries in Lyon, all software companies (62.01Z) in Paris, all active SAS in department 69.
- **Sales territory building:** filter by postal code or department and export addresses + geo coordinates for routing.
- **KYB / compliance:** pull SIREN/SIRET, legal form, registration date and administrative status for counterparty checks.
- **Investment & market research:** slice the registry by activity code, size category (MICRO/PME/ETI/GE) and headcount bracket.

### Quick start input

Target source: `recherche-entreprises.api.gouv.fr`. Paste this JSON into the Actor input tab for a fast first run, or use it as the body of the Apify API run call:

```json
{
    "query": "boulangerie",
    "etatAdministratif": "any",
    "includeDirigeants": true,
    "maxItems": 10
}
```

The default input is intentionally small. Raise `maxItems` only after validating the first company records.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `query` | string | `"boulangerie"` | Free-text search over company names. Leave empty to use filters only. |
| `codePostal` | string | - | Restrict to a 5-digit postal code (head office), e.g. `69001`. |
| `departement` | string | - | Restrict to a department code: `75`, `69`, `13`, `2A`, `971`... |
| `activitePrincipale` | string | - | NAF/APE activity code, e.g. `62.01Z` (software), `10.71C` (bakery). |
| `etatAdministratif` | enum | `any` | `A` = active only, `C` = closed only, `any` = both. |
| `natureJuridique` | string | - | INSEE legal form code: `1000` sole trader, `5710` SAS, `5720` SASU, `5499`/`5202` SARL-EURL, `5308`/`5309` SA, `9220` association. |
| `includeDirigeants` | boolean | `true` | Attach up to 3 directors (`name` + `role`) per company. |
| `maxItems` | integer | `15` | Maximum number of companies (1-10000). |
| `proxyConfiguration` | object | off | Optional proxies; the API is public and normally needs none. |

All inputs are optional - with defaults the Actor returns 15 boulangeries in seconds.

### Output

One flat JSON item is produced per company. Download the dataset as JSON, CSV, Excel, or HTML, or consume it through the Apify API.

#### Field reference

| Field | Type | Description |
|-------|------|-------------|
| `siren` | string | 9-digit SIREN number identifying the legal unit |
| `nomComplet` | string | Full company name including sigle when available |
| `nomRaisonSociale` | string | Registered legal name (raison sociale) |
| `sigle` | string | Company acronym / trading abbreviation |
| `etatAdministratif` | string | Administrative status: A = active, C = closed |
| `natureJuridique` | string | INSEE legal form code (nature juridique), e.g. 5710 SAS, 5720 SASU, 5309 SA, 1000 sole trader |
| `categorieEntreprise` | string | Company size category: GE, ETI, PME or MICRO |
| `dateCreation` | string | Company registration date (YYYY-MM-DD) |
| `activitePrincipale` | string | NAF/APE code of the company's main activity |
| `sectionActivitePrincipale` | string | Top-level NACE section letter (A-U) of the main activity |
| `trancheEffectifSalarie` | string | INSEE headcount bracket code (00 = 0 employees ... 53 = 10000+) |
| `nombreEtablissements` | integer | Total number of establishments (etablissements) of the company |
| `siretSiege` | string | 14-digit SIRET of the head office (siege social) |
| `adresseSiege` | string | Full head-office address line |
| `codePostal` | string | Head-office postal code |
| `commune` | string | Head-office city / commune name |
| `latitude` | number | Head-office latitude |
| `longitude` | number | Head-office longitude |
| `dirigeants` | object\[] | Up to 3 top directors (dirigeants) with name and role |
| `url` | string | Official Annuaire des Entreprises page for the company |

#### Real sample output (latest live dataset)

```json
{
    "siren": "503300360",
    "nomComplet": "BOULANGERIE DE LA FONTAINE",
    "nomRaisonSociale": "BOULANGERIE DE LA FONTAINE",
    "etatAdministratif": "A",
    "natureJuridique": "5710",
    "categorieEntreprise": "PME",
    "dateCreation": "2008-03-01",
    "activitePrincipale": "10.71C",
    "sectionActivitePrincipale": "C",
    "trancheEffectifSalarie": "00",
    "nombreEtablissements": 2,
    "siretSiege": "50330036000016",
    "adresseSiege": "16 RUE THIERS 78200 MANTES-LA-JOLIE",
    "codePostal": "78200",
    "commune": "MANTES-LA-JOLIE",
    "latitude": 48.989622674,
    "longitude": 1.7184885964,
    "dirigeants": [
        {
            "name": "BOULANGERIE DU CHAMP BLANC",
            "role": "Président de SAS"
        },
        {
            "name": "LA BOULANGERIE DU CHAMP BLANC",
            "role": "Président de SAS"
        }
    ],
    "url": "https://annuaire-entreprises.data.gouv.fr/entreprise/503300360"
}
```

### Use with AI agents (MCP), n8n, Make, and Python

- **AI agents / MCP:** add `https://mcp.apify.com/?tools=evpp/fr-entreprises` to your MCP client, then ask the agent to scrape French companies data or export the latest dataset.
- **n8n / Make / Zapier:** run Actor `evpp/fr-entreprises` with the quick-start input, then map dataset items into Google Sheets, a CRM, a webhook, or a monitoring workflow.
- **Python:** install the client with `pip install apify-client` and run:

```python
import json
from apify_client import ApifyClient

client = ApifyClient()
run_input = json.loads('''{"query":"boulangerie","etatAdministratif":"any","includeDirigeants":true,"maxItems":10}''')
run = client.actor("evpp/fr-entreprises").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[0])
```

The same dataset is available as JSON, CSV, Excel, XML, RSS, and HTML through the Apify API.

### Cost

Roughly **$3.00 per 1,000 companies** on pay-per-event pricing - about a tenth of a cent per record. A page of 25 companies costs a single lightweight API call; 1,000 results take under two minutes with no proxy.

### FAQ

**Is this legal?** Yes. The data comes from the French state's open-data API (INSEE SIRENE registry + RNE), which is explicitly public. You still must comply with GDPR for any personal data (e.g. individual directors' names) you store or process.

**How fresh is the data?** The API mirrors the SIRENE registry, updated daily by INSEE and the greffes (commercial courts). New companies appear within days of registration.

**Why do some companies have no directors or no headcount?** Those fields depend on registry filings; sole traders often have `qualite` empty and very small companies report headcount bracket `00`/`NN`. Empty fields are omitted from output.

**How many results can I get per run?** The upstream API caps at 10,000 results per query (`total_results` limit). For bigger pulls, split by department, postal code or NAF code and merge the datasets.

**Does it need a proxy?** No. The endpoint is public JSON. A proxy option exists for edge cases only.

**What do the status codes mean?** `etatAdministratif` = `A` (active) or `C` (closed/cessee). `trancheEffectifSalarie` uses INSEE brackets (`00`=0, `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+).

# Actor input Schema

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

Free-text search over company names (e.g. "boulangerie", "renault", "cabinet comptable"). Leave empty to combine only the filters below.

## `codePostal` (type: `string`):

Restrict results to companies whose head office (siege) is in this 5-digit French postal code (e.g. 69001, 75011).

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

Restrict results to a French department code (e.g. 75 Paris, 69 Rhone, 13 Bouches-du-Rhone, 2A/2B Corsica, 971 Guadeloupe).

## `activitePrincipale` (type: `string`):

Filter by the INSEE NAF/APE activity code of the company (e.g. 62.01Z software programming, 10.71C bakery manufacturing, 47.11F food retail).

## `etatAdministratif` (type: `string`):

Filter by company lifecycle status: A = active (active), C = closed (cessee). "any" returns both.

## `natureJuridique` (type: `string`):

Filter by INSEE legal form code (nature juridique): 1000 sole trader, 5499/5710 SAS, 5720 SASU, 5202/5203 EURL/SARL, 5308/5309 SA, 9220 association. Full list: INSEE categories juridiques.

## `includeDirigeants` (type: `boolean`):

Include up to 3 top directors (dirigeants) per company with name and role. Disable for leaner output.

## `maxItems` (type: `integer`):

Maximum number of companies to output (1-10000).

## `proxyConfiguration` (type: `object`):

Optional proxies for outbound requests. The official API is public and usually needs no proxy.

## Actor input object example

```json
{
  "query": "boulangerie",
  "codePostal": "",
  "departement": "",
  "activitePrincipale": "",
  "etatAdministratif": "any",
  "natureJuridique": "",
  "includeDirigeants": true,
  "maxItems": 15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped company records

# 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 = {
    "query": "boulangerie",
    "codePostal": "",
    "departement": "",
    "activitePrincipale": "",
    "natureJuridique": "",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("evpp/fr-entreprises").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 = {
    "query": "boulangerie",
    "codePostal": "",
    "departement": "",
    "activitePrincipale": "",
    "natureJuridique": "",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("evpp/fr-entreprises").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 '{
  "query": "boulangerie",
  "codePostal": "",
  "departement": "",
  "activitePrincipale": "",
  "natureJuridique": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call evpp/fr-entreprises --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,evpp/fr-entreprises"
        }
    }
}
```

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/tzJvWlzGWhbZhVZNL/builds/uSjdBZ5zK2YOvlGeu/openapi.json
