# SIRET & SIREN Lookup – French Company Data in Bulk (`gazidev/siret-lookup`) Actor

Look up French companies by SIRET or SIREN number in bulk, or find the SIRET from a name and postcode: legal name, status (active or closed), legal form, NAF, head office and establishment address, employees, VAT number. Official SIRENE/RNE data, no key. $1 per 1,000 companies.

- **URL**: https://apify.com/gazidev/siret-lookup.md
- **Developed by:** [Cemal Atakli](https://apify.com/gazidev) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 company founds

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

## SIRET & SIREN Lookup – French Company Data in Bulk

Paste French **SIRET** (14 digits) or **SIREN** (9 digits) numbers and get one clean row per number: legal name, **status (active or closed)** and closing date, legal form, NAF/APE code and label, **head office or establishment address**, employee range, creation date and the **intra-EU VAT number**. You can also **find the SIRET from a company name and a postcode** (with a match score). Official SIRENE / RNE data from the French government's free API, no key, no login.

**$1 per 1,000 companies found.** Invalid numbers, not-found numbers and skipped rows are free.

### What it does

- **SIRET lookup at establishment level**: a SIRET returns *that* establishment (its own status, address, NAF and whether it is the head office), plus the company's status. A closed shop of an active company shows `status: closed`, `companyStatus: active`.
- **SIREN lookup**: the company with its head office (siège) SIRET and address.
- **Free validation first**: every number is checked locally with the Luhn algorithm (including La Poste's special rule for SIREN 356000000) before any call. Wrong numbers cost nothing and come back with a clear reason.
- **Name + postcode → SIRET**: `{"name": "Carrefour Hypermarches", "postcode": "69003"}` returns the establishment in that postcode with a `matchScore` from 0 to 1. Below `minMatchScore` (0.8) you get a free "no match" row with the best candidate.
- **VAT number**: FR + key + SIREN computed locally; optionally checked against the European Commission's **VIES** service (`vatValid`).
- **Bulk input**: a list, a pasted column (one per line / comma / semicolon) or a dataset from another Actor run.

### Use cases

- **Accountants and invoicing tools**: check that a supplier's or customer's SIRET exists and is active before you issue an invoice (e-invoicing in France needs a valid SIRET).
- **KYB / onboarding / marketplaces**: verify French sellers: legal name, legal form, active or closed, VAT number.
- **CRM clean-up**: refresh thousands of SIRETs, flag closed establishments, fill in NAF codes and addresses.
- **Data matching**: find the SIRET of a list of company names in known postcodes.

### Input example

```json
{
  "numbers": ["79459881300077", "552100554", "44306184100047"],
  "nameQueries": [{"name": "Doctolib", "postcode": "92300"}],
  "checkVatWithVies": false,
  "includeDirectors": false,
  "excludeProspectingOptOut": true
}
```

### Output example (one row)

```json
{
  "input": "79459881300077", "inputType": "siret", "valid": true,
  "siren": "794598813", "siret": "79459881300077", "name": "DOCTOLIB",
  "status": "active", "closedOn": null, "companyStatus": "active", "isHeadOffice": true,
  "legalForm": "SAS (société par actions simplifiée)", "nafCode": "62.01Z", "nafLabel": "Programmation informatique",
  "address": {"street": "54 QUAI CHARLES PASQUA", "postcode": "92300", "city": "LEVALLOIS-PERRET", "departement": "92"},
  "employeeRange": "1,000-1,999", "createdOn": "2020-01-10", "vatNumber": "FR14794598813", "vatValid": null,
  "prospectingOptOut": false, "diffusionStatus": "O", "matchScore": null,
  "annuaireUrl": "https://annuaire-entreprises.data.gouv.fr/etablissement/79459881300077",
  "source": "Source : Annuaire des Entreprises (DINUM), données INSEE SIRENE et INPI RNE - Licence Ouverte 2.0 (...)",
  "error": null
}
```

The run summary (counts, API calls, max-charge stop) is in the key-value store record `OUTPUT`.

### Privacy and prospecting opt-outs

- **Directors are off by default.** Turn on `includeDirectors` to add directors (first and last name + role for people; name, SIREN and role for companies). Birth dates and nationalities are never output. Names of people are personal data: use them only for a lawful purpose and follow the GDPR.
- **Companies that opted out of commercial prospecting are skipped by default.** SIRENE flags companies that refuse the use of their data for prospecting (`opposition_diffusion_commerciale`). With `excludeProspectingOptOut` on (default) such a number returns a free row with the note and no company data. If your use is not prospecting (KYB, invoicing, accounting), turn it off; the flag is still copied into every row as `prospectingOptOut`.
- `diffusionStatus` is SIRENE's own diffusion flag (`O` = public, `P` = partly hidden at the person's request; hidden fields come back as `[NON-DIFFUSIBLE]`).
- Sole traders (`isSoleTrader: true`) are people: their company name is often their own name.

### Pricing

| Event | Price | When |
|---|---|---|
| `company` | **$0.001** | Each SIRET / SIREN / name match found and returned |
| `vat-checked` | $0.0005 | Only with `checkVatWithVies`, each VIES answer |
| Actor start | $0.00005 | Once per run |

Free: invalid numbers, duplicates, not-found numbers, name queries below the match score, opted-out companies that are skipped, API or VIES errors. The run stops cleanly when your maximum charge per run is reached.

| Actor (Apify Store, Nov 2026) | Price per company |
|---|---|
| **This Actor** | **$0.001** |
| dltik/pappers-sirene-scraper | $0.008 |
| corent1robert/recherche-entreprises-scraper | $0.006 |
| logiover/france-company-registry-scraper | $0.0035 |
| tagadanar/french-company-contacts | $0.002 |

### Speed and limits (honest)

- The government API allows a few calls per second per IP; this Actor stays at **2 calls per second** and honours `Retry-After`. That is about **7,000 numbers per hour** (a SIRET that is not the head office may need a second call).
- Data is as fresh as the Annuaire des Entreprises (updated daily from INSEE and INPI). Revenue, financial statements and beneficial owners are **not** included. For **searches by NAF code, département or size**, use our [France Company Search](https://apify.com/gazidev/france-company-search).
- Name matching relies on the API's full-text search and a string similarity score; check rows with a score below about 0.9.
- VIES can be slow or in maintenance; a failed VIES check leaves `vatValid` empty and is not charged.

### Data source and licence

**Source : Annuaire des Entreprises (DINUM), données INSEE SIRENE et INPI RNE**, via the public API recherche-entreprises.api.gouv.fr, under the **Licence Ouverte / Open Licence 2.0** (Etalab). Every row carries this credit in `source`; keep it when you reuse the data. VAT checks use the European Commission's VIES service. This Actor is not affiliated with the French administration.

### FAQ

**Why did a valid SIRET come back "not found"?** The establishment may be hidden from public diffusion, or too recent. The row is free.
**Can I look up a VAT number?** Yes: `FR14794598813` is read as SIREN 794598813.
**Does it return closed companies?** Yes, with `status: closed` and `closedOn`. This is the point of a lookup.
**Is there a minimum?** No. One number costs $0.001 plus the start fee.

### Use with AI agents (Apify MCP)

Add this Actor to Claude, Cursor or any MCP client through the [Apify MCP server](https://mcp.apify.com) (`gazidev/siret-lookup`). An agent can call it with `{"numbers": ["…"]}` to verify a French company before writing an invoice or onboarding a seller. It is also callable from the Apify API, Make, Zapier and n8n.

# Actor input Schema

## `numbers` (type: `array`):

14-digit SIRET (an establishment) or 9-digit SIREN (a company). Spaces and dots are ignored; a French VAT number (FR + 11 digits) is read as its SIREN. Every number is checked locally (Luhn) first: invalid numbers are free.

## `bulkText` (type: `string`):

Paste many numbers, one per line or separated by commas / semicolons (e.g. a column copied from Excel).

## `datasetId` (type: `string`):

Optional: a dataset (e.g. from another Actor run) with a SIRET/SIREN column.

## `datasetField` (type: `string`):

Field name in that dataset. Empty = the first of siret, siren, SIRET, SIREN, number.

## `nameQueries` (type: `array`):

Objects like {"name": "Doctolib", "postcode": "92300"}. The establishment in that postcode is returned with a matchScore (0-1). The postcode is optional (without it the head office is returned).

## `minMatchScore` (type: `number`):

Name matches below this score are returned as free 'no match' rows (with the best candidate).

## `includeEstablishments` (type: `string`):

matched: a SIRET input returns that establishment (its own status, address, NAF, head office or not); a SIREN input returns the head office. none: always the company level with the head office address.

## `computeVat` (type: `boolean`):

FR + 2-digit key + SIREN, computed locally (free).

## `checkVatWithVies` (type: `boolean`):

Ask the European Commission VIES service whether the VAT number is active (vatValid). Adds the vat-checked event per successful check and about 1 s per company.

## `includeDirectors` (type: `boolean`):

Off by default. When on, adds directors (first name + last name + role for people; name, SIREN and role for companies). These are personal data: use them only for a lawful purpose (e.g. KYB) and follow the GDPR.

## `excludeProspectingOptOut` (type: `boolean`):

On by default: companies flagged opposition_diffusion_commerciale in SIRENE get a free row with a note instead of their data. Turn off for non-marketing uses (KYB, invoicing, accounting); the flag is still in every row (prospectingOptOut).

## `maxConcurrency` (type: `integer`):

At most 2. The API is called at most 2 times per second whatever this value is.

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

Stop after this many numbers / name queries (0 = no limit).

## Actor input object example

```json
{
  "numbers": [
    "79459881300077",
    "552100554",
    "44306184100047"
  ],
  "minMatchScore": 0.8,
  "includeEstablishments": "matched",
  "computeVat": true,
  "checkVatWithVies": false,
  "includeDirectors": false,
  "excludeProspectingOptOut": true,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `companies` (type: `string`):

No description

## `address` (type: `string`):

No description

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

No description

## `summary` (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 = {
    "numbers": [
        "79459881300077",
        "552100554",
        "44306184100047"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("gazidev/siret-lookup").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 = { "numbers": [
        "79459881300077",
        "552100554",
        "44306184100047",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("gazidev/siret-lookup").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 '{
  "numbers": [
    "79459881300077",
    "552100554",
    "44306184100047"
  ]
}' |
apify call gazidev/siret-lookup --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gazidev/siret-lookup"
        }
    }
}
```

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/P29ahRTPu6o8zLdyF/builds/3xjSOGvyM64aKXCih/openapi.json
