Argos, my CRM, fills in every prospect record with the company’s SIREN (the French company registration number), its director and its head office address. The SIREN already came from the API Recherche d’entreprises, the French government’s free company API, which needs no key. The director, head office, website and phone number came from Pappers, a commercial provider that charges one credit per call. When the Pappers account ran out of credits, I looked at what the public register already provided before topping up. Argos no longer calls Pappers.

Pappers fields vs the API Recherche d’entreprises

I went through what Argos took from Pappers, field by field:

Field API Recherche d’entreprises
SIREN yes
Directors yes, excluding statutory auditors
Head office address yes
Industry code, headcount, legal form yes, already read from the register
Revenue, net income yes, unused
Website no
Phone no

When Pappers had no website, a Brave search already found it, and the phone number was read from the site. The API Recherche d’entreprises became the primary source and Pappers was left to fill in the website and phone. The PAPPERS_ENABLED: false variable turns it off in production. One one-off task still uses it, which rebuilds addresses from the list of a company’s establishments.

Calling the API and picking a result

A search request looks like this:

GET https://recherche-entreprises.api.gouv.fr/search?q=chocolaterie&per_page=25&departement=29,22,35,56,44
User-Agent: Argos CRM (SXN Labs, https://sxnlabs.com)

The documentation allows 7 requests per second per IP, then returns a 429 with Retry-After. Argos waits once if the requested delay is two seconds or less. Beyond that, or on a second 429, the error is raised and the record is retried later. A response in an unknown shape counts as an outage, never as an empty search.

A wrong SIREN puts another company’s director in an email, so Argos only keeps a result that meets three conditions: active company, compatible name, head office in the target area. If several meet them, it keeps the one whose town appears in what the record already knows about the company, and picks nothing unless exactly one does. It also picks nothing when the register counts more than 25 results, since it can’t see them all. Out of 42 records left without an address, searching for the name as written found 2. Splitting double names (“X - Y”) and ignoring legal forms and articles, Argos finds 10.

When a provider stops answering

Argos enriches its records through several providers, and any of them can go down or run out of credits. Four rules handle these outages:

Website and phone without Pappers

The website and phone number now depend on what the Brave search finds and on what the company publishes on its own site. Turning Pappers back on only takes buying credits and setting the variable to true.

If you pay for a company data provider, compare its fields with what the API Recherche d’entreprises returns for your own records first.