# French Companies Search - SIREN, SIRET & NAF B2B Leads (`frscrape/french-companies-search`) Actor

Find French companies by NAF code, postal code or département. Get SIREN, SIRET, address, headcount and activity from the official Insee Sirene database.

- **URL**: https://apify.com/frscrape/french-companies-search.md
- **Developed by:** [frscrape](https://apify.com/frscrape) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 company records

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## French Companies Search – SIREN, SIRET & NAF B2B Leads

Find **French companies** by **activity (NAF code)** and **area (postal codes or département)** in the official **INSEE Sirene database**, and download clean **French company data**: **SIREN, SIRET, head-office address, headcount band and creation date**. Every company comes with its SIREN, so no separate **SIREN lookup** is needed. The data comes through the French government's free [Recherche d'entreprises](https://recherche-entreprises.api.gouv.fr) API.

Example searches:

- "All active bakeries with their head office in the Rhône département (69)"
- "Pastry shops with 10 to 49 employees in Lyon 1st and 2nd (69001, 69002)"
- "Every IT consulting company (62.02A) in Paris"

### What is it for?

- **Sales teams (B2B prospecting)**: build a list of target companies in a sector and a territory, then import it into your CRM.
- **Agencies (marketing, web, recruitment)**: find every business of a given type around a city for a local campaign.
- **Market studies**: count and map the companies of a sector by département, size or age.

Each company comes with its **SIREN** (company ID) and the **SIRET** of its head office, so you can match it with your other tools.

### What it does

- Searches by one or more **NAF codes**: the current NAF rév. 2 codes (e.g. `10.71C`) or the new **NAF 2025** codes (e.g. `10.71H`). The Actor detects which one you used.
- Filters by **postal codes** or by **département** (one or the other). Leave both empty to search all of France.
- Optional filter by **employee headcount band**.
- Keeps only **active** companies by default.
- **Always excludes sole traders (entrepreneurs individuels)** and returns **no person names** (no managers or directors), to stay GDPR-friendly.
- **Respects companies' refusal of commercial prospecting**: companies that have opposed the use of their data for commercial prospecting (`opposition_diffusion_commerciale` in the official data) are **left out of the results and never billed**. This concerns many companies (often a third or more of a search), so a search returns fewer companies than the API announces.
- Respects the API rate limit, handles pagination and retries automatically on temporary errors.
- If nothing matches, the run **succeeds** with an empty result and a message explaining how to widen the search. Only an invalid input (a wrong NAF code or postal code, for example) makes the run fail, with a clear message.

### How to use it

1. Click **Try for free** (or **Start**).
2. Enter one or more **NAF codes**. Find yours in the Insee lists: [NAF rév. 2](https://www.insee.fr/fr/information/2406147) or [NAF 2025](https://www.insee.fr/fr/information/8617910).
3. Enter **postal codes** *or* a **département** code (`69`, `2A`, `974`…).
4. Optionally pick **headcount bands** and set the **maximum number of results**.
5. Click **Start**. When the run ends, download the list as **Excel, CSV or JSON** from the **Output** tab, or connect it to Google Sheets, Make, Zapier or your CRM through the Apify integrations and API.

#### Input

| Field                                       | Description                                                            | Default |
| ------------------------------------------- | ---------------------------------------------------------------------- | ------- |
| NAF codes (`codesNaf`)                      | One or more NAF rév. 2 or NAF 2025 codes. Required.                    | —       |
| Postal codes (`codesPostaux`)               | 5-digit French postal codes.                                           | empty   |
| Département (`departement`)                 | Département code (`69`, `2A`, `974`…).                                 | empty   |
| Headcount bands (`tranchesEffectif`)        | Company sizes to keep. Empty = all sizes.                              | empty   |
| Active companies only (`uniquementActives`) | Excludes companies that have ceased trading.                           | yes     |
| Head office in the area (`siegeDansLaZone`) | Keeps only companies whose **head office** is in the area (see below). | yes     |
| Maximum number of results (`maxResultats`)  | Stops the search at this number (10,000 at most).                      | 100     |

JSON input example:

```json
{
    "codesNaf": ["10.71C", "10.71D"],
    "departement": "69",
    "tranchesEffectif": ["11", "12"],
    "maxResultats": 100
}
```

**Why "Head office in the area"?** The API returns companies that have *at least one establishment* in the area. A bakery chain headquartered in Marseille therefore shows up for the Rhône if it has a shop there. With this option ticked (the default), only companies whose head office is in the area are kept. Untick it to include every company present in the area; the address shown is still the head office's.

### Output example

One row per company. Here are 5 real rows from a search for bakeries (`10.71C`) in Gironde (`33`):

| Name                              | SIREN     | Head-office SIRET | Postal code | City             | NAF    | NAF 2025 | Employees | Created    |
| --------------------------------- | --------- | ----------------- | ----------- | ---------------- | ------ | -------- | --------- | ---------- |
| P.B.G.                            | 821700713 | 82170071300018    | 33210       | LANGON           | 10.71C | 10.71H   | 20 to 49  | 2016-07-25 |
| LE FOURNIL DE GRADIGNAN           | 794288183 | 79428818300021    | 33170       | GRADIGNAN        | 10.71C | 10.71H   | 20 to 49  | 2013-07-16 |
| VERIC                             | 539403170 | 53940317000019    | 33260       | LA TESTE-DE-BUCH | 10.71C | 10.71H   | 10 to 19  | 2012-01-20 |
| JSM                               | 418097663 | 41809766300011    | 33210       | LANGON           | 10.71C | 10.71H   | 20 to 49  | 1998-02-13 |
| LA P'TITE BOULANGERIE DE CAUDERAN | 838254951 | 83825495100018    | 33200       | BORDEAUX         | 10.71C | 10.71H   | 50 to 99  | 2018-02-01 |

Each row also contains the street address, the département, the activity labels, the headcount band code, the administrative status and the data source. Full JSON item:

```json
{
    "nom": "P.B.G.",
    "siren": "821700713",
    "siretSiege": "82170071300018",
    "adresse": "1 RUE DES CHENES",
    "codePostal": "33210",
    "ville": "LANGON",
    "departement": "33",
    "codeNaf": "10.71C",
    "libelleNaf": "Boulangerie et boulangerie-pâtisserie",
    "codeNaf2025": "10.71H",
    "libelleNaf2025": "Fabrication de pain et d'autres produits de boulangerie-pâtisserie associée à leur vente au détail",
    "trancheEffectif": "12",
    "libelleTrancheEffectif": "20 à 49 salariés",
    "dateCreation": "2016-07-25",
    "etatAdministratif": "Active",
    "source": "Insee, base Sirene, via API Recherche d'entreprises"
}
```

Field names and labels are in French, as in the official Sirene database. The address, postal code, city and département are those of the **head office**.

### Pricing

This Actor is billed **per result**: **$3 per 1,000 companies** ($0.003 per company returned). Apify also adds a tiny start fee for each run (a fraction of a cent). Searches that return nothing cost almost nothing. Companies left out because they opposed commercial prospecting are never billed.

Example: 500 companies cost $1.50.

To control your budget, set **Max cost per run** in the run options. The Actor stops as soon as that amount is reached and keeps every company already found.

### Limits

- **No contact details.** Sirene contains no phone numbers, emails or websites, and this Actor returns no person names. You get company identity, address, activity and size.
- **10,000 results per search** at most (API limit). To go further, split by département or NAF code.
- **Non-public companies** do not appear. Companies that are **partially public** do appear, but the fields they chose to hide (often address and postal code) stay **empty**. They therefore never match a postal-code search with "Head office in the area" ticked.
- **Companies opposed to commercial prospecting** are never returned (many large groups are, and often a third or more of the companies in a search). This is their choice, recorded in the official data; the Actor respects it. The run log tells you how many were left out.
- The name is the company's legal name. Some companies carry their founder's name (e.g. "Boulangerie Martin SARL"): it is their legal name, not personal data, but keep it in mind when reusing the data.
- **Data freshness** follows the Sirene database as served by the API. Headcount bands are updated once a year and can be a few years old.
- **NAF 2025 codes** (see below): the API says its NAF 2025 field is **temporary and will be removed on 1 January 2027**. If it disappears, a NAF 2025 search fails with a clear message; NAF rév. 2 searches keep working.

#### How NAF 2025 codes work

The API only filters by NAF rév. 2 codes. For a NAF 2025 code, the Actor:

1. searches with every NAF rév. 2 code linked to it in the [official Insee correspondence table](https://www.insee.fr/fr/information/8617910) (e.g. `10.71H` ← `10.71C` and part of `10.86Z`);
2. keeps only the companies whose NAF 2025 code is the one requested;
3. when the API does not give a company's NAF 2025 code (about 1 in 7 in our tests), deduces it from the old code **only if Insee defines a one-to-one match** (`10.71C` always becomes `10.71H`). The `codeNaf2025` field then stays empty: the Actor never invents a value the API does not provide.

Searching `10.71C` and searching `10.71H` do not return exactly the same list: Insee reclassified some companies one by one. The code `46.89Y` has no NAF rév. 2 equivalent yet, so it cannot be searched.

### FAQ

**Is it legal?** Yes. The Actor does not scrape any website: it calls the official, free API of the French government. Sirene data is open data published by INSEE under the Licence Ouverte / Etalab 2.0, which allows reuse, including commercial reuse, as long as you credit the source (see below).

**What about GDPR?** The Actor is designed to return company data only: sole traders (whose company data is personal data) are always excluded, no manager or director names are returned, and companies that opposed commercial prospecting are left out. Some legal names contain a founder's name, and you remain responsible for how you use the data (for example for B2B prospecting). This is not legal advice.

**Why is a company missing?**

- It **opposed commercial prospecting** (recorded in the official data): it is left out and never billed. The run log tells you how many were left out.
- It is a **sole trader** (entrepreneur individuel): always excluded.
- It is **non-public** (non diffusible) in Sirene: it does not appear. A partially public company that hides its postal code cannot match a postal-code search with "Head office in the area" ticked.
- Your filters exclude it: head office outside the area, ceased trading, or another NAF code or headcount band.

**How much does it cost?** $3 per 1,000 companies returned ($0.003 each), plus a start fee of a fraction of a cent per run. For example, 500 companies cost $1.50. Set **Max cost per run** to cap your budget.

### Data source and licence

**Insee, Sirene database**, via the Recherche d'entreprises API (DINUM). Sirene data is published under the [Licence Ouverte / Etalab 2.0 (Open Licence)](https://www.etalab.gouv.fr/licence-ouverte-open-licence/): you can reuse it, including commercially, as long as you credit the source. The `source` field of each row does that for you.

This Actor is not affiliated with Insee or the French government.

### See also

- [French Companies Enrichment](https://apify.com/frscrape/french-companies-enrich): complete a list of SIREN, SIRET or company names.
- [French Healthcare Directory](https://apify.com/frscrape/french-healthcare-establishments): EHPAD nursing homes, pharmacies, clinics and hospitals from the official FINESS register, with SIRET, phone and GPS coordinates.
- Tutorial: [How to enrich a list of French companies (SIREN, SIRET or name) with official data, without scraping](https://dev.to/frscrape/how-to-enrich-a-list-of-french-companies-siren-siret-or-name-with-official-data-without-scraping-5252).

***

### 🇫🇷 En français

**Recherche d'entreprises françaises** dans la **base Sirene de l'INSEE** : constituez un **fichier d'entreprises** par **code NAF** (ancien ou NAF 2025) et par **zone** (codes postaux ou département), avec pour chacune son **numéro SIREN / SIRET** (SIRET du siège), l'adresse, la tranche d'effectif et la date de création.

**Pour qui ?** Les équipes commerciales qui prospectent en B2B, les agences (marketing, web, recrutement) qui ciblent les entreprises d'un secteur autour d'une ville, et les études de marché.

**Comment le lancer ?**

1. Indiquez un ou plusieurs **codes NAF** (par exemple `10.71C`, boulangerie).
2. Indiquez des **codes postaux** *ou* un **département** (laissez vide pour toute la France).
3. Choisissez si besoin les **tranches d'effectif** et le **nombre maximum de résultats**.
4. Cliquez sur **Start**, puis téléchargez la liste en Excel, CSV ou JSON.

**Ce que vous obtenez :** une ligne par entreprise (voir l'exemple de 5 lignes plus haut). Les entrepreneurs individuels sont toujours exclus et aucun nom de personne n'est renvoyé.

**Exemple de résultat** (vraies données d'un lancement : boulangeries `10.71C` en Gironde) :

| Nom    | SIREN     | SIRET du siège | Code postal | Ville  | Code NAF | NAF 2025 | Effectif         | Création   |
| ------ | --------- | -------------- | ----------- | ------ | -------- | -------- | ---------------- | ---------- |
| P.B.G. | 821700713 | 82170071300018 | 33210       | LANGON | 10.71C   | 10.71H   | 20 à 49 salariés | 2016-07-25 |
| JSM    | 418097663 | 41809766300011 | 33210       | LANGON | 10.71C   | 10.71H   | 20 à 49 salariés | 1998-02-13 |

**Refus de prospection :** les entreprises qui se sont opposées à l'utilisation de leurs données pour la prospection commerciale (champ `opposition_diffusion_commerciale` des données officielles) sont écartées des résultats et ne sont jamais facturées. C'est souvent le cas d'un tiers des entreprises d'une recherche ou plus, dont la plupart des grands groupes : vous obtenez donc moins d'entreprises que le total annoncé par l'API. Le journal du lancement indique combien ont été écartées.

**Prix :** facturation au résultat, **3 $ pour 1 000 entreprises** (0,003 $ par entreprise renvoyée), plus de minimes frais de démarrage par lancement (une fraction de centime) facturés par Apify. Exemple : 500 entreprises coûtent 1,50 $. Réglez **Max cost per run** dans les options du lancement : le robot s'arrête dès que ce plafond est atteint et garde les entreprises déjà trouvées. Les entreprises écartées pour refus de prospection ne sont jamais facturées.

**Limites :** pas de téléphone ni d'e-mail (Sirene n'en contient pas) ; 10 000 résultats au plus par recherche (découpez par département ou par code NAF au-delà) ; les entreprises non diffusibles n'apparaissent pas et les champs masqués des entreprises partiellement diffusibles restent vides ; le champ NAF 2025 de l'API est annoncé comme supprimé au 1er janvier 2027.

#### Questions fréquentes

**Est-ce légal ?** Oui. Le robot ne fait aucun « scraping » de site : il interroge l'API officielle et gratuite de l'État. Les données Sirene sont des données ouvertes publiées par l'INSEE sous Licence Ouverte / Etalab 2.0, qui autorise la réutilisation, y compris commerciale, en citant la source (voir ci-dessous).

**Et le RGPD ?** Le robot est conçu pour ne renvoyer que des données d'entreprises : les entrepreneurs individuels (dont les données sont des données personnelles) sont toujours exclus, aucun nom de dirigeant n'est renvoyé, et les entreprises opposées à la prospection commerciale sont écartées. Certaines raisons sociales contiennent le nom d'un fondateur, et vous restez responsable de l'usage que vous faites des données (par exemple pour de la prospection B2B). Ceci n'est pas un conseil juridique.

**Pourquoi une entreprise manque-t-elle ?**

- Elle s'est **opposée à la prospection commerciale** (information inscrite dans les données officielles) : elle est écartée et jamais facturée. Le journal du lancement indique combien l'ont été.
- C'est un **entrepreneur individuel** : toujours exclu.
- Elle est **non diffusible** dans Sirene : elle n'apparaît pas. Une entreprise partiellement diffusible qui masque son code postal ne peut pas sortir d'une recherche par code postal avec « Siège dans la zone » coché.
- Vos filtres l'excluent : siège hors de la zone, entreprise fermée, autre code NAF ou autre tranche d'effectif.

**Combien ça coûte ?** 3 $ pour 1 000 entreprises renvoyées (0,003 $ chacune), plus des frais de démarrage d'une fraction de centime par lancement. Par exemple, 500 entreprises coûtent 1,50 $. Réglez **Max cost per run** pour plafonner la dépense.

**Source :** Insee, base Sirene, via l'API Recherche d'entreprises (DINUM), sous [Licence Ouverte / Etalab 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/). Réutilisation libre, y compris commerciale, en citant la source (champ `source` de chaque ligne).

**Voir aussi :** [Enrichissement d'entreprises françaises](https://apify.com/frscrape/french-companies-enrich) : compléter une liste de SIREN, SIRET ou noms. [Annuaire des établissements de santé](https://apify.com/frscrape/french-healthcare-establishments) : EHPAD, pharmacies, cliniques et hôpitaux du répertoire officiel FINESS, avec SIRET, téléphone et GPS. Tutoriel (en anglais) : [How to enrich a list of French companies (SIREN, SIRET or name) with official data, without scraping](https://dev.to/frscrape/how-to-enrich-a-list-of-french-companies-siren-siret-or-name-with-official-data-without-scraping-5252). Tutoriel en français : [Compléter un fichier d’entreprises (SIREN, SIRET ou nom) avec les données officielles de l’INSEE](https://medium.com/@frscrape/compl%C3%A9ter-un-fichier-dentreprises-siren-siret-ou-nom-avec-les-donn%C3%A9es-officielles-de-l-insee-5025de406331).

# Actor input Schema

## `codesNaf` (type: `array`):

Un ou plusieurs codes d’activité. Ancien code NAF rév. 2 (ex. 10.71C, boulangerie et boulangerie-pâtisserie) ou nouveau code NAF 2025 (ex. 10.71H) : le robot reconnaît le type tout seul. Listes Insee : https://www.insee.fr/fr/information/2406147 (NAF rév. 2) et https://www.insee.fr/fr/information/8617910 (NAF 2025).

## `codesPostaux` (type: `array`):

Un ou plusieurs codes postaux à 5 chiffres, par exemple 69001. Laissez vide si vous utilisez le département. Ne remplissez pas les deux.

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

Un code de département, par exemple 69, 2A ou 974. Laissez vide si vous utilisez les codes postaux. Si les deux sont vides, la recherche couvre toute la France.

## `tranchesEffectif` (type: `array`):

Ne garder que les entreprises de ces tailles. Laissez vide pour toutes les tailles.

## `uniquementActives` (type: `boolean`):

Si coché, les entreprises cessées sont exclues.

## `siegeDansLaZone` (type: `boolean`):

Si coché, ne garde que les entreprises dont le siège est dans la zone. Si décoché, inclut aussi celles qui y ont seulement un établissement (par exemple une chaîne de boulangeries dont le siège est ailleurs).

## `maxResultats` (type: `integer`):

Le lancement s’arrête dès que ce nombre d’entreprises est atteint (au plus 10 000, limite de l’API).

## Actor input object example

```json
{
  "codesNaf": [
    "10.71C",
    "10.71D"
  ],
  "codesPostaux": [],
  "departement": "69",
  "tranchesEffectif": [],
  "uniquementActives": true,
  "siegeDansLaZone": true,
  "maxResultats": 100
}
```

# Actor output Schema

## `entreprises` (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 = {
    "codesNaf": [
        "10.71C",
        "10.71D"
    ],
    "departement": "69"
};

// Run the Actor and wait for it to finish
const run = await client.actor("frscrape/french-companies-search").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 = {
    "codesNaf": [
        "10.71C",
        "10.71D",
    ],
    "departement": "69",
}

# Run the Actor and wait for it to finish
run = client.actor("frscrape/french-companies-search").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 '{
  "codesNaf": [
    "10.71C",
    "10.71D"
  ],
  "departement": "69"
}' |
apify call frscrape/french-companies-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,frscrape/french-companies-search"
        }
    }
}
```

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/W9QSSfv6WCP3ZGemP/builds/gBTVcmUlV7jpb8XHa/openapi.json
