# French Company Search (SIRENE) — SIREN, NAF, Finances (`polyglot-data/sirene-companies`) Actor

Search French companies by name, SIREN, postcode, NAF activity, size or category. Get head office, legal form, revenue, net income and labels (RGE, ESS, bio). Official open data, no API key.

- **URL**: https://apify.com/polyglot-data/sirene-companies.md
- **Developed by:** [Polyglot Data](https://apify.com/polyglot-data) (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

Pay per event

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 (SIRENE) — SIREN, NAF, Finances

![French Company Search (SIRENE): example output](https://api.apify.com/v2/key-value-stores/5noGfeHp3GYPBOMYQ/records/sirene-banner.png?signature=1moh7kqFxdCmmzwdaFHeZ)

Search the French company register and get one clean JSON row per company: SIREN, name, legal form, NAF activity,
creation date, status, employee size band, category, head-office SIRET and address, coordinates, number of
establishments, **revenue and net income**, labels (RGE, ESS, organic, Qualiopi...) and collective agreements.

The data comes from the official French government company search API (`recherche-entreprises.api.gouv.fr`), built on
the SIRENE register and published under the Licence Ouverte (Etalab). **No API key and no login**. The actor uses plain
HTTP requests, so runs are fast and cheap. The price is about 4 to 5 times lower than actors built on Pappers.

### What you can do with it

- **Lead lists**: every bakery in a postcode, every SAS with 50 to 199 employees in a region, every RGE-labelled company.
- **Enrich a list**: paste SIREN numbers in `sirens` and get name, activity, size, address and finances for each.
- **Market and due-diligence checks**: filter by NAF code, legal form, revenue range or net income range.
- **Monitor a territory**: companies by commune, department or region, active or ceased.

### Input

| Field | What it does |
|---|---|
| `query` | Name, brand, SIREN or SIRET |
| `sirens` | List of SIREN numbers to look up (other filters are ignored) |
| `postalCodes`, `communeCodes`, `departments`, `regions` | Location filters |
| `nafCodes`, `nafSections` | Activity, e.g. `10.71C`, or section letter `A` to `U` |
| `sizeBands`, `categories` | Employee size band codes, and `PME` / `ETI` / `GE` |
| `legalForms` | INSEE legal form codes, e.g. `5710` (SAS) |
| `status` | `A` active (default), `C` ceased, `any` |
| `revenueMin/Max`, `netIncomeMin/Max` | Filter on published accounts |
| `onlyAssociations`, `onlyEss`, `onlyRge`, `onlyBio`, `onlyQualiopi`, `onlySocieteMission`, `onlyEmployers` | Label filters |
| `includeSoleProprietors` | Default `false`, see Legal below |
| `includeLegalEntityOfficers` | Default `false`: adds officers that are companies |
| `maxItems` | Default 100 |

At least one search input is required. The API returns up to 25 companies per page; the actor pages for you.

Example:

```json
{
  "query": "boulangerie",
  "postalCodes": ["75011"],
  "status": "A",
  "maxItems": 20
}
```

### Output

```json
{
  "siren": "123456789",
  "name": "BOULANGERIE EXEMPLE (BEX)",
  "legalForm": "SAS (simplified joint-stock company)",
  "nafCode": "10.71C",
  "status": "active",
  "sizeBand": "10-19",
  "category": "PME",
  "headOfficeSiret": "12345678900011",
  "address": "1 RUE DE L'EXEMPLE 75011 PARIS",
  "postalCode": "75011",
  "city": "PARIS 11",
  "revenue": 1000000,
  "netIncome": 45000,
  "financeYear": 2022,
  "labels": ["ESS", "bio"],
  "url": "https://annuaire-entreprises.data.gouv.fr/entreprise/123456789"
}
```

`finances` lists every published year. Revenue and net income exist only for companies that publish accounts, so
many small firms have `null`. The dataset has a table view with the main columns.

If an input produces nothing, you get one error item (`INVALID_INPUT`, `NO_RESULTS`, `NOT_FOUND`, `SOURCE_ERROR`)
that explains why. **Error items are never charged.**

### Pricing

Pay per event: **US$0.002 per company saved** (US$2 per 1,000). Error items and skipped companies are not charged.
The run stops when your charge limit is reached.

### Legal and GDPR

- **Source**: official open data, Licence Ouverte / Open Licence (Etalab). You may reuse it, including commercially,
  with attribution to the source.
- **No natural-person officers.** Names, first names and birth dates of managers are never read or output. Officers that
  are legal entities (SIREN, name, role) are added only if you set `includeLegalEntityOfficers`.
- **Non-diffusible units are skipped**: companies flagged non-diffusible by INSEE, or that opposed commercial use of
  their data, are never saved. The log reports how many were skipped.
- **Sole proprietors are excluded by default**: an entrepreneur individuel is named after a natural person. Set
  `includeSoleProprietors` only if you have a lawful basis; birth data is still never output.
- You are responsible for lawful use of the data (for example, prospecting rules). This is not legal advice.

### Limits

- The API caps how deep a single search can page. For very large lists, split by postcode, department or NAF code.
- Rate limit: the actor sends about 4 requests per second and retries on HTTP 429.

### 🇫🇷 En français

Recherchez les entreprises françaises (base SIRENE) : SIREN, nom, forme juridique, code NAF, date de création, état,
tranche d'effectif, catégorie, SIRET et adresse du siège, chiffre d'affaires et résultat net, labels (RGE, ESS, bio,
Qualiopi), convention collective et lien vers l'Annuaire des Entreprises. Données officielles (Licence Ouverte),
sans clé API. Filtres : texte libre, SIREN, code postal, commune, département, région, NAF, effectif, catégorie, CA.

Respect du RGPD par défaut : aucun dirigeant personne physique, les unités non diffusibles sont ignorées, et les
entrepreneurs individuels sont exclus sauf option `includeSoleProprietors`. Tarif : 0,002 US$ par entreprise.

# Actor input Schema

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

Company name, brand, SIREN (9 digits) or SIRET (14 digits). Accents and case are ignored.

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

List of 9-digit SIREN numbers to look up. When set, all other filters are ignored and each SIREN costs one request.

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

5-digit postal codes, e.g. 75011. Matches companies with an establishment there.

## `communeCodes` (type: `array`):

5-character INSEE commune codes, e.g. 75111 or 2A004.

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

Department codes, e.g. 75, 2A, 974.

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

2-digit INSEE region codes, e.g. 11 for Ile-de-France.

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

Main activity code of the company, e.g. 10.71C (bakery). Several codes are allowed.

## `nafSections` (type: `array`):

NAF section letters A to U, e.g. C for manufacturing, J for information and communication.

## `sizeBands` (type: `array`):

INSEE size band codes: NN (none/unknown), 00, 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+).

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

PME (small and medium), ETI (mid-cap) or GE (large).

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

4-digit INSEE legal form codes, e.g. 5710 (SAS), 5499 (SARL), 9220 (association).

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

Active companies only by default.

## `revenueMin` (type: `integer`):

Latest published revenue at least this amount. Only companies that publish accounts have it.

## `revenueMax` (type: `integer`):

Latest published revenue at most this amount.

## `netIncomeMin` (type: `integer`):

Latest published net income at least this amount.

## `netIncomeMax` (type: `integer`):

Latest published net income at most this amount.

## `onlyAssociations` (type: `boolean`):

Keep only associations.

## `onlyEss` (type: `boolean`):

Keep only social and solidarity economy companies.

## `onlyRge` (type: `boolean`):

Keep only companies with an RGE (environment guarantor) establishment.

## `onlyBio` (type: `boolean`):

Keep only companies with an organic-certified establishment.

## `onlyQualiopi` (type: `boolean`):

Keep only companies with the Qualiopi training certification.

## `onlySocieteMission` (type: `boolean`):

Keep only societes a mission.

## `onlyEmployers` (type: `boolean`):

Keep only companies with at least 1 employee (size band 01 or above). Ignored when sizeBands is set.

## `includeSoleProprietors` (type: `boolean`):

Sole proprietors (entrepreneur individuel) are named after a natural person, so they are excluded by default. Turn on only if you have a lawful basis. Birth data is never output.

## `includeLegalEntityOfficers` (type: `boolean`):

Adds legalEntityOfficers: officers that are companies (SIREN, name, role). Natural-person officers are never output.

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

Maximum number of companies to save in one run.

## Actor input object example

```json
{
  "query": "boulangerie",
  "sirens": [],
  "postalCodes": [
    "75011"
  ],
  "communeCodes": [],
  "departments": [],
  "regions": [],
  "nafCodes": [],
  "nafSections": [],
  "sizeBands": [],
  "categories": [],
  "legalForms": [],
  "status": "A",
  "onlyAssociations": false,
  "onlyEss": false,
  "onlyRge": false,
  "onlyBio": false,
  "onlyQualiopi": false,
  "onlySocieteMission": false,
  "onlyEmployers": false,
  "includeSoleProprietors": false,
  "includeLegalEntityOfficers": false,
  "maxItems": 20
}
```

# Actor output Schema

## `companies` (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 = {
    "query": "boulangerie",
    "sirens": [],
    "postalCodes": [
        "75011"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("polyglot-data/sirene-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 = {
    "query": "boulangerie",
    "sirens": [],
    "postalCodes": ["75011"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("polyglot-data/sirene-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 '{
  "query": "boulangerie",
  "sirens": [],
  "postalCodes": [
    "75011"
  ],
  "maxItems": 20
}' |
apify call polyglot-data/sirene-companies --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,polyglot-data/sirene-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/IqxqbbgOVQXazb017/builds/lnlCnRwgtGCrtQJTu/openapi.json
