# 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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

Download the OpenAPI definition: https://api.apify.com/v2/actors/2Bbb9YPdnXPh6eK2s/builds/wEkaqwnvRgyBOP9B3/openapi.json
