English
French company directory
Finds a French company by SIREN, name or address: head office, activity, status, officers.
The French company directory node finds a French company, association or public body in the public directory (API Recherche d’entreprises): its record by SIREN or SIRET, a search by name, or the establishments around an address. Use it to check the contractor, property manager or company writing to you before replying or recording them.
It is an open public API: nothing to connect.
At a glance
- Type:
recherche_entreprises.api· version 1 - Category: Data
- Kind: Step — one stage of a run
- Effect: No external effect (
none) — nothing is written outside Loop & Roll; safe to replay - Needs a carrier email: No
- Connection: None
- Inputs:
main - Outputs:
main
Parameters
action
Action
- Type: One choice (
options) - Required: Yes
- Default:
siren - Options:
siren— Company by SIREN or SIRET: Spaces are ignored: “552 032 534” works.search— Search by name: By company name, address or officer name.nearby— Establishments around an address
identifier
SIREN or SIRET
- Type: Text (
string) - Required: No
- Default:
""(empty) - 20 characters at most
- Example:
552 032 534 - Shown when:
actionissiren - Expressions:
{{ }}accepted
query
Search
- Type: Text (
string) - Required: No
- Default:
""(empty) - 200 characters at most
- Example:
Dupont Rénovation Amiens - Shown when:
actionissearch - Expressions:
{{ }}accepted
postcode
Postcode — Optional: one or more codes separated by commas.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 60 characters at most
- Shown when:
actionissearch - Expressions:
{{ }}accepted
department
Department
- Type: Text (
string) - Required: No
- Default:
""(empty) - 30 characters at most
- Example:
80 - Shown when:
actionissearch - Expressions:
{{ }}accepted
activeOnly
Active companies only
- Type: Yes / no (
boolean) - Required: No
- Default:
true - Shown when:
actionis one ofsearch,nearby
address
Address — Geocoded by the Base Adresse Nationale. Leave empty to use the latitude and longitude.
- Type: Text (
string) - Required: No
- Default:
""(empty) - 300 characters at most
- Shown when:
actionisnearby - Expressions:
{{ }}accepted
lat
Latitude
- Type: Text (
string) - Required: No
- Default:
""(empty) - 30 characters at most
- Shown when:
actionisnearby - Expressions:
{{ }}accepted
lon
Longitude
- Type: Text (
string) - Required: No
- Default:
""(empty) - 30 characters at most
- Shown when:
actionisnearby - Expressions:
{{ }}accepted
radiusKm
Radius (km)
- Type: Number (
number) - Required: No
- Default:
1 - From 0.1 to 50
- Shown when:
actionisnearby
limit
Maximum count
- Type: Number (
number) - Required: No
- Default:
5 - Whole number, from 1 to 25
- Shown when:
actionis one ofsearch,nearby
Outputs
main— Taken once the read has completed, whether or not a company was found: readfoundto know.
Data produced
What this node adds to the run data, and how to read it in an expression. <step> stands for the step key: the node name turned into an identifier (see Data and expressions).
{{ data.<step>.found }}—boolean. true when at least one company was found (for a SIREN: exactly that one).{{ data.<step>.company }}—{ siren, name, legalFormCode, activityCode, category, createdOn, active, headcountBand, openEstablishments, vatNumber, rge, headOffice: { siret, address, postcode, city, citycode, lat, lon }, officers: [{ name, role, type }] }. The first company returned (null without a result).activityCodeis the NAF activity code,legalFormCodethe legal category code,rgeis true for a company holding the RGE energy-renovation label.{{ data.<step>.name }}—string. Company by SIREN only: the company name.{{ data.<step>.siren }}—string. Company by SIREN only: the nine-digit SIREN.{{ data.<step>.active }}—boolean. Company by SIREN only: true for an active company, false for a closed one.{{ data.<step>.companies }}—array of companies (same shape as `company`). Search and Around an address: the companies returned.{{ data.<step>.count }}—number. Search and Around an address: the number of companies returned (total: the number of results in the directory).{{ data.<step>.summary }}—string. The one-line summary in the member’s language, for example “DANONE (SIREN 552032534), active company.” (withsummaryKeyandsummaryParams).
Operations
- Company by SIREN or SIRET (
siren, the default). SIREN or SIRET (identifier): nine or fourteen digits, spaces and dots ignored. Only the company with that SIREN is returned. - Search by name (
search). Search (query) covers the company name, the address or an officer name; Postcode (postcode, several separated by commas) and Department (department) narrow it. - Establishments around an address (
nearby). Around Address, or Latitude and Longitude when it is empty, within Radius (km) (radiusKm, 50 at most).
Active companies only (activeOnly, on by default) leaves closed companies out of both lists. Lists stop at the Maximum count (limit, 1 to 25, 5 by default).
Example
A building firm sends a quote signed with its SIRET. The node is called “Company”:
text
action siren
identifier {{ data.read.siret }}The step data (shortened):
json
{
"found": true,
"siren": "552032534",
"name": "DANONE",
"active": true,
"company": {
"activityCode": "70.10Z",
"rge": false,
"headOffice": { "address": "59-61 RUE LA FAYETTE 75009 PARIS" }
}
}An If on {{ data.company.company.rge }} can set aside an energy-renovation quote from a company without the RGE label.
Tips
- Test runs. The three actions are reads: they really run in a test run.
- Personal data. The directory publishes the officers’ birth dates; the node keeps only their name, role and type.
- Non-public companies. Companies that asked not to appear in the public directory are not there:
foundis then false. - Rate. The service accepts 7 requests per second; beyond that, the request is retried automatically.
- Errors. An identifier that is neither a SIREN nor a SIRET fails the step with
node_invalid_param. See Error handling.