# Statistics for an activity sector

Comparing two companies with each other does not tell you whether either is normal; that is what this route adds. It accepts an activity code at any level of the classification, from division down to sub-class, letting you narrow the benchmark to the actual trade.

## What the route returns

Catalogue description, exactly as agents read it:

**Sector benchmarks and sector statistics for a French NAF activity code (any level: division, groupe, classe, sous-classe): number of active companies, median company age (with quartiles), workforce-bracket distribution, and — when at least 5 companies file public accounts — median revenue, EBITDA margin, pre-tax result and debt ratio. Peer comparison in one call: place a company against its peers. Aggregates only, no personal data; sectors with fewer than 5 companies are excluded.**

## Expected identifier

Activity code, at any level: division, group, class or sub-class.

> ⚠️ A wrongly formatted identifier returns `400` and is **not billed** — but it costs you a round trip. It is the leading cause of failed calls on the foreign routes.

## Extract from a genuinely paid response

Dated snapshot from 2026-07-29, truncated to one item per array. It is not live data. The full extract is served **free of charge** from [the samples surface](https://api.sirenic.eu/exemples/), and the schema from the OpenAPI document.

```
{
 "code_naf": "62.01Z",
 "niveau": "sous-classe",
 "effectif_entreprises": {
  "actives_diffusibles": 98868
 },
 "age_annees": {
  "mediane": 4,
  "q1": 1,
  "q3": 11
 },
 "effectifs_salaries": {
  "repartition": {
   "NN": 88097
  },
  "repartition_libelles": {
   "NN": "non renseigné"
  }
 },
 "finances": {
  "entreprises_avec_comptes": 8950,
  "marge_ebe_pct": {
   "mediane": 7.197
  },
  "rcai_sur_ca_pct": {
   "mediane": 3.989
  },
  "taux_endettement": {
   "mediane": 3.348
  }
 },
 "source": "INSEE Sirene (Licence Ouverte Etalab 2.0) et ratios financiers INPI / Banque de France (Licence Ouverte 2.0)"
}
```

## Price and billing

Price: **$0.05**. The authoritative amount is the one in the `402` quote returned by the route itself — not this text, which derives from the same grid but is still just a page.

An error response **cancels the payment**: a `400`, `404` or `503` is never billed. An upstream outage closes the route with a `503` rather than serving a degraded response.

## Calling the route

```
# 1. Le devis, sans rien payer : la route répond 402 avec son montant
curl -i https://api.sirenic.eu/v1/secteur/{code_naf}/benchmarks

# 2. L'appel réglé — le client x402 paie le devis et rejoue la requête
npx x402-fetch https://api.sirenic.eu/v1/secteur/{code_naf}/benchmarks

# 3. Ou en MCP, dans Claude Code / Cursor / un agent
claude mcp add --transport http sirenic https://api.sirenic.eu/mcp
```

## What this route does not do

Aggregates only, no personal data, and sectors with fewer than 5 companies are **excluded**: an aggregate over three companies re-identifies its members.

## Neighbouring routes

- `/v1/comparer` — $0.12 / entité
- `/v1/prospection` — $0.02

## How you pay

Every route is paid **per call**, in USDC or EURC on the Base network, over the x402 protocol: no account to create, no API key, no subscription. The first call returns a `402` quote your client settles, then replays the call. A failed call is never billed.

Would you rather have a euro invoice and prepaid credits? That is **in preparation**, and we will not announce a date until it is open. Write to [contact@sirenic.eu](mailto:contact@sirenic.eu?subject=Euro%20credit%20packs) and we will let you know when it opens.

Paid responses are **Ed25519-signed**: you can later prove what was served to you, and when. The whole catalogue is free to read in the [OpenAPI document](https://api.sirenic.eu/openapi.json) and in [llms.txt](https://api.sirenic.eu/llms.txt).

**One call, end to end**

```
# Client x402 (npm) — le devis 402 est réglé et l'appel rejoué automatiquement
npx x402-fetch https://api.sirenic.eu/v1/entreprise/552032534

# Ou en MCP, dans Claude Code / Cursor
claude mcp add --transport http sirenic https://api.sirenic.eu/mcp
```

## Routes used and pricing

| Route | Price | What it returns |
| --- | --- | --- |
| `/v1/secteur/{code_naf}/benchmarks` | $0.05 | Sector benchmarks and sector statistics for a French NAF activity code (any level: division, groupe, classe, sous-classe): number of active companies, median company age (with quartiles), workforce-bracket distribution, and — when at least 5 companies file public accounts — median revenue, EBITDA margin, pre-tax result and debt ratio. Peer comparison in one call: place a company against its peers. Aggregates only, no personal data; sectors with fewer than 5 companies are excluded. |

## Take it further

- [See a real response (free)](https://api.sirenic.eu/exemples/secteur-code_naf-benchmarks.json)
- [Get the quote for /v1/secteur/{code_naf}/benchmarks](https://api.sirenic.eu/v1/secteur/{code_naf}/benchmarks)
- [Get notified about euro packs](mailto:contact@sirenic.eu?subject=Euro%20credit%20packs)

## Read next

- [Comparing companies on official data](https://api.sirenic.eu/en/use-cases/compare-2-5-companies-per-axis-rankings-no-overall-winner)

---

Volume figures on this page were measured in our database on 2026-08-19. They are dated snapshots, not live counters.

Full catalogue : https://api.sirenic.eu/