# France Company Search (SIRENE) - Companies by NAF Code & Region (`kobakotools/pubdata-eu-companies`) Actor

Search French companies from the official government API (Sirene data, Open Licence 2.0). Filter by NAF code, sector, department, region, size and creation date. No API key, no personal data.

- **URL**: https://apify.com/kobakotools/pubdata-eu-companies.md
- **Developed by:** [Rin Washi](https://apify.com/kobakotools) (community)
- **Categories:** Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

## France Company Search (SIRENE): Companies by NAF Code, Department & Region

### What does France Company Search do?

It searches the **French company register (INSEE Sirene)** through the **official French government API**, *API Recherche d'entreprises* (data.gouv.fr). You can filter by **NAF/APE code**, activity section, **department**, region, postal code, company size (PME/ETI/GE), legal form and creation date. You get SIREN, name, creation date, status, headcount band, head-office city and the latest revenue as clean JSON, CSV or Excel. You don't need an API key.

### Why use it?

- **Official, keyless and openly licensed**: the data comes from a French government API under the Licence Ouverte 2.0, which allows commercial reuse with attribution. There's no scraping and no account to create.
- **No personal data by design**: sole proprietors (*entrepreneurs individuels*, whose company name is a person's name) and "non-diffusible" records are dropped. Directors (*dirigeants*) are never requested, and the head office is given at city, postal-code, department and region level only.
- **B2B-ready fields**: NAF code, size category, employee band, number of establishments, latest revenue and net income (when published), plus a link to the official *Annuaire des Entreprises* page.
- **Monitoring mode**: schedule the Actor and turn on **Only new items** to receive only companies you haven't seen before.
- **Fair pay-per-result pricing** with a hard stop at your maximum cost per run.

### How to use

1. Choose filters, for example **Activity section** `J` (information & communication) and **Department** `75` (Paris).
2. Optionally add **NAF codes** (for example `62.01Z`), a **creation date range**, **size category** or **legal form codes** (for example `5710` SAS).
3. Set **Max results** (default 25) and click **Start**.
4. For monitoring, create a daily or weekly **Schedule** and turn on **Only new items**.

### Input example

```json
{
  "nafCodes": ["62.01Z"],
  "departments": ["69"],
  "status": "active",
  "companyCategories": ["PME"],
  "createdFrom": "2025-01-01",
  "maxItems": 200,
  "maxPagesToScan": 40
}
```

### Output example

```json
{
  "siren": "123456789",
  "name": "EXEMPLE LOGICIEL",
  "acronym": "EXL",
  "creation_date": "2024-03-01",
  "status": "active",
  "naf_code": "62.01Z",
  "naf_section": "J",
  "legal_form_code": "5710",
  "company_category": "PME",
  "employee_band": "11",
  "is_employer": true,
  "establishments": 2,
  "open_establishments": 1,
  "hq_siret": "12345678900011",
  "hq_postal_code": "75002",
  "hq_city": "PARIS",
  "hq_department": "75",
  "hq_region": "11",
  "financial_year": "2023",
  "revenue_eur": 2000000,
  "net_income_eur": 150000,
  "url": "https://annuaire-entreprises.data.gouv.fr/entreprise/123456789",
  "source": "API Recherche d'entreprises (DINUM / INSEE Sirene, data.gouv.fr)",
  "license": "Licence Ouverte / Open Licence 2.0 (Etalab)",
  "fetched_at": "2026-09-21T05:00:00Z"
}
```

`employee_band` and `legal_form_code` are INSEE codes (*tranche d'effectif salarié* and *catégorie juridique*).

### Pricing

This Actor is pay per event:

- **$1.50 per 1,000 companies** (`result` event, $0.0015 each)
- plus Apify's small automatic start event (`apify-actor-start`)

The default run (25 companies) costs about $0.04. Set **Max cost per run** in the run options, and the Actor stops cleanly when the limit is reached.

### Why France, and why this API?

We compared the official, free company-register APIs of EU countries before choosing one:

| Country / API | Key needed | Commercial reuse | Notes |
|---|---|---|---|
| **France, API Recherche d'entreprises** | No | Yes (Licence Ouverte 2.0) | Government-run, stable, rich filters (NAF, department, size). **Chosen.** |
| Germany, Handelsregister | No official search API | Restricted | Existing Store tools scrape the portal. |
| Netherlands, KVK API | Yes (paid per call) | Per contract | Cost per query. |
| Denmark, CVR | Credentials on request | Yes | Access has to be requested manually. |

### Data source and license

- Source: [API Recherche d'entreprises](https://recherche-entreprises.api.gouv.fr/docs/) by DINUM, based on INSEE Sirene and other public registers ([data.gouv.fr](https://www.data.gouv.fr/dataservices/api-recherche-dentreprises)).
- License: [Licence Ouverte / Open Licence 2.0](https://www.etalab.gouv.fr/licence-ouverte-open-licence/). Attribution: "Source: API Recherche d'entreprises / INSEE Sirene, data.gouv.fr", with the date of retrieval (`fetched_at`).
- The API limits clients to 7 requests per second. This Actor stays below that and retries politely on HTTP 429.

### Limitations

- The API has no creation-date filter. `createdFrom` and `createdTo` are applied to the pages scanned, up to `maxPagesToScan` × 25 companies, so narrow date searches may need a higher `maxPagesToScan`.
- A search returns at most 10,000 companies (400 pages).
- Sole proprietors are always excluded, so counts are lower than the raw register.
- Financial data is only available for companies that publish accounts.

### Your responsibility

You are responsible for using the data in line with the source's terms and applicable law, including the GDPR and French rules on direct marketing (CNIL). This Actor calls only the official public API and doesn't output personal data. Don't combine it with other sources to profile individuals.

### AI disclosure

This Actor's planning, code and description were created with generative AI (Claude) and are verified by automated tests. Supported environment: the Apify platform (Python 3.11).

### Changelog

- 0.1 (2026-09): first release.

# Actor input Schema

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

Company name, SIREN (9 digits) or SIRET (14 digits). At least 3 characters. Leave empty to search by filters only.

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

NAF sections, e.g. J = information & communication, F = construction, I = accommodation & food.

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

Detailed NAF rev.2 codes, e.g. 62.01Z (software), 56.10A (restaurants).

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

Department codes of the head office's establishments, e.g. 75 (Paris), 69 (Rhone), 2A (Corse-du-Sud).

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

INSEE region codes, e.g. 11 (Ile-de-France), 84 (Auvergne-Rhone-Alpes).

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

5-digit postal codes.

## `status` (type: `string`):

Active companies, ceased companies, or both.

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

PME (SME), ETI (mid-size), GE (large). Empty = all.

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

INSEE 'catégorie juridique' codes, e.g. 5710 (SAS), 5499 (SARL). Sole proprietors (1xxx) are always excluded.

## `createdFrom` (type: `string`):

Keep only companies created on or after this date (filtered on the scanned pages).

## `createdTo` (type: `string`):

Keep only companies created on or before this date.

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

Maximum number of companies to save (each saved company is one billable event).

## `maxPagesToScan` (type: `integer`):

Upper bound of API pages (25 companies each) to read. Raise it when date filters are narrow.

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

Return only companies not returned by earlier runs with the same state key. Use with a schedule.

## `stateKey` (type: `string`):

Name of the memory used by 'Only new items'. Use a different key per saved search.

## Actor input object example

```json
{
  "sections": [
    "J"
  ],
  "nafCodes": [],
  "departments": [
    "75"
  ],
  "regions": [],
  "postalCodes": [],
  "status": "active",
  "companyCategories": [],
  "legalForms": [],
  "maxItems": 25,
  "maxPagesToScan": 20,
  "onlyNew": false,
  "stateKey": "default"
}
```

# Actor output Schema

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

All items saved by this run (the default dataset).

# 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": [
        "J"
    ],
    "departments": [
        "75"
    ],
    "maxItems": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("kobakotools/pubdata-eu-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": ["J"],
    "departments": ["75"],
    "maxItems": 25,
}

# Run the Actor and wait for it to finish
run = client.actor("kobakotools/pubdata-eu-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": [
    "J"
  ],
  "departments": [
    "75"
  ],
  "maxItems": 25
}' |
apify call kobakotools/pubdata-eu-companies --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kobakotools/pubdata-eu-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/3Haa8z1kLqwH0G6H9/builds/Yw4tpQFCP74h89ZdR/openapi.json
