# France Company Registry Export (SIREN): No 10k Cap (`classier_linear/france-company-registry-export`) Actor

Export every French company in a NAF code, departement or postcode segment from the official Annuaire des Entreprises API, past its 10,000-result cap: automatic splitting, SIREN dedupe, completeness report, prospecting opt-outs excluded, weekly diff mode. $2.90 per 1,000.

- **URL**: https://apify.com/classier_linear/france-company-registry-export.md
- **Developed by:** [Destiny Lazcano](https://apify.com/classier_linear) (community)
- **Categories:** Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.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.
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 Company Registry Export (SIREN): No 10k Cap

**Every French company in your segment, not just the first 10,000.** Export complete, de-duplicated lists of French companies by NAF/APE activity code, departement, postcode, headcount band or legal form from the official government API *Recherche d'entreprises* (Annuaire des Entreprises, INSEE Sirene and RNE data). Ready for Excel, CSV, JSON or your CRM.

Use cases: B2B prospect lists by NAF code and region, market sizing, KYC and SIREN enrichment, and a weekly feed of new companies in your niche.

### Why "no 10k cap"

The government API returns at most **10,000 results per search** and reports exactly `10000` whenever more match. Ask for every software company (NAF 62.01Z) in Paris and you silently get 10,000 of many more. Other tools stop there or tell you to split by hand.

This Actor splits for you:

1. It reads the first page of every search and checks whether the total reached the 10,000 cap.
2. If it did, it splits the search automatically: your own multi-value filters first, then by departement (all 101 departements plus the overseas collectivities), then by commune inside the departement, then by NAF section and activity code when you gave none, then by headcount band, sole-proprietor status and legal form.
3. It de-duplicates by SIREN across every piece. This matters because the API matches a company through *any* of its establishments.
4. It writes a **completeness report** (`COMPLETENESS_REPORT` in the run's key-value store). The report holds the full split tree, the reported total and the rows fetched for each piece, duplicates removed, opt-outs excluded, requests made, and the stop reason. A piece that still overflows after every possible split is fetched to 10,000 and marked `incomplete`. It is never hidden, and the run's status message says so too. `complete: true` means exhaustive as far as the API exposes it; it is `false` whenever a piece is unfinished, overflowing or `approximate` (see the FAQ). A progress copy of the report is saved about every minute while the run works.

### What you get

One row per company (SIREN):

| Columns | Notes |
|---|---|
| `siren`, `siret_siege`, `name`, `legal_name`, `sigle` | identity |
| `naf_code`, `naf_label`, `naf25_code`, `section` | activity (NAF rev. 2, plus the new NAF 2025 code) |
| `nature_juridique`, `nature_juridique_label`, `sole_proprietorship` | legal form (5710 = SAS, 5499 = SARL ...) |
| `categorie_entreprise`, `headcount_band`, `headcount_label`, `headcount_year`, `employer` | size |
| `date_creation`, `date_closed`, `etat_administratif` | status |
| `hq_address`, `hq_postcode`, `hq_city`, `hq_departement`, `hq_region`, `hq_lat`, `hq_lon` | head office |
| `establishments_total`, `establishments_open`, `vat_number` | |
| `revenue`, `net_income`, `finances_year` | latest published accounts, when filed publicly |
| `officers`, `officers_text` | name and role (see GDPR below); `officers_text` is one flat column for CSV |
| `prospecting_opt_out`, `date_mise_a_jour`, `annuaire_url`, `segment`, `source`, `retrieved_at` | compliance and audit trail |

**Establishment mode** (`One row per` = Establishment) returns one row per matching establishment (SIRET) located in your departements or postcodes. Each row has the establishment's address, trade name, activity, headcount and status, with the company columns repeated. It is de-duplicated by SIRET. *Name contains* works with company rows only: the API also applies the text to the establishments it lists, so establishment rows would silently go missing.

No emails or phone numbers: the registry does not publish them, and this Actor never scrapes other websites (no Pappers, no Societe.com).

### GDPR-conscious defaults

- **Prospecting opt-outs are excluded by default.** Under GDPR art. 21(2) and Code de commerce R.123-320, companies can oppose the reuse of their data for commercial prospecting. The API publishes this as `opposition_diffusion_commerciale`. With the default `optOutHandling: exclude`, those companies are dropped before output and never charged. Choose `flag` to keep them with `prospecting_opt_out: true` for non-marketing uses such as KYC or market sizing. Expect this to remove a large share: in our measurements on 2026-11-07, 51% of the evaluated companies in the prefill segment had opted out (273 of 539), and 46-55% in 100-company samples of national segments (62.01Z software, 43.21A electricians, 56.10A restaurants). The share is printed in every run log and in the report (`optOutShare`).
- **Officers' birth dates are dropped.** Natural persons are output with name and role only. Birth year and month are added only if you switch on *Include officers' birth year and month*. Nationality is never output. Officers that are companies are output with their SIREN and name.
- **Non-diffusible companies** never appear: the API itself excludes them.
- **Sole proprietors (entrepreneurs individuels):** the company name *is* a person's name, so these rows are personal data under GDPR. Use them only with a lawful basis, honor objections, and consider filtering on `sole_proprietorship = false` for B2B prospecting.

You remain the data controller for what you do with the export.

### How to use it

1. Add **NAF codes** (`62.01Z`, `70.22Z`, `43.21A`) and **departements** (`75`, `2A`, `971`) or **postcodes** (`75011`). Leave the area empty for all of France.
2. Optionally narrow by **headcount band**, **company category** or **legal form**.
3. Keep **Headquarters in the area only** on: without it a Paris search also returns Lyon companies with one Paris office. Rows removed this way are free.
4. Run, then download the dataset from the Storage tab.

Example: every active 10-49 employee software company headquartered in Paris (the prefill: 838 API matches, 34 calls, about 70 seconds, 266 companies after the head-office filter and opt-out exclusion on 2026-11-07):

```json
{ "nafCodes": ["62.01Z"], "departements": ["75"], "headcountBands": ["11", "12"], "maxRows": 0 }
```

### Diff mode: new companies in your niche, every week

Switch on **Only new or changed companies** and schedule the Actor weekly. It remembers each company's key fields (name, activity, legal form, size, head office, officers, accounts) for your exact filters and then outputs only:

- `new`: companies that entered your segment,
- `changed`: with `changed_fields`, for example `hq_address, officers_text`,
- `closed`: companies that ceased trading.

The first run outputs the whole segment as `new`. After that you pay only for changes. The full walk costs time, not money. State lives in your named key-value store `fr-registry-state`.

Every diff run walks the whole segment again, so the segment must fit within one run: about 45,000 API matches per hour at the default pace, within the 6-hour default timeout unless you raise it. A run stopped by the timeout keeps and remembers what it exported, but cannot check for closed companies that time.

### Pricing

Pay per event, plus Apify's standard run-start fee of $0.00005 (one two-hundredth of a cent). You are charged once per unique row saved to your dataset (`company` event).

| Plan | Price per 1,000 rows |
|---|---|
| Free | $2.90 |
| Bronze | $2.60 |
| Silver | $2.30 |
| Gold | $2.00 |

Duplicates, prospecting opt-outs (in exclude mode), companies filtered out by *Headquarters in the area only*, and unchanged companies in diff mode are **never charged**. Set **Maximum cost per run** to cap any run: the Actor stops cleanly when the cap is reached, keeps everything already saved, and says so in its status message.

### Speed and good citizenship

- Official government API only: no proxies, no cookies, one honest User-Agent.
- 0.5 requests per second by default (25 companies per request), adjustable up to 3. The API documents 7 per second per IP and 30 per second for the whole of Apify's cloud together, but in our tests it answered "too many requests" after a few calls at a steady 1 per second, so the default stays well below that.
- If the API answers "too many requests" (HTTP 429), refuses access, or sends anything that is not JSON, the run stops at once. It keeps everything already saved and finishes with an honest *partial result* message. The unfinished pieces are listed in `COMPLETENESS_REPORT`. Re-run later.
- Rough timing at the default pace: the prefill (838 matches, 34 calls) takes about 70 seconds. 100,000 matching companies take about 2 hours, plus the splitting probes.
- **Run timeout:** the default is 6 hours (about 270,000 API matches). The Actor stops by itself 3 minutes before the timeout, saves everything already exported, writes the report and ends with a *partial result* message listing the unfinished pieces. For bigger segments, raise the timeout in Run options before you start.

### Data source and attribution

Source: Annuaire des Entreprises / INSEE Sirene, Licence Ouverte 2.0. Data comes from the API Recherche d'entreprises (https://recherche-entreprises.api.gouv.fr), operated by the French government's Annuaire des Entreprises team, under the Licence Ouverte / Etalab 2.0. Free reuse, including commercial reuse, is allowed with attribution. Every row carries `source` and `retrieved_at`. This Actor is independent and is not affiliated with or endorsed by the French administration.

### FAQ

**Is the export guaranteed exhaustive?** When the report says `complete: true`, yes, as far as the API exposes it. The report flags any `incomplete` piece. Pieces that had to be split by headcount band, sole-proprietor status or legal form are marked `approximate`: the API's per-value counts were measured to add up to about 0.4-1% less than the combined count (companies with no band or flag fall into no piece). Such a run reports `complete: false`, `approximate: true`, and its status message says the list is near-complete. Splitting your own list of bands or legal forms into single values loses nothing and is not marked.

**How fresh is it?** The API is updated daily from INSEE Sirene and the RNE.

**Something looks wrong?** Open an issue on the Issues tab with your input. Issues are answered within 2 business days.

# Actor input Schema

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

INSEE NAF rev. 2 codes of the company's main activity, for example 62.01Z (computer programming), 70.22Z (business consulting), 43.21A (electrical installation), 56.10A (traditional restaurants). 6201Z and 62.01z are accepted. Leave empty to export every activity in the chosen area (then add at least a departement, postcode, legal form or name).

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

Broad activity sections A to U instead of exact codes, for example F (construction), J (information and communication), M (professional, scientific and technical).

## `departements` (type: `array`):

Departement codes such as 75, 69, 13, 2A, 2B, 971 to 976. Leave empty (and postcodes empty) for all of France: the Actor then splits by departement automatically. Note: the API matches a company through ANY of its establishments, so use 'Headquarters in the area only' to keep companies whose head office is in these departements.

## `postcodes` (type: `array`):

5-digit postcodes, for example 75011 or 69002. Combined with departements as OR: companies matching either are exported once.

## `headcountBands` (type: `array`):

INSEE employee bands (tranche d'effectif salarié). 11 = 10-19, 12 = 20-49, 21 = 50-99 employees. Leave empty for every size, including companies with no employees (NN), which are the large majority.

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

INSEE category. Many companies (often the newest) have no category yet and are left out when you pick one.

## `legalForms` (type: `array`):

INSEE catégorie juridique codes, for example 5710 (SAS), 5720 (SASU), 5499 (SARL), 5498 (EURL), 1000 (sole proprietor).

## `nameQuery` (type: `string`):

Free-text search on company name or address, at least 3 characters. Leave empty for whole segments. Company rows only: the API also applies the text to the establishments it lists, so it cannot be combined with 'One row per: Establishment'.

## `activeOnly` (type: `boolean`):

Only companies whose legal unit is active (etat_administratif = A). In establishment mode closed establishments are also skipped.

## `hqOnly` (type: `boolean`):

Keep only companies whose head office (siège) is in your departements or postcodes. Without it a Paris search also returns companies headquartered in Lyon or Lille that have one Paris establishment. Rows removed by this filter are never charged. Applies to company rows.

## `optOutHandling` (type: `string`):

Companies that opposed the reuse of their data for commercial prospecting (opposition_diffusion_commerciale, GDPR art. 21(2)). 'Exclude' drops them before output and never charges them; 'flag' keeps them with prospecting_opt_out = true for non-prospecting uses such as KYC or market sizing.

## `includeBirthYearMonth` (type: `boolean`):

Off by default: officers who are natural persons are output with name and role only. Turn on only if you have a lawful need for it.

## `outputLevel` (type: `string`):

Company: one row per SIREN with head-office address. Establishment: one row per matching establishment (SIRET) located in your departements or postcodes, with the company columns repeated.

## `maxRows` (type: `integer`):

Stop after this many rows. 0 = no limit. Your run's 'Maximum cost per run' also caps the export. At the default pace a run covers about 45,000 API matches per hour; the default run timeout is 6 hours, and the Actor stops by itself 3 minutes before the timeout with a partial result and a saved report. Raise the timeout in Run options for bigger segments.

## `requestsPerSecond` (type: `string`):

Pace of calls to the government API (25 companies per call). The API documents 7 calls/s per IP and 30/s for all of Apify's cloud together, but in our tests it answered 'too many requests' at a steady 1/s after a few calls, and this Actor stops (keeping your data) rather than push past a refusal. Keep 0.5 unless you have a reason; faster settings risk an early partial stop.

## `diffMode` (type: `boolean`):

Remembers each company's key fields for these exact filters (in the named key-value store 'fr-registry-state') and outputs only new, changed and closed companies on later runs, with change_type and changed_fields. The first run outputs everything as new. Unchanged companies are never charged. Company rows only. Each run walks the whole segment again, so the segment must fit within the run timeout (about 45,000 API matches per hour at the default pace): a run stopped by the timeout cannot detect closed companies.

## Actor input object example

```json
{
  "nafCodes": [
    "62.01Z"
  ],
  "departements": [
    "75"
  ],
  "headcountBands": [
    "11",
    "12"
  ],
  "activeOnly": true,
  "hqOnly": true,
  "optOutHandling": "exclude",
  "includeBirthYearMonth": false,
  "outputLevel": "company",
  "maxRows": 500,
  "requestsPerSecond": "0.5",
  "diffMode": false
}
```

# Actor output Schema

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

No description

## `completenessReport` (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 = {
    "nafCodes": [
        "62.01Z"
    ],
    "departements": [
        "75"
    ],
    "headcountBands": [
        "11",
        "12"
    ],
    "maxRows": 500
};

// Run the Actor and wait for it to finish
const run = await client.actor("classier_linear/france-company-registry-export").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"],
    "departements": ["75"],
    "headcountBands": [
        "11",
        "12",
    ],
    "maxRows": 500,
}

# Run the Actor and wait for it to finish
run = client.actor("classier_linear/france-company-registry-export").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"
  ],
  "departements": [
    "75"
  ],
  "headcountBands": [
    "11",
    "12"
  ],
  "maxRows": 500
}' |
apify call classier_linear/france-company-registry-export --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,classier_linear/france-company-registry-export"
        }
    }
}
```

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/OJYQgypYRblDR4eOh/builds/jFhtygSjzS2hCJWso/openapi.json
