# French Companies Search – Official Open Data (SIREN, NAF) (`datiaperti-it/france-companies`) Actor

Find French companies by sector (NAF), region, department, postal code, size, category, revenue and labels such as RGE or Qualiopi, from the French government's official open API. SIREN, VAT number, head office, matching establishments, latest revenue. No personal data, GDPR-friendly.

- **URL**: https://apify.com/datiaperti-it/france-companies.md
- **Developed by:** [Dati Aperti IT](https://apify.com/datiaperti-it) (community)
- **Categories:** Lead generation, Business
- **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 companies

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 – Official Open Data (SIREN, NAF)

Find **French companies** by sector, location, size, revenue and certifications, straight from the
**French government's official open API** (Annuaire des Entreprises, "API Recherche d'entreprises").
Clean company-level records with **SIREN, VAT number, head office, matching establishments and latest
revenue**, ready for Excel, your CRM or your AI agent.

- **Official open data, legal to reuse:** INSEE Sirene, INPI RNE and other French administrations,
  published under the **Licence Ouverte / Open Licence 2.0**. No scraping of private websites.
- **Filters that build real B2B lists:** NAF sections or precise NAF codes, regions, departments,
  postal codes, number of employees, PME/ETI/GE category, minimum and maximum revenue, and labels such
  as **RGE, Qualiopi, ESS, organic, mission-driven company**.
- **Where they actually operate:** location filters match establishments, and each company comes
  with the establishments found in your area (address, activity, employees).
- **"Only new" mode:** schedule it weekly and get only companies you haven't seen yet, for example
  newly registered businesses in your sector and area.
- **GDPR-friendly by design:**
  - company-level data only: never names of directors or other people;
  - sole traders are always skipped, because their company name is a person's name;
  - companies that **opted out of commercial prospecting** are skipped by default.

### Who uses it

- **Sales and marketing teams:** lead lists such as "construction companies with 10–49 employees in the
  Rhône" or "RGE-certified installers in Gironde".
- **Suppliers and buyers:** check a company by SIREN, VAT number, size, revenue and labels.
- **Market analysts:** count and map companies by sector, area and size.
- **Data and AI teams:** enrich a CRM, or let an AI agent look up French companies.

### Input

| Field | What it does |
|---|---|
| Keywords | Company name, words in the name or address, or a SIREN/SIRET number. Optional. |
| Business sectors | NAF sections A–U, e.g. F – Construction. |
| NAF codes | Precise activities, e.g. `43.22A` (plumbing), `62.01Z` (software development). |
| Regions, departments, postal codes | Companies with at least one establishment there. Departments: `69`, `75`, `2A`, `974`... |
| Number of employees | 1-9, 10-49, 50-249, 250-999, 1,000+. |
| Company category | PME, ETI, GE. |
| Labels and certifications | RGE, organic, ESS, Qualiopi, training organisation, mission-driven company, EPV, RFAR, SIAE, association. |
| Minimum / maximum revenue | Latest published revenue, in euros. |
| Only active companies | Skip companies that ceased activity (default on). |
| Include companies that opted out of prospecting | Off by default. Turn on **only for non-marketing uses** such as supplier checks, KYB or statistics. |
| Biggest first | Sort by number of establishments. |
| Max results | Up to 10,000 per search (the API maximum). |
| Only new since last run | Output only companies not returned before by the same search. |

### Output example

```json
{
  "siren": "841558984",
  "name": "METAL 2000",
  "legalForm": "5710",
  "naf": "43.32B",
  "naf2025": "43.32H",
  "section": "F",
  "sectionLabel": "Construction",
  "category": "PME",
  "employees": "20-49",
  "employeesYear": "2024",
  "createdOn": "2018-07-15",
  "active": true,
  "optedOutOfProspecting": false,
  "establishments": 63,
  "openEstablishments": 60,
  "vatNumber": "FR55841558984",
  "headOffice": {
    "siret": "84155898400024",
    "address": "54 BOULEVARD SAINT-MARCEL 75005 PARIS",
    "postalCode": "75005",
    "city": "PARIS",
    "department": "75",
    "region": "Île-de-France",
    "latitude": 48.838436046,
    "longitude": 2.3563697518
  },
  "matchingEstablishments": [
    {"siret": "...", "address": "... 69003 LYON", "postalCode": "69003", "city": "LYON", "naf": "43.32B", "employees": "6-9", "isHeadOffice": false, "active": true, "createdOn": "2023-10-18"}
  ],
  "finances": {"year": 2021, "revenue": 0, "netIncome": 53749},
  "labels": [],
  "collectiveAgreements": ["3248"],
  "url": "https://annuaire-entreprises.data.gouv.fr/entreprise/841558984",
  "source": "Source: Annuaire des Entreprises - API Recherche d'entreprises (French government, DINUM), data from INSEE Sirene, INPI RNE and other French administrations. Licence Ouverte / Open Licence 2.0 (Etalab)."
}
```

### Good to know

- **No phone numbers or emails.** The official register doesn't publish them, and we don't add
  personal data.
- **Opted-out companies.** In France a company can oppose the use of its data for commercial
  prospecting. Those companies are not delivered unless you turn on the option and declare a
  non-marketing use. When included, they are flagged with `optedOutOfProspecting: true`.
- **10,000 results per search.** For bigger lists, split by department or sector.
- **Polite to the source.** The Actor stays well below the official API's rate limits.
- **Finances** are the latest published by the company, and are often missing for small companies.

### How much does it cost?

You pay only for results: **$3 per 1,000 companies**, plus a tiny start fee. A list of 500 companies
costs about $1.50.

### Use it from your CRM, spreadsheet or AI agent

- Export to **Excel, CSV or JSON**, or send results to **Google Sheets, HubSpot, Make, Zapier or n8n**.
- Run it **weekly** with "Only new" on to catch newly registered companies.
- **AI agents** can use it as a tool through the Apify MCP server: "find RGE-certified installers with
  10-49 employees in Gironde".

### FAQ

**Why are some companies missing?** These are never delivered:

- sole traders, to protect personal data;
- non-public records;
- companies that opted out of commercial prospecting, unless you turn on the option for a
  non-marketing use.

**Do you provide phone numbers, emails or directors' names?** No. The output is company-level only.

**How fresh is the data?** Every run reads the official API live. It is updated from INSEE and INPI
registers.

**I need more than 10,000 companies.** Split the search by department or sector: the official API
returns at most 10,000 results per search.

**Can I suggest a feature?** Yes, open an issue in the Issues tab: we usually answer within a few days.

### Source and licence

Data: Annuaire des Entreprises – API Recherche d'entreprises (DINUM), from INSEE Sirene, INPI RNE and
other French administrations, under [Licence Ouverte / Open Licence 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/).
Every record carries the attribution in the `source` field. This Actor is independent and not affiliated
with the French administration.

***

### En français

Recherchez des **entreprises françaises** par secteur (NAF), région, département, code postal, effectif,
catégorie, chiffre d'affaires et labels (RGE, Qualiopi, ESS, bio…) depuis l'API officielle et ouverte
de l'Annuaire des Entreprises.

- **Données utiles:** SIREN, TVA intracommunautaire, siège, établissements de votre zone, dernier chiffre
  d'affaires.
- **Respect de la vie privée:**
  - aucun nom de personne;
  - entrepreneurs individuels exclus;
  - entreprises opposées à la prospection commerciale exclues par défaut.

# Actor input Schema

## `keywords` (type: `string`):

Company name or words in the name or address, or a SIREN/SIRET number. Optional if you use other filters.

## `sections` (type: `array`):

Broad sectors (NAF sections). Leave empty for all.

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

Precise activity codes like 43.22A (plumbing), 62.01Z (software development), 56.10A (restaurants).

## `regions` (type: `array`):

Companies with at least one establishment in these regions.

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

Department codes like 69 (Rhône), 75 (Paris), 2A (Corse-du-Sud), 974 (La Réunion).

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

5-digit postal codes, e.g. 69003.

## `companySizes` (type: `array`):

Employee ranges. Leave empty for all sizes.

## `categories` (type: `array`):

INSEE category: SMEs, mid-caps or large companies.

## `labels` (type: `array`):

Only companies holding all the selected labels.

## `minRevenue` (type: `integer`):

Only companies whose latest published revenue is at least this amount.

## `maxRevenue` (type: `integer`):

Only companies whose latest published revenue is at most this amount.

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

Skip companies that have ceased activity.

## `includeOptedOut` (type: `boolean`):

Many French companies have opted out of commercial prospecting. They are skipped by default. Turn this on ONLY for non-marketing uses such as supplier checks, KYB or market statistics: these companies are then included and flagged with optedOutOfProspecting = true. You must not use them for marketing or sales prospecting.

## `sortBySize` (type: `boolean`):

Sort by number of establishments, biggest companies first.

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

Stop after this many companies. The official API returns at most 10,000 per search.

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

Remember the companies this search returned before and output only new ones, e.g. newly created businesses in your sector and area. Ideal with a weekly schedule.

## Actor input object example

```json
{
  "sections": [
    "F"
  ],
  "departments": [
    "69"
  ],
  "onlyActive": true,
  "includeOptedOut": false,
  "sortBySize": false,
  "maxResults": 100,
  "onlyNew": false
}
```

# Actor output Schema

## `results` (type: `string`):

All results of the run, one item per record.

# 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 = {
    "sections": [
        "F"
    ],
    "departments": [
        "69"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datiaperti-it/france-companies").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 = {
    "sections": ["F"],
    "departments": ["69"],
}

# Run the Actor and wait for it to finish
run = client.actor("datiaperti-it/france-companies").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 '{
  "sections": [
    "F"
  ],
  "departments": [
    "69"
  ]
}' |
apify call datiaperti-it/france-companies --silent --output-dataset

```

## MCP server setup

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

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/tBEaILTvnjYusGo11/builds/1FxZ2cLq3xr0p4Vxv/openapi.json
