# France Company Data Scraper (`straightforward_hydra/france-company-data-scraper`) Actor

Search France's official company register (Recherche d'entreprises / INSEE) and export clean company data: profile, HQ address, VAT number, industry and directors. No API key needed.

- **URL**: https://apify.com/straightforward\_hydra/france-company-data-scraper.md
- **Developed by:** [Dev D](https://apify.com/straightforward_hydra) (community)
- **Categories:** Automation, Lead generation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.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.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js/docs.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python/docs.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## France Company Data Scraper 🇫🇷

**Export clean, structured French company data — profile, HQ address, VAT number, industry and directors — straight from France's official register. No API key required.**

Every company in France is in the national register, published through the government's open **Recherche d'entreprises** service (INSEE Sirene + RNE). This Actor searches it by keyword, NAF/APE industry code, department, postal code, size category and status — or looks up companies by **SIREN** — and returns a rich record per company, **including directors and VAT number**, in a single request.

> Official open government API. **No key, no login, no scraping** — just clean public register data.

---

### What you can do with it

- 🔎 **French KYC & due diligence** — verify a company, its status, VAT number and directors.
- 🎯 **B2B lead generation** — build targeted lists by industry, department and size.
- 🧭 **Sales enrichment** — turn a name or SIREN into a full structured profile.
- 📊 **Market research** — map companies in a sector or region.
- 📇 **Data feeds** — keep a French company dataset fresh on a schedule.

### Features

- ✅ **No API key** — works out of the box.
- ✅ **Rich single-request records** — profile, HQ address with geo-coordinates, VAT number, and **directors (dirigeants)** all in one.
- ✅ **Powerful filters** — keyword, NAF/APE code, department, postal code, size category, active/ceased.
- ✅ **Direct lookup** — pass SIREN numbers to fetch exact companies.
- ✅ **Low-maintenance** — official REST/JSON API, with automatic retries.

---

### Input

| Field | Description |
|---|---|
| **Search query** | Free-text, e.g. `conseil informatique`. |
| **SIREN numbers** | Direct lookup, e.g. `542051180`. |
| **NAF / APE codes** | Industry codes, e.g. `62.01Z`. |
| **Departments** | Department numbers, e.g. `75`, `69`, `13`. |
| **Postal code** | HQ postal code, e.g. `75008`. |
| **Company size category** | PME (SME) / ETI (mid-cap) / GE (large). |
| **Active companies only** | Exclude ceased companies. |
| **Max companies** | Cap the number of results. |

#### Example — active tech SMEs in Paris

```json
{
  "nafCodes": ["62.01Z"],
  "departments": ["75"],
  "companyCategory": "PME",
  "activeOnly": true,
  "maxCompanies": 300
}
````

#### Example — direct lookup

```json
{
  "sirenNumbers": ["542051180", "552081317"]
}
```

### Output

Each row is one company:

```json
{
  "siren": "542051180",
  "siret": "54205118000066",
  "name": "TOTALENERGIES SE",
  "legal_name": "TOTALENERGIES SE",
  "acronym": "",
  "trade_name": "",
  "naf_code": "70.10Z",
  "activity_section": "M",
  "legal_form_code": "5710",
  "company_category": "GE",
  "employee_range": "10000+",
  "employee_range_code": "53",
  "date_creation": "1924-03-28",
  "date_closure": "",
  "status": "active",
  "vat_number": "FR59542051180",
  "establishments_count": 120,
  "hq_address": "LA DEFENSE 6 2 PLACE JEAN MILLIER 92400 COURBEVOIE",
  "postal_code": "92400",
  "city": "COURBEVOIE",
  "department": "92",
  "region": "11",
  "latitude": "48.892593777",
  "longitude": "2.2430590926",
  "directors": [
    {"name": "JACQUES ANDRE ASCHENBROICH", "role": "Administrateur", "type": "personne physique", "birth_year": "1954", "nationality": "", "siren": ""}
  ],
  "company_url": "https://annuaire-entreprises.data.gouv.fr/entreprise/542051180",
  "api_url": "https://recherche-entreprises.api.gouv.fr/search?q=542051180"
}
```

### Run it on a schedule

Schedule the Actor to refresh a French company list or re-check statuses, and connect a **Slack / email / webhook / Google Sheets** integration to route updates into your CRM or compliance workflow.

### Notes & limitations

- Uses the official Recherche d'entreprises open API — no key needed.
- Each search can return up to ~10,000 results (API cap); narrow with filters for larger populations.
- Directors' dates of birth are published as year (and month) only, by design.
- This is **factual public register data**.

***

#### Keywords

France company data, French companies, SIREN, SIRET, INSEE Sirene, recherche entreprises, company registry, KYC, due diligence, B2B lead generation, company search, NAF APE code, VAT number France, dirigeants, French business data, sales enrichment, compliance, company lookup, corporate data, annuaire entreprises, open data France.

# Actor input Schema

## `searchQuery` (type: `string`):

Free-text search across company name, directors and more, e.g. "boulangerie" or "conseil informatique". Combine with the filters below.

## `sirenNumbers` (type: `array`):

Look up specific companies by their 9-digit SIREN, e.g. 542051180 (TotalEnergies). When set, the search filters are ignored.

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

Filter by French NAF/APE activity code, e.g. 62.01Z (computer programming), 10.71C (bakery). Leave empty for all industries.

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

Filter by French department number, e.g. 75 (Paris), 69 (Rhône), 13 (Bouches-du-Rhône). Leave empty for all.

## `postalCode` (type: `string`):

Filter by HQ postal code, e.g. 75008. Leave empty for all.

## `companyCategory` (type: `string`):

Filter by INSEE size category.

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

Only return companies that are currently active (etat administratif = A). Turn off to include ceased companies.

## `maxCompanies` (type: `integer`):

Stop after this many companies. Leave empty for no limit (up to the register's ~10,000-result cap per search).

## Actor input object example

```json
{
  "searchQuery": "conseil",
  "companyCategory": "",
  "activeOnly": true,
  "maxCompanies": 100
}
```

# 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 = {
    "searchQuery": "conseil"
};

// Run the Actor and wait for it to finish
const run = await client.actor("straightforward_hydra/france-company-data-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 = { "searchQuery": "conseil" }

# Run the Actor and wait for it to finish
run = client.actor("straightforward_hydra/france-company-data-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQuery": "conseil"
}' |
apify call straightforward_hydra/france-company-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=straightforward_hydra/france-company-data-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "France Company Data Scraper",
        "description": "Search France's official company register (Recherche d'entreprises / INSEE) and export clean company data: profile, HQ address, VAT number, industry and directors. No API key needed.",
        "version": "0.1",
        "x-build-id": "wEkaqwnvRgyBOP9B3"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/straightforward_hydra~france-company-data-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-straightforward_hydra-france-company-data-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/straightforward_hydra~france-company-data-scraper/runs": {
            "post": {
                "operationId": "runs-sync-straightforward_hydra-france-company-data-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/straightforward_hydra~france-company-data-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-straightforward_hydra-france-company-data-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "searchQuery": {
                        "title": "Search query",
                        "type": "string",
                        "description": "Free-text search across company name, directors and more, e.g. \"boulangerie\" or \"conseil informatique\". Combine with the filters below."
                    },
                    "sirenNumbers": {
                        "title": "SIREN numbers (direct lookup)",
                        "type": "array",
                        "description": "Look up specific companies by their 9-digit SIREN, e.g. 542051180 (TotalEnergies). When set, the search filters are ignored.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "nafCodes": {
                        "title": "NAF / APE industry codes",
                        "type": "array",
                        "description": "Filter by French NAF/APE activity code, e.g. 62.01Z (computer programming), 10.71C (bakery). Leave empty for all industries.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "departments": {
                        "title": "Departments",
                        "type": "array",
                        "description": "Filter by French department number, e.g. 75 (Paris), 69 (Rhône), 13 (Bouches-du-Rhône). Leave empty for all.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "postalCode": {
                        "title": "Postal code",
                        "type": "string",
                        "description": "Filter by HQ postal code, e.g. 75008. Leave empty for all."
                    },
                    "companyCategory": {
                        "title": "Company size category",
                        "enum": [
                            "",
                            "PME",
                            "ETI",
                            "GE"
                        ],
                        "type": "string",
                        "description": "Filter by INSEE size category.",
                        "default": ""
                    },
                    "activeOnly": {
                        "title": "Active companies only",
                        "type": "boolean",
                        "description": "Only return companies that are currently active (etat administratif = A). Turn off to include ceased companies.",
                        "default": true
                    },
                    "maxCompanies": {
                        "title": "Max companies",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Stop after this many companies. Leave empty for no limit (up to the register's ~10,000-result cap per search).",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
