# SIRENE Scraper: French Companies by NAF, SIREN & SIRET (`alexmorain/sirene-company-scraper`) Actor

Every French company of a SIRENE segment, past the 10,000-result limit of the official search. Filter by NAF code, department, postal code, size, legal form, revenue and labels, or look up SIREN and SIRET numbers. Officers, accounts, new-company monitoring and webhook.

- **URL**: https://apify.com/alexmorain/sirene-company-scraper.md
- **Developed by:** [Alexis Morain](https://apify.com/alexmorain) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.75 / 1,000 company records

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

## SIRENE Scraper: French companies by NAF code, SIREN and SIRET

SIRENE Scraper returns French companies from the SIRENE business register as clean rows: SIREN, SIRET of the head office, name, NAF activity with its label, legal form, headcount range, category, address and coordinates, directors, revenue and net income, VAT number, labels, and a link to the public record. Pick a NAF code, a zone, a size or a list of SIREN numbers, and it returns every matching company, not the first 10,000. No account, no cookie, no API key.

It reads the open recherche-entreprises API of the French administration (recherche-entreprises.api.gouv.fr), built on SIRENE and other public registers. That API stops at 10,000 results per search and does not say how many companies it left out. This Actor splits a large search into slices small enough to read in full, removes the duplicates the slices create, and returns each company once.

It is built for sales and outbound teams building a target list by activity and region, lead generation agencies, data teams that refresh a company table, and researchers sizing a sector: a SIRENE API alternative that needs no key.

### What does SIRENE Scraper do?

The Actor sends searches to the recherche-entreprises API, reads every page of every slice, and writes one row per company to the dataset. You can search in four ways, alone or combined:

1. By segment: NAF codes (for example 10.71C, bakeries), NAF sections, a text query, a zone (departments, postal codes, commune codes, regions), employee ranges, company categories (PME, ETI, GE), legal forms, revenue, status, and labels such as RGE, Qualiopi, organic, ESS, SIAE, training organization or association.
2. By number: a list of SIREN (9 digits) or SIRET (14 digits). Each one returns its company, or is reported as not found.
3. By radius: a latitude, a longitude and a radius up to 50 km, optionally with a NAF code or section.
4. By time: companies created on or after a date, and monitoring that returns only the companies you have not received before.

What it does not do: it does not return establishments as separate rows (only as a list on each company), it does not give the full SIRENE file, and it does not give emails, phone numbers or websites, which the source does not carry.

### Why use SIRENE Scraper?

The full segment, not the first 10,000. A plain search for NAF 43.21A (electrical installation) in the department 93 stops at 10,000. The Actor returned 10,489 unique companies for the same search, in 107 seconds. The section "The 10,000 limit, with numbers" below shows how that works and where the counts differ.

No key. The source is open. The Actor keeps to about 5 requests per second, under the limit of 7 per IP address, and retries refusals with a pause.

Filters you can check. Each filter was tested against the source one at a time: the total moves in the right direction when you add it. A wrong code (a NAF code that does not exist, a department 999) stops the run at once with a clear message instead of returning nothing.

Monitoring and a fair default. Run the same search every week and get only the new companies. Companies whose owner opposed commercial prospecting are skipped and not charged, and you can turn that off (see Defaults you should know).

Scheduling, the API, a webhook at the end of the run and integrations with Make, n8n, Zapier, Google Sheets and Slack come with the Apify platform.

It resumes after a restart: companies already delivered are not delivered or charged twice.

### What data can you extract?

Every row has these fields. Missing values are null, never an error. Numbers are numbers, dates are YYYY-MM-DD.

| Field | Type | What it is |
|---|---|---|
| siren | string | 9-digit company number |
| siret | string | 14-digit number of the head office |
| name | string | Name as shown by the registry |
| legalName | string | Registered legal name |
| acronym | string | Acronym (sigle), when there is one |
| nafCode | string | Main activity code, NAF revision 2 (for example 43.21A) |
| nafLabel | string | Label of the NAF code, null if the code is unknown |
| naf25Code | string | Main activity in the NAF 2025 nomenclature |
| section | string | NAF section letter, A to U |
| legalFormCode | string | INSEE legal form code (nature juridique), for example 5710 |
| legalFormLabel | string | Label of the legal form, null if unknown |
| companyCategory | string | PME, ETI or GE |
| employeeRangeCode | string | INSEE headcount range code (NN, 00, 01, 02, 03, 11 to 53) |
| employeeRangeLabel | string | The range in words, for example "20 à 49 salariés" |
| employeeRangeYear | number | Year the headcount range refers to |
| isEmployer | boolean | True when the company has employees |
| createdAt | string | Creation date of the company |
| status | string | active or closed |
| closedAt | string | Closing date, when closed |
| address | string | Head office address |
| postalCode, city, communeCode | string | Head office postal code, city and INSEE commune code |
| department, region | string | Department and region codes of the head office |
| latitude, longitude | number | Head office coordinates |
| establishmentsCount | number | Number of establishments, closed ones included |
| openEstablishmentsCount | number | Number of open establishments |
| directors | array | Officers: a person (lastName, firstNames, birthYear, nationality) or a company (name, siren), with their role |
| revenue, netIncome, financialYear | number | Latest published accounts, in euros |
| finances | array | Revenue and net income for every published year, latest first |
| vatNumber | string | Intra-community VAT number |
| collectiveAgreements | array | IDCC codes of the collective agreements |
| labels | object | True or false for rge, qualiopi, organic, ess, siae, trainingOrganization, association, soleTrader, livingHeritage, missionCompany, performingArtsEntrepreneur, healthSocial, school, responsiblePurchasing, foodHygieneChecked, lawyer |
| commercialOptOut | boolean | True when the company opposed commercial use of its data |
| updatedAt | string | Last update of the record at the source |
| annuaireUrl | string | The company page on annuaire-entreprises.data.gouv.fr |
| establishments | array | Only with the option: the establishments that match your filters (SIRET, address, NAF, status, headcount, coordinates), up to 100 per company. Empty when you filter on nothing about establishments: the source returns the ones that matched |
| scrapedAt | string | When the row was read |

Revenue and net income exist only for companies that publish accounts. In a sample of 25 bakeries, 13 had them. Small companies and sole traders often do not, and the field is null for them.

Results come in the dataset, which you can export as JSON, CSV, Excel, XML or HTML, or read through the API.

### How to get a list of French companies by NAF code

1. Open the Actor and type a NAF code in NAF / APE codes, for example 43.21A. The code can be written 4321A too.
2. Add a zone if you want one: departments, postal codes, commune codes or regions. Leave it empty for the whole country.
3. Set Max companies. Start with 50 to look at the rows. The default is 1,000.
4. Press Start. A segment of a few thousand companies takes under a minute. The test run of 10,489 companies took 107 seconds.
5. Download the dataset from the Output tab, or read it from the API.

To look up one company, put its SIREN or SIRET in SIREN or SIRET numbers instead.

### The 10,000 limit, with numbers

The recherche-entreprises API refuses any page beyond the 10,000th result, and when a search matches more than that, it reports 10,000 as the total. So you cannot tell, from the answer, how many companies you missed. For NAF code 43.21A, a plain search returns 10,000. Adding up the totals the API gives department by department (metropolitan and overseas) gives 234,575 for the same code. A plain search reads about 4 percent of the segment.

The Actor handles it by splitting. When a slice reports 10,000 or more, it is cut again: first by department (if you did not give one), then by employee range (16 codes), then by legal form (260 codes). Only then does it cut by commune, as a last resort. A slice that is still full after that is read to its limit and reported in the run status and the SUMMARY record. Those values come from the API itself, and they add up: for 43.21A in the department 35, the totals by employee range and the totals by legal form both sum to 2,217, the same as the total for the department.

I tried other cuts first and dropped them. Cutting by postal code loses companies whose establishment address is hidden ("\[NON-DIFFUSIBLE]"): 24 of 2,217 in the department 35. Cutting by commune with the official commune list loses whole communes the list does not know: in the department 93 it missed one commune and about 180 companies. The employee range and legal form cuts lost nothing in the same tests.

The test that gives the headline number, run on the Apify platform:

| Search | Result |
|---|---|
| Plain search, NAF 43.21A, department 93 | 10,000 (the cap) |
| This Actor, same search, all statuses | 10,489 unique companies |
| Time and requests | 107 seconds, 435 requests, 86 MB of memory |
| Sum of the slice totals | 10,598 |

Why 10,598 and 10,489 do not match, and why the national figure of 234,575 is not exact either:

1. Department, postal code and commune filters match any establishment of a company, not only its head office. A company with a shop in Paris and one in Hauts-de-Seine is found in both departments. For bakeries (10.71C), 243 of the 3,753 companies of the department 75 also appear in the department 92. Adding department totals counts those companies twice, so 234,575 is an upper bound for the number of electrical installation companies, and I have not measured the exact national count. The Actor removes the duplicates before it returns anything and before it charges.
2. The total the API announces counts a little more than it serves. For bakeries in Paris it announced 3,759 and served 3,753. For one slice of the department 93 it announced 8,945 and served 8,836, and a second cut of the same slice by legal form served the same 8,836 companies. So about 1 percent of the announced number is not a missing company, it is a counting difference at the source.

The Actor returns every company the API will serve for your filters, once. The SUMMARY record puts the slice total, the unique companies read and the number returned side by side so you can check a run.

### Defaults you should know

Two defaults change how many rows you get. Both are on purpose.

#### Companies opposed to commercial use are skipped

The registry carries a flag, opposition à la diffusion commerciale, for companies whose owner asked that their data is not used for commercial prospecting. It concerns mostly sole traders. The Actor skips those companies by default (excludeCommercialOptOut is true) and does not charge for them.

How many that is depends on the segment. In my runs it was 21 percent of the active bakeries of Paris (490 of 2,332) and about 4 in 10 for the active bakeries of Ille-et-Vilaine (36 skipped for 50 returned in a test). Expect between a fifth and two fifths for activities with many sole traders, much less for companies with employees.

To get them, set Skip companies opposed to commercial use to off. Then you carry the responsibility: the flag is returned in commercialOptOut for each row, and prospecting a company that opposed it is your decision and your legal risk. If you use the data for something other than prospecting (market sizing, research, compliance checks), turning it off is normal.

#### Status is active

By default only active companies are returned (status active). The source returns active and closed companies together when you give no status, so the same search gives roughly twice as many rows without this default: for 43.21A in the department 35 the source reports 2,217 companies, of which 1,194 are active and 1,023 closed. Set status to closed for the closed ones, or all for both. For bakeries in the department 75, status all returns 3,753 companies and the default returns the 2,332 active ones.

### Monitoring new French companies

There are two ways to follow new companies. They can be combined.

Created after a date. Set Created on or after to a date like 2026-11-01. The source cannot filter on the creation date, so the Actor reads the segment and keeps the companies created from that date on. The companies it skips are not charged. This gives you the companies registered in a period, for a NAF code and a zone.

New only. Switch on New companies only. The first run returns everything that matches and remembers the SIREN numbers. The next runs with the same filters return only companies that were not returned before. Companies not returned for another reason, for example because of a spending limit, come back in the next run. The memory is a key-value store in your account, named sirene-company-scraper-registry by default. Give a Monitoring list name to keep several lists apart.

A typical weekly job: NAF 62.01Z, department 69, created after the first of the month, new only on, a webhook to Slack or n8n.

The monitoring reads the whole segment each time, because the source cannot sort by date. A large segment costs run time each week, and you pay only for the new companies.

### Input

See the input tab for every option. The fields:

| Field | Type | What it does |
|---|---|---|
| nafCodes | list | NAF rev. 2 codes, OR between values. 10.71C or 1071C |
| sections | list | NAF section letters A to U |
| query | text | Free text: name, address or officer name |
| sirens | list | SIREN (9 digits) or SIRET (14 digits), one lookup each |
| departments | list | Codes like 35, 2A, 971. Matches any establishment |
| postalCodes | list | 5-digit codes. Matches any establishment |
| communeCodes | list | 5-character INSEE codes (75101, 2A004) |
| regions | list | INSEE region codes (11, 53, 93) |
| latitude, longitude, radiusKm | numbers | Radius search up to 50 km. Only NAF code and section can be combined |
| employeeRanges | list | INSEE headcount codes: NN, 00, 01, 02, 03, 11, 12, 21, 22, 31, 32, 41, 42, 51, 52, 53 |
| companyCategories | list | PME, ETI, GE |
| legalForms | list | INSEE legal form codes: 5710 (SAS), 5499 (SARL), 1000 (sole trader), 9220 (association) |
| excludeSoleTraders | boolean | Skip individual entrepreneurs |
| status | text | active (default), closed or all |
| minRevenue, maxRevenue | numbers | Euros, on the latest published revenue. Companies without accounts are excluded |
| isRge, isQualiopi, isBio, isEss, isSiae, isTrainingOrganization, isAssociation | booleans | Label filters |
| createdAfter | date | Keep companies created on or after this date. Skipped ones are not charged |
| excludeCommercialOptOut | boolean | On by default |
| includeEstablishments | boolean | Add the establishments that match your filters |
| maxItems | number | Stops after this many companies. Default 1,000 |
| newOnly | boolean | Return only companies not returned by earlier runs with the same filters |
| registryName | text | Name of the monitoring list |
| webhookUrl | URL | Receives a JSON summary at the end of the run |

Filters of different fields are combined with AND, values inside one field with OR. A first test:

```json
{
  "nafCodes": ["10.71C"],
  "departments": ["35"],
  "maxItems": 50
}
```

A radius search (latitude, longitude, radiusKm) is limited to 10,000 companies by the source and cannot be split. Only NAF codes and sections can go with it, and the Actor applies the status after the read.

### Output example

One row, with a few fields left out and the officers cut to two:

```json
{
  "siren": "895362770",
  "siret": "89536277000011",
  "name": "YOU&MIE",
  "legalName": "YOU&MIE",
  "nafCode": "10.71C",
  "nafLabel": "Boulangerie et boulangerie-pâtisserie",
  "section": "C",
  "legalFormCode": "5710",
  "legalFormLabel": "SAS, société par actions simplifiée",
  "companyCategory": "PME",
  "employeeRangeCode": "12",
  "employeeRangeLabel": "20 à 49 salariés",
  "employeeRangeYear": 2024,
  "isEmployer": true,
  "createdAt": "2021-03-15",
  "status": "active",
  "address": "IMMEUBLE COLIVIA - ILOT B8 1 PLACE VIASILVA 35510 CESSON-SEVIGNE",
  "postalCode": "35510",
  "city": "CESSON-SEVIGNE",
  "department": "35",
  "region": "53",
  "latitude": 48.1325661490261,
  "longitude": -1.62037463153767,
  "establishmentsCount": 3,
  "directors": [
    { "type": "company", "name": "MONTGISON", "siren": "937993780", "role": "Président de SAS" },
    { "type": "company", "name": "SAINT-HONORÉ", "siren": "938016912", "role": "Directeur Général" }
  ],
  "revenue": 0,
  "netIncome": 102952,
  "financialYear": 2023,
  "finances": [{ "year": 2023, "revenue": 0, "netIncome": 102952 }],
  "vatNumber": "FR18895362770",
  "collectiveAgreements": ["0843"],
  "labels": { "organic": true, "rge": false, "qualiopi": false, "ess": false, "association": false },
  "commercialOptOut": false,
  "updatedAt": "2026-11-17T09:23:46",
  "annuaireUrl": "https://annuaire-entreprises.data.gouv.fr/entreprise/895362770",
  "scrapedAt": "2026-11-17T10:00:00+00:00"
}
```

Officers also carry the null fields (lastName, firstNames, birthYear, nationality), and labels lists all sixteen flags. Revenue is what the company filed: this one filed a revenue of 0.

A run also writes a SUMMARY record to the key-value store: for each search, the status, the total announced by the slices, the rows read, the duplicates removed, the companies skipped by each rule, the requests, the splits by level, and any slice that stayed at the cap or could not be read.

### How much does it cost to get French company data?

The Actor uses pay-per-event pricing. You pay for the start of the run and for each unique company returned. Prices fall with your Apify plan.

| Event | Free plan | Starter | Scale | Business |
|---|---|---|---|---|
| Actor start (per GB of memory, 256 MB by default) | 0.002 USD | 0.002 USD | 0.002 USD | 0.002 USD |
| Company | 1.50 USD per 1,000 | 1.50 USD | 1.20 USD | 0.75 USD |

A company found by several slices of the same run is charged once. Companies skipped by your filters, by createdAfter, by the commercial opt-out default or by the monitoring are not charged. A SIREN that does not exist returns nothing and costs nothing. You can set a maximum charge per run in the run options: the Actor stops when it is reached, and the status says so. I checked this: a run with a limit of 0.20 USD returned 132 companies, charged 132 company events and 1 start event, which is 0.20 USD.

Examples at the Free plan price: 1,000 companies cost about 1.50 USD. The 10,489 companies of the 43.21A test in the department 93 cost about 15.73 USD at the Free price and 7.87 USD at the Business price. A weekly watch that returns 40 new companies costs the start fee and 0.06 USD.

The platform usage of a run is small and goes on top only on plans that bill usage separately. The 10,489 company run used about 0.06 USD of platform usage, which is 0.006 USD per 1,000 companies.

### Tips and limits

Start small: run 50 companies, look at the rows, then raise Max companies. A whole national segment is large (234,000 companies at the Free price is a few hundred dollars), so set a limit or a maximum charge.

Give a department or a region when you can. The Actor reads about 100 companies per second in the tests, and a zone keeps it off the slices you do not need.

Companies that are not diffusible are not in the source: the registry API leaves out companies whose owner asked for full non-disclosure. Some companies are partly hidden, and the establishment fields can read \[NON-DIFFUSIBLE]. Those companies are returned.

The data is as fresh as the register. The updatedAt field shows when the source last changed the record. I did not measure how long a new company takes to appear.

### Use it from code

Python:

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("alexmorain/sirene-company-scraper").call(run_input={
    "nafCodes": ["43.21A"],
    "departments": ["93"],
    "employeeRanges": ["11", "12", "21"],
    "maxItems": 5000,
})
for company in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(company["siren"], company["name"], company["city"], company["employeeRangeLabel"])
```

JavaScript:

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_APIFY_TOKEN>' });
const run = await client.actor('alexmorain/sirene-company-scraper').call({
  nafCodes: ['62.01Z'],
  departments: ['69'],
  createdAfter: '2026-10-01',
  newOnly: true,
  registryName: 'dev-studios-lyon',
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length, items[0]?.name);
```

cURL, synchronous call that returns the rows:

```bash
curl -X POST "https://api.apify.com/v2/acts/alexmorain~sirene-company-scraper/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"sirens": ["552032534", "79491190900024"], "excludeCommercialOptOut": false}'
```

### Frequently asked questions

#### Is there a SIRENE API without a key?

Yes. The recherche-entreprises API used here needs no key and no account. It limits you to 7 requests per second per IP address, 10,000 results per search and 25 results per page. This Actor handles the rate and works around the 10,000 limit. The official INSEE SIRENE API needs a key and gives other fields (the full file); this one is simpler and carries officers and published accounts.

#### How do I export all companies by NAF code?

Put the NAF code in NAF / APE codes, keep Max companies high enough, and start. A company found in several departments is returned once. A list of SIREN or SIRET numbers works too, one lookup per line. For a code with more than 10,000 companies, the Actor splits the search by department, employee range and legal form and returns them all. Export the dataset as CSV or Excel. To keep the run short for a big code, add a region or departments.

#### How can I get a list of new companies in France?

Use Created on or after with a date, with or without a NAF code or zone, and switch on New companies only for the following runs. Schedule the run weekly and add a webhook. The first run returns the companies created since your date, the next ones return only the companies that appeared since.

#### Why did I get fewer companies than the source announces?

The usual causes are a limit you set (Max companies or a maximum charge), the commercial opt-out default, the status default, createdAfter, or the new-only memory. The run status lists what was skipped by each rule. After that, the announced number is about 1 percent above what the source serves.

#### Does it give emails, phone numbers or websites?

No. SIRENE does not carry them. The row gives the legal and location data, the officers and the published accounts, and the annuaireUrl link to the public page. To find a contact, combine the SIREN list with a tool that enriches by company name or domain.

#### Does it return the officers' personal data?

Officers are in the public register, with last name, first names, birth year and role. The Actor returns what the source returns. Personal data is protected by the GDPR, so keep that data only when you have a legitimate reason. The commercial opt-out default exists for that reason.

#### Can I use the data commercially?

The data comes from the SIRENE base and public registers under the Licence Ouverte: reuse is allowed with attribution of the source (INSEE and the French administration). You remain responsible for how you use it, including prospecting rules and the opposition flag. This Actor is not affiliated with INSEE or the French administration.

#### Something is wrong or missing

Open an issue on the Actor page. A sample input and the run link help, and fixes are fast.

### Legal note

Our Actors only extract what is public. However, your results could contain personal data (the names of officers). Personal data is protected by the GDPR in the European Union and by other regulations around the world. Do not collect personal data without a legitimate reason. If you are unsure, consult your lawyers.

Source: SIRENE base (INSEE) through recherche-entreprises.api.gouv.fr, Licence Ouverte. The API tab shows how to start runs from your code.

### Guide and use cases

Use cases for outbound and automation, the output fields, pricing and common questions are on the [SIRENE Scraper page](https://alexis.morain.fr/en/scrapers/sirene-company-scraper/) of my site. The [Lead generation family page](https://alexis.morain.fr/en/scrapers/families/lead-generation/) puts it side by side with the other scrapers of the same family.

# Actor input Schema

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

Main activity of the company, NAF rev. 2 code like <code>10.71C</code> (or <code>1071C</code>). Several codes are combined with OR.

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

Letter A to U of the NAF section, for example <code>C</code> for manufacturing.

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

Free text: company name, address, director name. Combined with the other filters.

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

One lookup per line: 9-digit SIREN or 14-digit SIRET. Returns the company of that number, whatever the other filters.

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

Codes like <code>35</code>, <code>2A</code>, <code>971</code>. <b>Matches any establishment</b> of the company, not only its head office: a company headquartered in Lille with a shop in Paris is returned for <code>75</code>. Each company is returned once.

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

5-digit codes like <code>75001</code>. Matches any establishment.

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

5-character INSEE codes like <code>75101</code> or <code>2A004</code>. Matches any establishment.

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

INSEE region codes like <code>11</code> (Île-de-France) or <code>53</code> (Bretagne).

## `latitude` (type: `number`):

With longitude and radius: companies with an establishment within the radius. Only NAF codes and sections can be combined with a radius search.

## `longitude` (type: `number`):

See latitude.

## `radiusKm` (type: `number`):

Up to 50 km. A radius search is capped at 10,000 companies by the source and cannot be split.

## `employeeRanges` (type: `array`):

INSEE codes of the company's headcount range: <code>NN</code> no employer, <code>00</code> 0, <code>01</code> 1-2, <code>02</code> 3-5, <code>03</code> 6-9, <code>11</code> 10-19, <code>12</code> 20-49, <code>21</code> 50-99, <code>22</code> 100-199, <code>31</code> 200-249, <code>32</code> 250-499, <code>41</code> 500-999, <code>42</code> 1,000-1,999, <code>51</code> 2,000-4,999, <code>52</code> 5,000-9,999, <code>53</code> 10,000+.

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

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

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

INSEE codes like <code>5710</code> (SAS), <code>5499</code> (SARL), <code>1000</code> (sole trader), <code>9220</code> (association).

## `excludeSoleTraders` (type: `boolean`):

Skip individual entrepreneurs (entreprises individuelles).

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

<b>active</b>: companies still open (default). <b>closed</b>: ceased companies. <b>all</b>: both.

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

Latest published revenue. Companies without published accounts are excluded when a revenue filter is set.

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

See minimum revenue.

## `isRge` (type: `boolean`):

Only companies recognised as guarantors of the environment (RGE).

## `isQualiopi` (type: `boolean`):

Only companies with the Qualiopi quality certification.

## `isBio` (type: `boolean`):

Only companies with an establishment certified by Agence Bio.

## `isEss` (type: `boolean`):

Only companies of the ESS field.

## `isSiae` (type: `boolean`):

Only structures of inclusion through economic activity.

## `isTrainingOrganization` (type: `boolean`):

Only companies with a registered training organization.

## `isAssociation` (type: `boolean`):

Only associations.

## `createdAfter` (type: `string`):

Date like <code>2026-01-01</code>, on the company's creation date. The source cannot filter on it, so the Actor reads the segment and skips older companies: <b>skipped companies are not charged</b>.

## `excludeCommercialOptOut` (type: `boolean`):

On by default. Some companies have asked that their data is not used for prospecting (opposition à la diffusion commerciale). They are skipped and not charged. Switch off only if your use is not commercial prospecting.

## `includeEstablishments` (type: `boolean`):

Adds an <code>establishments</code> list with the establishments that match your filters (up to 100 per company). Empty when you filter on nothing but the company.

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

Stops after this many companies.

## `newOnly` (type: `boolean`):

Monitoring mode: returns and charges only the companies that earlier runs with the same filters did not return. The first run returns everything.

## `registryName` (type: `string`):

Optional. Lowercase letters, digits and dashes. Several runs with the same filters share one list. Leave empty for the default list.

## `webhookUrl` (type: `string`):

Receives a POST with a summary at the end of the run, when at least one company was returned.

## Actor input object example

```json
{
  "nafCodes": [
    "10.71C"
  ],
  "departments": [
    "35"
  ],
  "status": "active",
  "excludeCommercialOptOut": true,
  "maxItems": 50
}
```

# Actor output Schema

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

All companies in the default dataset.

## `summary` (type: `string`):

For each search: status, rows read, duplicates and skipped companies, requests, splits by level, slices still at the 10,000 cap and slices lost.

# 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": [
        "10.71C"
    ],
    "departments": [
        "35"
    ],
    "maxItems": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("alexmorain/sirene-company-scraper").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": ["10.71C"],
    "departments": ["35"],
    "maxItems": 50,
}

# Run the Actor and wait for it to finish
run = client.actor("alexmorain/sirene-company-scraper").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": [
    "10.71C"
  ],
  "departments": [
    "35"
  ],
  "maxItems": 50
}' |
apify call alexmorain/sirene-company-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,alexmorain/sirene-company-scraper"
        }
    }
}
```

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/CPTbIWffXHUzvn6Sq/builds/b1uZrzv5y6GT3RzqJ/openapi.json
