BusinessFrench Company Data
SIREN API: Look Up French Companies by SIREN, SIRET and VAT Number
SIREN API guide: look up French companies by SIREN or SIRET in Python and get the VAT number, activity in English, size, head office and financials.
Any product that bills, onboards or prospects French businesses ends up needing the same handful of facts: the legal name, the SIREN number, the intra-community VAT number, the registered address, the activity code and whether the company is still alive. Customers type these by hand, with typos, and a supplier record with a wrong VAT number turns into a rejected invoice months later.
A SIREN API answers those questions from the official register. France publishes its company register (SIRENE, kept by INSEE, and the national business register RNE) as open data, but the raw sources come with French labels, numeric codes, paging limits and a few traps. This article explains what the French identifiers mean, validates them offline in Python, then uses the French Company Data API to look up companies by SIREN or SIRET and to search the register by activity, place, size and revenue.
SIREN, SIRET, NAF and the French VAT number
Four identifiers cover almost every French B2B form.
| Identifier | Format | What it identifies | Example (Doctolib) |
|---|---|---|---|
| SIREN | 9 digits | The legal entity (the company) | 794598813 |
| SIRET | 14 digits: SIREN + 5-digit NIC | One establishment (head office, shop, plant) | 79459881300077 |
| NAF / APE code | 4 digits + a letter | The main activity, French version of NACE Rev. 2 | 62.01Z |
| VAT number | FR + 2-digit key + SIREN |
Intra-community VAT identification | FR14794598813 |
A company has one SIREN for life and one SIRET per establishment, open or closed. When a company moves its head office, the new address gets a new SIRET; the SIREN does not change. That is why invoices and contracts should store the SIREN as the key, and the SIRET only when a specific site matters (delivery, payroll).
The NAF code (also called the APE code) follows the European NACE Rev. 2 classification down to the class level, then adds a French letter. There are 732 codes; 62.01Z is "Computer programming activities". The register publishes them with French labels only, which is a problem for any interface in another language.
Check SIREN and VAT numbers offline
Both numbers carry their own checks. A SIREN (and a SIRET) passes the Luhn algorithm, the same checksum as card numbers. The French VAT key is computed from the SIREN: (12 + 3 × (SIREN mod 97)) mod 97, written on two digits. Both are worth running in the form before any lookup:
def luhn_ok(number: str) -> bool:
total = 0
for i, char in enumerate(reversed(number)):
digit = int(char)
if i % 2 == 1:
digit *= 2
if digit > 9:
digit -= 9
total += digit
return total % 10 == 0
def french_vat(siren: str) -> str:
key = (12 + 3 * (int(siren) % 97)) % 97
return f"FR{key:02d}{siren}"
siren = "794598813"
print(luhn_ok(siren), luhn_ok("79459881300077"), luhn_ok("794598814"))
# True True False
print(french_vat(siren)) # FR14794598813
The Luhn check catches a single mistyped digit and most swapped pairs. One known exception: La Poste's establishments share one SIREN and their SIRETs do not all pass Luhn, so treat a failed SIRET check as a warning, not a hard rejection. The VAT key formula gives the number a company would have; whether it is registered for VAT is a separate question, answered by the European Commission's VIES service.
Look up a company by SIREN with Python
GET /v1/company-fr/company takes a SIREN or a SIRET in the id parameter; spaces are accepted. The examples use Python and requests, and the API reference lists every field.
import requests
HOST = "french-company-data-siren-siret-vat-lookup.p.rapidapi.com"
API = f"https://{HOST}"
HEADERS = {"x-rapidapi-key": "YOUR_API_KEY", "x-rapidapi-host": HOST}
response = requests.get(
f"{API}/v1/company-fr/company",
headers=HEADERS,
params={"id": "794598813"},
timeout=30,
)
response.raise_for_status()
company = response.json()
print(company["name"], company["vat_number"], company["activity"]["label"])
The same call with curl:
curl "https://french-company-data-siren-siret-vat-lookup.p.rapidapi.com/v1/company-fr/company?id=794598813" \
-H "x-rapidapi-key: YOUR_API_KEY" \
-H "x-rapidapi-host: french-company-data-siren-siret-vat-lookup.p.rapidapi.com"
The real response:
{
"siren": "794598813",
"siret": "79459881300077",
"name": "DOCTOLIB",
"active": true,
"legal_form": { "code": "5710", "label": "SAS, société par actions simplifiée" },
"activity": {
"code": "62.01Z",
"label": "Computer programming activities",
"label_fr": "Programmation informatique",
"section": "J",
"section_label": "Information and communication"
},
"category": "ETI",
"employees": { "range": "1000-1999", "min": 1000, "max": 1999, "year": 2024 },
"employer": true,
"founded": "2013-07-15",
"vat_number": "FR14794598813",
"head_office": {
"street": "54 QUAI CHARLES PASQUA",
"postal_code": "92300",
"city": "LEVALLOIS-PERRET",
"department": "92",
"region": "11",
"country": "FR",
"latitude": 48.900771,
"longitude": 2.284915
},
"establishments": 9,
"open_establishments": 3,
"financials": [{ "year": 2024, "revenue": 311448000, "net_income": -127499000 }],
"officers": [
{ "role": "Président de SAS", "type": "person" },
{ "role": "Commissaire aux comptes titulaire", "type": "company", "name": "GRANT THORNTON", "siren": "632013843" },
{ "role": "Commissaire aux comptes titulaire", "type": "company", "name": "KPMG S.A", "siren": "775726417" }
],
"labels": ["egapro_index"],
"collective_agreements": ["1486"],
"no_marketing": false,
"updated": "2026-11-27"
}
Passing the SIRET 794 598 813 00077, spaces included, returns the same record. A few fields need reading with French context:
categoryis the size class defined by the 2008 economic modernisation law (LME):SME(PME),ETI(intermediate-sized company, 250 to 4,999 employees) orLarge(grande entreprise). INSEE computes it from headcount, revenue and balance sheet, so it is more reliable than the headcount alone for groups.employeesis a range, not an exact count: INSEE publishes headcount bands (1000-1999), with the year of the measure.financialsappear only when the company filed its accounts without confidentiality. Here, Doctolib's 2024 revenue and its loss.officersname companies (auditors, parent companies, with their SIREN) but reduce people to their role. The API never returns a director's name or birth date.collective_agreementslists IDCC codes.1486is the Syntec agreement, the usual one for software and consulting firms, which matters for anyone doing payroll or staffing.no_marketingistruewhen the register records that the company objected to commercial prospecting using its data. Respect it in any outbound list.
The VAT number in the response matches the one computed offline above.
Errors you should handle
A malformed id is refused before any lookup, and is not billed:
{
"error": {
"status": 400,
"code": "invalid_id",
"message": "Give a SIREN (9 digits) or a SIRET (14 digits)."
}
}
A well-formed number that matches no published company returns 404 company_not_found, also unbilled, with the message "No published company with this number (sole traders are not included)." The API does not run the Luhn check itself, so 123456789 gets a 404 rather than a 400: run luhn_ok first and you save the round trip. A 503 register_unavailable means the public register was busy; retry with backoff.
Search the SIRENE register by activity, place and size
GET /v1/company-fr/search builds prospect and market lists. Filters combine freely and accept comma-separated lists: q (name, brand or address words), naf, section, postal_code, department, region (INSEE codes), category, min_employees, legal_form, min_revenue, max_revenue, status (active by default), with page and per_page (25 at most). Every page costs 1 credit, whatever the number of companies on it.
Software companies with at least 50 employees in the Rhône department (Lyon):
response = requests.get(
f"{API}/v1/company-fr/search",
headers=HEADERS,
params={"naf": "62.01Z", "department": "69", "min_employees": 50, "per_page": 3},
timeout=30,
)
page = response.json()
print(page["total"], page["total_pages"])
for c in page["results"]:
print(c["name"], c["category"], c["head_office"]["city"])
The real response, trimmed to the fields that matter here:
{
"total": 69,
"page": 1,
"per_page": 3,
"total_pages": 23,
"results": [
{
"siren": "380474494",
"name": "EURO INFORMATION DEVELOPPEMENTS (EID)",
"category": "Large",
"employees": { "range": "2000-4999", "min": 2000, "max": 4999, "year": 2024 },
"head_office": { "postal_code": "67000", "city": "STRASBOURG", "department": "67", "...": "..." },
"establishments": 62,
"open_establishments": 34,
"no_marketing": true
},
{
"siren": "394026934",
"name": "EXPERIS FRANCE (EXPERIS)",
"category": "Large",
"head_office": { "postal_code": "44300", "city": "NANTES", "department": "44", "...": "..." },
"no_marketing": true
},
{
"siren": "331221150",
"name": "LOCAL.FR",
"category": "ETI",
"head_office": { "postal_code": "92100", "city": "BOULOGNE-BILLANCOURT", "department": "92", "...": "..." },
"no_marketing": true
}
]
}
The location trap: establishments, not head offices
None of the three head offices is in the Rhône. That is not a bug: location filters match any establishment of the company, while the address returned is the head office. EID is headquartered in Strasbourg and has an office in the Lyon area, so it belongs to "companies present in the Rhône". The same happens with postal codes: a search for bakeries (naf=10.71C) in Paris 11th (postal_code=75011) returns 170 companies, and the first one has its head office in Lille, with 44 open establishments. The second, a bakery headquartered in Paris 2nd, also shows how unpublished figures look: its only accounts entry is {"year": 2023, "net_income": 437133}, with no revenue key, because the turnover was not published.
Both readings are useful. For "who has a team in Lyon", keep the results as they are. For "companies headquartered in Lyon", filter on the head office after the call:
def headquartered_in(department: str, **filters) -> list[dict]:
found, page = [], 1
while True:
params = {**filters, "department": department, "per_page": 25, "page": page}
r = requests.get(
f"{API}/v1/company-fr/search", headers=HEADERS, params=params, timeout=30
)
r.raise_for_status()
data = r.json()
found += [
c
for c in data["results"]
if c["head_office"]["department"] == department and not c["no_marketing"]
]
if page >= data["total_pages"]:
return found
page += 1
lyon = headquartered_in("69", naf="62.01Z", min_employees=50)
For the 69 Rhône results this is 3 pages, so 3 credits. The same loop drops companies flagged no_marketing, which in this sample is most large ones. The register caps any search at 10,000 results (page × per_page); narrow the filters if total reaches it.
Searching by name
q matches names, brands and address words, and companies whose name contains the query rank first. A real search for q=michelin with category=Large returned 101 companies, led by the tyre maker's French manufacturing company, then Michelin Inflatable Solutions and the group's investment GIE:
{
"siren": "855200507",
"name": "MANUFACTURE FRANCAISE DES PNEUMATIQUES MICHELIN",
"category": "Large",
"employees": { "range": "10000+", "min": 10000, "year": 2024 },
"activity": { "code": "70.10Z", "label": "Activities of head offices", "...": "..." },
"head_office": { "postal_code": "63000", "city": "CLERMONT-FERRAND", "...": "..." },
"financials": [{ "year": 2025, "revenue": 5386626000, "net_income": 37010000 }],
"labels": ["qualiopi", "training_provider", "health_social", "responsible_purchasing", "egapro_index"],
"vat_number": "FR33855200507"
}
Two habits follow. When the user can give a number, look up by SIREN; a name search is a suggestion list, never an identification. And add a size, sector or department filter to a name search: without category=Large, the same query returned 10,000 matches (the register's cap), starting with three small property companies (SCI) named Michelin. They match the name perfectly and are still not the company the user meant.
A KYB and onboarding flow for French customers
A typical "know your business" step at sign-up, using only what is above:
- Ask for the SIREN or SIRET; run
luhn_okin the form. - Call
/companyand stop ifactiveisfalse(a closed company should not open an account). - Compare the name the user typed with
nameand show the head office address for confirmation. - Store
siren,vat_number,legal_form.labeland the head office on the account; invoices need them. - For intra-EU invoicing without VAT, confirm the VAT number with VIES at invoice time.
Cache the record for a day or more: the register is updated daily, and the API itself caches answers for an hour. For catalogue or CRM enrichment, call /company once per account and refresh monthly; the updated field tells you when the register last changed the record.
The same SIREN-first approach completes website-based enrichment: the company enrichment walkthrough gets contacts and a lead score from a company's website, and the register adds the legal identity and size the website rarely states. If you collect contact emails at onboarding, the email verification guide covers the next check.
Bulk exports without code on Apify
The same engine runs as an Apify Actor, French Company Scraper - SIRENE, SIREN & VAT, for analysts who want a spreadsheet rather than an integration: paste SIREN or SIRET numbers, or set search filters, and download one row per company as CSV or Excel. It costs $0.003 per company returned, and the Apify free plan covers 50 companies per run.
What it costs
1 credit per call. A lookup is one company; a search page returns up to 25 companies for the same single credit. Failed calls (4xx, 5xx) use no credits.
| Plan | Price per month | Credits | In practice |
|---|---|---|---|
| BASIC | Free | 10 per day | 10 lookups or search pages a day |
| PRO | $3.99 | 15,000 | about $0.00027 per call |
| ULTRA | $9.99 | 75,000 | about $0.00013 per call |
| MEGA | $29.99 | 400,000 | about $0.00007 per call |
Beyond the monthly quota, paid plans continue at $0.003 per credit.
What the SIREN API does not do
- No sole traders. Entrepreneurs individuels (micro-entrepreneurs, liberal professions in their own name) are excluded, as are companies that asked INSEE not to publish their data. Their SIREN returns
404 company_not_found. - No people's names or contact data. Directors appear by role only; there are no names, birth dates, emails or phone numbers.
- No VAT registration check. The VAT number is computed from the SIREN with the official key; VIES says whether it is active for intra-EU trade.
- No full accounts. Revenue and net income appear when they were published; many small companies file confidentially, and the figures are as filed. There are no balance sheets, no Kbis extract and no filed documents.
- No establishment list. A record gives the head office and the number of establishments, not each SIRET's address.
- France only. The register covers entities registered in France; companies in other countries are out of scope.
Frequently asked questions
How do I find a company's SIREN number?
Search by name with GET /v1/company-fr/search?q=..., ideally with a filter (department, sector or size), and pick the right result; the siren field is the number. On paper, the SIREN appears on invoices, quotes and the company's legal notice page ("mentions légales").
What is the difference between SIREN and SIRET?
The SIREN (9 digits) identifies the company; the SIRET (14 digits, SIREN plus a 5-digit NIC) identifies one of its establishments. A company has one SIREN and as many SIRETs as sites it has had. The API accepts both and returns the company.
How do I get a French VAT number from a SIREN?
Compute the key (12 + 3 × (SIREN mod 97)) mod 97 and write FR, the two-digit key, then the SIREN; for 794598813 that gives FR14794598813. The API returns it in vat_number. To know whether the number is active for intra-EU trade, query VIES.
Is the French company register free to use?
Yes. SIRENE and the RNE are open data published by the French state, and the public annuaire-entreprises service shows them company by company. An API is useful for English labels, a stable JSON schema, filters and not having to handle the public source's rate limits yourself.
Can I get the name of a company's director?
Not from this API. People who run a company are listed by role only, for GDPR reasons. Companies that hold a mandate, such as auditors or a parent company acting as president, appear with their name and SIREN.
Get started
French Company Data API
Search French companies (SIRENE): SIREN, SIRET, VAT, activity, headcount, revenue, address.
- French Company Data
- KYB
- Open Data
- Python
- B2B Sales


