# French Company Data API: SIREN leads by NAF & department (`goobertje/france-company-search`) Actor

French companies from the official recherche-entreprises API by NAF code, department, size and legal form, or by SIREN: head office, directors and finances. Opted-out companies are skipped free. $4 per 1,000.

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

## Pricing

from $4.00 / 1,000 company returneds

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 company search API: B2B leads and SIREN lookup from the official State register

Get lists of French companies by activity (NAF code), location, size and legal form, or look up a list of SIREN numbers. Each company comes back as one flat row with name, SIREN, head office address and coordinates, employee band, creation date, directors and published financials. It is for sales teams, data enrichment, KYC and market research.

The data comes from the official State company search API (API Recherche d'entreprises). No API key, no proxy and no browser are needed.

### Why use this Actor

- Official source: French State open data, queried through its public API at about one request per second.
- Respects the marketing opt-out: companies that opposed commercial use of their data are never returned in a search, and you are not charged for them.
- Several filters at once: NAF codes, postcodes, departments, employee bands, size category and legal form.
- Delta mode: build a list over several runs and only receive companies you did not get before.
- You pay per company returned. `maxItems` caps the cost of every run.

### Quick start

Click Start with the prefilled input. It returns 5 computer programming companies (NAF 62.01Z) with an establishment in Paris (department 75):

```json
{ "nafCodes": ["62.01Z"], "departments": ["75"], "maxItems": 5 }
```

In a real run this took about 2 seconds and returned 5 rows. Roughly half of companies in typical searches are opted out and skipped at no charge (47% to 70% in our tests on 2026-11-11), so the Actor reads about 2 to 3 times `maxItems` companies (see Limits). Open the Overview view of the dataset, or download JSON, CSV or Excel.

### What you get

One row per company (legal unit). Anything the source does not publish is `null`.

| Field | Meaning |
|---|---|
| `siren`, `siret` | SIREN (9 digits) and SIRET of the head office (14 digits) |
| `name`, `acronym` | Full name and acronym as published |
| `legalFormCode` | INSEE legal category code, for example `5710` (SAS) |
| `nafCode`, `nafCode2025`, `nafSection` | Main activity (NAF rev. 2), its NAF 2025 code and the section letter |
| `companyCategory` | `PME`, `ETI` or `GE` |
| `creationDate`, `administrativeStatus` | ISO date; `A` active or `C` ceased |
| `employeeBandCode`, `employeeBandLabel`, `employeeBandYear` | INSEE employee band code, its French label and the year it refers to |
| `establishmentCount`, `openEstablishmentCount` | Number of establishments, total and open |
| `headOffice` | `address`, `postalCode`, `city`, `department`, `regionCode`, `latitude`, `longitude` |
| `directors` | Directors as published (people and legal entities); `null` if you turn them off |
| `finances` | Revenue (`ca`) and net result by year, as published, when the company files them |
| `labels` | The register flags and labels the API publishes (association, ESS, RGE, Qualiopi and more) |
| `marketingOptOut` | `true` = opposed or restricted diffusion, `false` = no opposition, `null` = the source does not say |
| `updatedAt`, `sourceUrl`, `scrapedAt` | Last update in the API (no time zone published), the API URL for this company, run time (UTC) |

The employee band labels come from the INSEE "tranche d'effectifs" nomenclature as published in the file the API documentation links to. The raw code is always returned too. The region is returned as a code only, because the API does not publish region names.

Real sample item from a live run on 2026-11-11 (`labels` and `directors` are shortened here, `acronym` is null and left out):

```json
{
  "siren": "519037253",
  "siret": "51903725300043",
  "name": "TRUSTTEAM (TRUSTTEAM)",
  "legalFormCode": "5710",
  "nafCode": "62.01Z",
  "nafCode2025": "62.20H",
  "nafSection": "J",
  "companyCategory": "PME",
  "creationDate": "2009-12-23",
  "administrativeStatus": "A",
  "employeeBandCode": "22",
  "employeeBandLabel": "100 à 199 salariés",
  "employeeBandYear": "2024",
  "establishmentCount": 14,
  "openEstablishmentCount": 12,
  "headOffice": {
    "address": "PARC D'ACTIVITES SAINT JACQUES 41 RUE ALBERT EINSTEIN 54320 MAXEVILLE",
    "postalCode": "54320", "city": "MAXEVILLE", "department": "54", "regionCode": "44",
    "latitude": 48.7006371, "longitude": 6.1223250588
  },
  "directors": [
    { "siren": "399166222", "denomination": "YZICO AUDIT", "qualite": "Commissaire aux comptes titulaire", "type_dirigeant": "personne morale" }
  ],
  "finances": { "2021": { "ca": 9020207, "resultat_net": 1875294 } },
  "labels": { "convention_collective_renseignee": true, "liste_idcc": ["1486", "0804"], "est_ess": false, "est_rge": false },
  "marketingOptOut": false,
  "updatedAt": "2026-11-11T10:27:45",
  "sourceUrl": "https://recherche-entreprises.api.gouv.fr/search?q=519037253",
  "scrapedAt": "2026-11-11T12:26:47.605745Z"
}
```

Note the head office is in Maxeville although the search was for Paris: department and postcode filters match any establishment of the company (see Limits). The full output of the live runs is in `samples/` of the Actor source.

### Input

| Field | Use |
|---|---|
| `query` | Name or free text, for example `boulangerie` |
| `sirens` | Look up these SIREN numbers (up to 400). Cannot be combined with the search fields |
| `nafCodes` | NAF codes such as `62.01Z`; any match counts (up to 50) |
| `postalCodes`, `departments` | 5-digit postcodes; departments `75`, `2A`, `971` (up to 50 each) |
| `employeeBands` | INSEE band codes such as `11` (10-19) and `12` (20-49) |
| `companyCategories` | `PME`, `ETI`, `GE` |
| `legalFormCodes` | 4-digit legal category codes such as `5710` (SAS), `5499` (SARL) |
| `onlyActive` | Skip ceased companies in a search (default true) |
| `createdSince` | Keep companies created on or after a date, `YYYY-MM-DD` (applied by the Actor, see Limits) |
| `includeDirectors` | Include directors (default true) |
| `onlyNew`, `stateStoreName` | Delta mode and the name of its state store |
| `maxItems` | Cap on delivered (and charged) companies, default 100 |

A search needs at least one of `query`, `nafCodes`, `postalCodes`, `departments`, `employeeBands`, `companyCategories` or `legalFormCodes`. Filters are combined with AND; several values inside one filter are combined with OR. All values are validated before any request is sent.

### Pricing

Pay per event: **`company-returned`, $4.00 per 1,000 companies** ($0.004 per company). One company row is one event. Nothing else is charged.

- Free: companies skipped for the marketing opt-out, duplicates, companies already delivered in delta mode, SIREN numbers that do not exist, and rows filtered by `createdSince`.
- Cost control: `maxItems` stops the run at that many rows, and your maximum cost per run is respected.
- Example: the prefilled run returns 5 companies, which costs $0.02. A run that returns 10,000 companies costs $40.00.

### Use with AI agents (MCP, Claude, Cursor, n8n, Make)

AI agents can call this Actor through the Apify MCP server. Add it to your MCP client configuration (sign in with OAuth in the browser on first use):

```json
{ "mcpServers": { "apify": { "url": "https://mcp.apify.com?tools=goobertje/france-company-search" } } }
```

Example prompts and the input each one maps to:

1. "Find 20 small software consultancies in Paris and Hauts-de-Seine with 10 to 49 employees."
   `{ "nafCodes": ["62.01Z", "62.02A"], "departments": ["75", "92"], "employeeBands": ["11", "12"], "companyCategories": ["PME"], "maxItems": 20 }`
2. "Look up these three SIREN numbers and tell me who the directors are."
   `{ "sirens": ["652014051", "552032534", "519037253"], "includeDirectors": true }`
3. "Every new SAS in postcode 69002 since January, but only ones I have not seen before."
   `{ "postalCodes": ["69002"], "legalFormCodes": ["5710"], "createdSince": "2026-01-01", "onlyNew": true, "stateStoreName": "lyon-new-sas", "maxItems": 200 }`

In n8n, Make or Zapier, use the Apify node or module, pick this Actor and paste the same JSON.

### Use cases

- Build a B2B prospect list for one sector and region, with size and legal form filters.
- Enrich a list of SIREN numbers with name, address, NAF code, employee band and directors.
- Check a supplier or customer: status, creation date, establishments, published revenue.
- Map a market: how many mid-size companies work in a NAF code in a department.
- Feed a CRM weekly with new matches only (delta mode and a schedule).

### FAQ

**Where does the data come from and is it allowed?** From the API Recherche d'entreprises, the official State company search service built on French open data (INSEE Sirene register and the national company register). It is public, needs no key and documents a limit of 7 requests per second. This Actor sends about one request per second with an honest User-Agent and stops if the API blocks it.

**How fresh is it?** Each row has `updatedAt`, the last update of that record in the API. The Actor does not cache anything.

**How much does a typical run cost?** $0.004 per company returned. 500 companies cost $2.00.

**What happens if the API blocks or fails?** After repeated 429 or 403 answers the Actor slows down and stops, never trying to bypass the limit. If it already delivered rows, the run ends as Succeeded and the status message says why and how many rows you got. With no rows it fails. A query the API rejects always fails and shows the API's own message.

**Can I schedule it and get only new companies?** Yes. Turn on `onlyNew` and keep the same `stateStoreName` for the same search. The state is saved after every row, and the Actor remembers delivered companies for 400 days (at most 100,000, oldest dropped first with a warning in the log).

**What is not included?** Companies the register marks as non-diffusible, and companies that were refused registration (the API does not offer them). No phone numbers, e-mail addresses or websites: the API does not publish them. Establishments other than the head office are not listed.

### Limits and honest caveats

- **Marketing opt-out.** French law lets a company oppose the use of its register data for commercial prospecting. In a search, the Actor skips every company with `opposition_diffusion_commerciale: true` or a diffusion status other than `O`. Roughly half of companies in typical searches are opted out and skipped at no charge (47% to 70% in our tests on 2026-11-11), so the Actor reads about 2 to 3 times `maxItems` companies. The API cannot filter on it, so the Actor reads more pages (25 companies each, one per second) to reach `maxItems`. A SIREN lookup does return such a company, with `marketingOptOut: true`, and counts it as a delivered row. `marketingOptOut: null` means the source does not say (the company is absent from the national register); it is returned in a search.
- **Personal data.** `directors` contains names, roles and birth month and year of individuals. You are responsible for lawful use under the GDPR, including for any prospecting. Turn directors off with `includeDirectors: false` if you do not need them.
- **Filters match any establishment.** `postalCodes`, `departments` and the other location filters match companies with an establishment there. The head office, which is what `headOffice` shows, can be elsewhere. NAF code, size category, legal form and status apply to the company itself.
- **10,000 results per search.** The API never returns more than 10,000 results for one search. The status message says when you hit this; split the search by department or NAF code.
- **`createdSince` is applied by the Actor.** The API has no creation-date filter, so the Actor fetches pages and drops older companies. A narrow date on a broad search can use many pages. A run stops after 450 requests (a full 400-page search fits) and keeps what it delivered. Companies with no creation date are dropped when `createdSince` is set.
- **Lookups.** `sirens` cannot be combined with other filters (the API ignores them for a SIREN). `onlyActive` does not apply to lookups. A SIREN the API does not know is counted as not found and not charged. Each SIREN is one request, so 400 SIREN take about 7 minutes.
- **Data quality is the source's.** Some companies have no head office postcode, no employee band or no financials; those fields are `null`. `finances` shows only years the company filed.

### Source and legal

Data: API Recherche d'entreprises, French State open data (data.gouv.fr and annuaire-entreprises.data.gouv.fr), based on the INSEE Sirene register and the national company register. This Actor is not affiliated with, endorsed by or sponsored by the French State, INSEE, data.gouv.fr or the operators of the API. You are responsible for complying with the applicable terms, the GDPR and the French rules on commercial prospecting.

Found a problem or want a field added? Open an issue on the Actor page.

### Related Actors

- Watch the same companies for insolvency proceedings, sales and strike-offs, or find newly created companies: [France BODACC Monitor](https://apify.com/goobertje/france-bodacc-monitor) reads the official BODACC gazette.

If this Actor saved you time, a short review on its Store page helps other people find it. Found a problem or a missing field? Open an issue on the Issues tab.

# Actor input Schema

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

Company name, address words or director name to search. Only letters, digits, spaces, hyphens, apostrophes, ampersands and dots are used (other characters become spaces). Not a SIREN: use 'SIREN numbers' for that. Optional if you use a filter. Example: "boulangerie".

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

Look up these companies by SIREN (9 digits; a 14-digit SIRET is cut to its SIREN). Cannot be combined with Name, filters or Created since: when you fill in this field, clear the prefilled NAF code and department first (a lookup cannot be combined with search filters). Companies that opposed commercial use are returned here with marketingOptOut true. Up to 400. Example: \["652014051", "552032534"].

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

Keep companies whose main activity (NAF rev. 2 code) is one of these. Format 62.01Z (the dot is optional). Up to 50 codes, any match counts. Example: \["62.01Z", "62.02A"].

## `postalCodes` (type: `array`):

Keep companies with an establishment in one of these 5-digit postcodes. Note: the match is on any establishment, so the head office can be elsewhere. Up to 50. Example: \["75001", "69002"].

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

Keep companies with an establishment in one of these departments: 2 digits (75), 2A or 2B for Corsica, or 971 to 976 and 984 to 989 overseas. Note: the match is on any establishment, so the head office can be elsewhere. Up to 50. Example: \["75", "92"].

## `employeeBands` (type: `array`):

Keep companies in these INSEE employee bands: NN (non-employer), 00 (0 employees), 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 (1,000-1,999), 51 (2,000-4,999), 52 (5,000-9,999), 53 (10,000+). Example: \["11", "12"].

## `companyCategories` (type: `array`):

INSEE company category: PME (small and medium), ETI (mid-size), GE (large). Empty means any. Example: \["PME", "ETI"].

## `legalFormCodes` (type: `array`):

INSEE legal category codes (4 digits), any match counts. Up to 50. Example: \["5710", "5499"] for SAS and SARL.

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

Search only: skip ceased companies. A SIREN lookup always returns the company whatever its status. Default: true.

## `createdSince` (type: `string`):

Search only: keep companies created on or after this date, format YYYY-MM-DD. The API has no creation-date filter, so this is applied by the Actor after fetching: it only skips rows, and a narrow date can need many pages (the run stops at 450 requests). Empty means any. Example: "2025-01-01".

## `includeDirectors` (type: `boolean`):

Add the directors as published (names, role, birth month and year for individuals). They are personal data: you are responsible for lawful use under the GDPR. Default: true.

## `onlyNew` (type: `boolean`):

Skip companies an earlier run with the same State store name already delivered, so you can build a list over several runs. Use a different store name per search. Default: false.

## `stateStoreName` (type: `string`):

Name of the key-value store that remembers delivered SIREN numbers when 'Only companies not delivered before' is on. Lowercase letters, digits and hyphens, 3 to 63 characters. Default: france-company-search-state.

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

Stop after this many companies are delivered (and charged). 1 to 100000. Default: 100. A search can never return more than 10,000 companies (API limit).

## Actor input object example

```json
{
  "sirens": [],
  "nafCodes": [
    "62.01Z"
  ],
  "postalCodes": [],
  "departments": [
    "75"
  ],
  "employeeBands": [],
  "companyCategories": [],
  "legalFormCodes": [],
  "onlyActive": true,
  "includeDirectors": true,
  "onlyNew": false,
  "stateStoreName": "france-company-search-state",
  "maxItems": 5
}
```

# Actor output Schema

## `companies` (type: `string`):

French companies as flat lead rows.

# 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 = {
    "nafCodes": [
        "62.01Z"
    ],
    "departments": [
        "75"
    ],
    "onlyActive": true,
    "includeDirectors": true,
    "maxItems": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("goobertje/france-company-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 = {
    "nafCodes": ["62.01Z"],
    "departments": ["75"],
    "onlyActive": True,
    "includeDirectors": True,
    "maxItems": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("goobertje/france-company-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 '{
  "nafCodes": [
    "62.01Z"
  ],
  "departments": [
    "75"
  ],
  "onlyActive": true,
  "includeDirectors": true,
  "maxItems": 5
}' |
apify call goobertje/france-company-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,goobertje/france-company-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/OvSDTn5EvoBdIH6tE/builds/5RVRlKtzp5IwmFcVg/openapi.json
