# France Company Search Sirene Scraper (`b2b_lead_generation/france-company-search-sirene-scraper`) Actor

Search French companies in the public SIRENE registry by keyword, radius, region, or activity code. Extract SIREN numbers, company names, headquarters addresses, NAF codes, and directors, then download your results as JSON, CSV, or Excel.

- **URL**: https://apify.com/b2b_lead_generation/france-company-search-sirene-scraper.md
- **Developed by:** [B2B Lead Generation](https://apify.com/b2b_lead_generation) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

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 Search (SIRENE) Scraper for French Business Data](https://images.bigibyte.com/cdn-cgi/image/width=800,quality=80,format=auto/apify-actors-covers/france-company-search-sirene-scraper-cover.png)

## France Company Search (SIRENE) Scraper for French Business Data

Search French companies directly from the public SIRENE registry. This scraper helps you gather detailed corporate information, run location-based searches, and export company records cleanly to JSON, CSV, or Excel formats.

### What You Can Do

- **Lead Generation**: Find bakeries, retail shops, tech firms, or any business keyword and download structured lists for your CRM.
- **Territory Research**: Run radius searches around specific geographic coordinates to uncover local businesses.
- **Filter by Activity or Region**: Focus your searches on specific departments, postal codes, or NAF industry codes.
- **Track Company Status**: Search active operating businesses or include closed companies for historical analysis.
- **Ongoing Monitoring**: Re-run queries periodically to spot new registrations or changes over time.

### Data Collected

Each company profile returned by the scraper includes:

- SIREN and SIRET numbers
- Full official company name
- NAF / APE activity code
- Company size category and employee count band
- Creation date and legal structure code
- Registered headquarters address and geographic coordinates
- Listed company directors and management
- Count of active open establishments

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `mode` | string | `search` | Choose `search` for keyword search, or `near_point` for radius search. |
| `query` | string | `boulangerie` | Business name or keyword. Required when using search mode. |
| `activite_principale` | string | empty | NAF activity code (for example, `10.71C`). |
| `departement` | string | empty | French department code (for example, `75`). |
| `code_postal` | string | empty | Postal code (for example, `75001`). |
| `etat_administratif` | string | `A` | Set to `A` for active companies or `C` for closed ones. |
| `lat` | number | | Latitude coordinate for radius searches. |
| `long` | number | | Longitude coordinate for radius searches. |
| `radius` | number | `0.5` | Radius distance in kilometers for radius searches. |
| `maxItems` | integer | `100` | Maximum number of company records to retrieve (up to 1000). |
| `requestDelaySecs` | number | `1` | Pause duration between requests. |
| `timeoutSecs` | integer | `300` | Maximum overall runtime for the scraper in seconds. |
| `requestTimeoutSecs` | integer | `30` | Timeout per individual network request. |
| `userAgent` | string | B2B Lead GenerationActorResearch/1.0 | Custom User-Agent header string. |
| `proxyConfiguration` | object | no proxy | Optional proxy setup if needed for your environment. |

#### Example Input

Keyword Search:

```json
{
    "mode": "search",
    "query": "boulangerie",
    "activite_principale": "10.71C",
    "departement": "75",
    "code_postal": "75001",
    "etat_administratif": "A",
    "maxItems": 100,
    "requestDelaySecs": 1,
    "timeoutSecs": 300,
    "requestTimeoutSecs": 30,
    "userAgent": ""
}

```

Location Search:

```json
{
    "mode": "near_point",
    "lat": 48.86,
    "long": 2.35,
    "radius": 0.5,
    "maxItems": 50
}

```

### Output Format

```json
{
    "siren": "478455793",
    "nom_complet": "BOULANGERIES BG (B B G)",
    "activite_principale": "56.10C",
    "categorie_entreprise": "GE",
    "tranche_effectif_salarie": "52",
    "date_creation": "2004-08-25",
    "etat_administratif": "A",
    "nature_juridique": "5710",
    "siege_siret": "47845579305205",
    "siege_adresse": "615 AVENUE DE LA CHAFFINE 13160 CHATEAURENARD",
    "siege_latitude": "43.8903640316375",
    "dirigeants": [
        {
            "nom": "BLACHERE (BLACHERE)",
            "prenoms": "MARIE",
            "qualite": "Directeur Général",
            "type_dirigeant": "personne physique"
        }
    ],
    "nombre_etablissements_ouverts": 580,
    "scraped_at": "2026-10-12T00:00:00+00:00"
}

```

| Field | Type | Description |
| --- | --- | --- |
| `siren` | string | Unique SIREN identifier. |
| `nom_complet` | string | Full official company name. |
| `activite_principale` | string | NAF activity code. |
| `categorie_entreprise` | string | Size classification (PME, ETI, GE, etc.). |
| `tranche_effectif_salarie` | string | Workforce size category code. |
| `date_creation` | string | Official registration date. |
| `etat_administratif` | string | Administrative state (`A` for active, `C` for closed). |
| `nature_juridique` | string | Legal status code. |
| `siege_siret` | string | SIRET number for the main headquarters. |
| `siege_adresse` | string | Full physical address of headquarters. |
| `siege_latitude` | string | Latitude coordinate of headquarters. |
| `dirigeants` | array | List of company directors and key officers. |
| `nombre_etablissements_ouverts` | integer | Total count of open business locations. |
| `scraped_at` | string | Timestamp when the record was retrieved. |

### Practical Tips

- **Exporting Data**: You can easily export gathered datasets directly into JSON, CSV, or Excel formats for quick analysis.
- **Empty Results**: If a search query yields no matches, the run completes cleanly and outputs an empty dataset without crashing.
- **Pacing**: The tool pauses between requests to ensure smooth and stable data collection throughout longer queries.

#### Trademark Notice

France Company Search and related names, logos, and trademarks belong to their respective owners. Their use in this documentation is solely to identify the relevant services and does not imply affiliation, sponsorship, endorsement, or partnership.

#### Disclaimer

This actor is an independent data extraction tool by B2B Lead Generation. All data is collected from publicly available corporate records. Users are responsible for complying with relevant terms of use, operational limits, and attribution requirements.

#### Is web scraping legal?

This Actor only collects publicly available data from France Company Search without bypassing any access controls. Scraping public data is generally legal, but how you use it matters:

- **Personal data:** If the results include personal data (for example names, emails, or profile details), laws such as the GDPR in the EU and the CCPA in California may apply. Only collect and store personal data when you have a legitimate reason.
- **Copyright:** Some content may be protected by copyright. Do not republish full copyrighted content without permission.
- **Terms of use:** Respect the source's terms, rate limits, and attribution requirements.
- **Legal advice:** This is general information, not legal advice. If you're unsure, consult a lawyer.

To learn more, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/)

# Actor input Schema

## `mode` (type: `string`):

Search by company name or keyword, or search companies near a map point.

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

Company name or keyword sent as q on the search endpoint, for example boulangerie.

## `activite_principale` (type: `string`):

Optional NAF code filter (activite_principale), for example 10.71C. Leave empty to skip.

## `departement` (type: `string`):

Optional French department code, for example 75 for Paris. Leave empty to skip.

## `code_postal` (type: `string`):

Optional postal code filter, for example 75001. Leave empty to skip.

## `etat_administratif` (type: `string`):

Company status filter. A is active, C is closed.

## `lat` (type: `number`):

Latitude for geo search (near_point), for example 48.86 for central Paris.

## `long` (type: `number`):

Longitude for geo search (near_point), for example 2.35 for central Paris.

## `radius` (type: `number`):

Search radius in kilometres for geo search.

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

Maximum companies to save this run. Hard cap is 1000.

## `requestDelaySecs` (type: `number`):

Seconds to wait between API calls. The actor never goes faster than 1 request per second.

## `timeoutSecs` (type: `integer`):

Stop the run after this many seconds, even if the item cap is not reached.

## `requestTimeoutSecs` (type: `integer`):

How long to wait for a single API response before treating it as failed.

## `userAgent` (type: `string`):

User-Agent sent on every request. Include an app name and a contact address.

## `proxyConfiguration` (type: `object`):

Optional proxy for API requests. Leave useApifyProxy off unless the API blocks your IP.

## Actor input object example

```json
{
  "mode": "search",
  "query": "boulangerie",
  "activite_principale": "10.71C",
  "departement": "75",
  "code_postal": "75001",
  "etat_administratif": "A",
  "lat": 48.86,
  "long": 2.35,
  "radius": 0.5,
  "maxItems": 100,
  "requestDelaySecs": 1,
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "userAgent": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

## `dataset` (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 = {
    "mode": "search",
    "query": "boulangerie",
    "lat": 48.86,
    "long": 2.35,
    "radius": 0.5,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b_lead_generation/france-company-search-sirene-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 = {
    "mode": "search",
    "query": "boulangerie",
    "lat": 48.86,
    "long": 2.35,
    "radius": 0.5,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("b2b_lead_generation/france-company-search-sirene-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 '{
  "mode": "search",
  "query": "boulangerie",
  "lat": 48.86,
  "long": 2.35,
  "radius": 0.5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call b2b_lead_generation/france-company-search-sirene-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b_lead_generation/france-company-search-sirene-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/PuCphqPs2icGx54zH/builds/l45evgqBAdfiVZcBk/openapi.json
