Requete Compter
by Sirenic in Company & people data
Count French companies matching free cross-criteria on a pre-joined table of the official registries: geography (departement, region, postal-code prefix), NAF activity, legal form, workforce, age, last filed accounts (revenue, net income, margins, ratios, trends, cash items) and public signals (RGE, equality index, ICPE/Seveso, public contracts, authorisations). Active legal persons by default. Returns the exact count and each source's date: size a market before listing it.
https://api.sirenic.eu/v1/entreprises/requete/compter- Price
- $0.002
- per call in USDC
- Uptime
- 99.00%
- last 30 days
- Response time
- 210 ms
- 269 ms slowest 5%
- Last check
- Passed
- 4 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://api.sirenic.eu/v1/entreprises/requete/compter
Each call costs $0.002 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://api.sirenic.eu/v1/entreprises/requete/compter?criteres=%5B%7B%22champ%22%3A%22siege.departement%22%2C%22op%22%3A%22%3D%22%2C%22valeur%22%3A%2269%22%7D%2C%7B%22champ%22%3A%22finances.ca%22%2C%22op%22%3A%22%3E%22%2C%22valeur%22%3A1000000%7D%5DParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
champs | string | No | Accepted without effect by the count route. Comma-separated catalogue fields to serve (default: identity, head office, last closing date, revenue, net income); the SIREN and the fields of the criteria and of the sort are always served. |
criteres | string | No | JSON array of at most 20 conditions {"champ","op","valeur"}, URL-encoded, at most 2048 characters, combined with AND (OR goes through the in operator): champ is a filterable field of the catalogue served by GET /v1/lecture, op one of its operators, valeur typed by the field. Active legal persons by… |
page | string | No | Accepted without effect by the count route. Page number, 1 to 100, 100 companies per page; each page is a separate payment (default 1). |
tri | string | No | Accepted without effect by the count route, so that the same query serves both modes. Sort field among identite.siren, finances.date_cloture, finances.ca, finances.resultat_net, finances.bfr_sur_ca, prefixed with - for descending order (default identite.siren); missing values come last in both orde… |
Example response
The provider's example. We can't check it without paying.
{
"disclaimer": "Compte exact ; chaque source datée dans stock.flux, table fermée au-delà de 45 jours ; géographie du siège ; finances du dernier exercice social qualifié. / Exact count; each source dated in stock.flux, table closed beyond 45 days; head-office geography; finances of the last qualified annual accounts.",
"nombre_total": 23,
"perimetre": "personnes morales diffusibles du stock Sirene, actives (identite.etat = A) sauf critère sur identite.etat ; entrepreneurs individuels et unités en diffusion partielle jamais comptés ni listés ; un critère ne retient jamais une valeur absente ; un critère sur identite.naf ne retient que les codes de la NAF rév. 2 / public legal persons of the Sirene stock, active (identite.etat = A) unless a criterion sets identite.etat; sole traders and partially public units never counted or listed; a criterion never retains a missing value; a criterion on identite.naf only retains NAF rev. 2 codes",
"source": "INSEE Sirene, INPI et Banque de France (comptes), Signaux Faibles (liasses), ADEME (RGE), ministère du Travail (égapro), Géorisques (ICPE), DECP, EBA, EIOPA et ARCEP (agréments), table pré-croisée par Sirenic ; licence de chaque source : GET /v1/provenance/registres",
"stock": {
"age_jours": 1,
"construit_le": "2026-10-02",
"flux": {
"sirene-stock-unites-legales": {
"dernier_mis_a_jour": "2026-10-01"
}
},
"seuil_jours": 45
}
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.002.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.sirenic.eu/v1/entreprises/requete/compter?criteres=%5B%7B%22champ%22%3A%22siege.departement%22%2C%22op%22%3A%22%3D%22%2C%22valeur%22%3A%2269%22%7D%2C%7B%22champ%22%3A%22finances.ca%22%2C%22op%22%3A%22%3E%22%2C%22valeur%22%3A1000000%7D%5D'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://api.sirenic.eu/v1/entreprises/requete/compter?criteres=%5B%7B%22champ%22%3A%22siege.departement%22%2C%22op%22%3A%22%3D%22%2C%22valeur%22%3A%2269%22%7D%2C%7B%22champ%22%3A%22finances.ca%22%2C%22op%22%3A%22%3E%22%2C%22valeur%22%3A1000000%7D%5D' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.002 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.002" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.002 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.sirenic.eu%2Fv1%2Fentreprises%2Frequete%2Fcompter
const res = await pay("https://api.sirenic.eu/v1/entreprises/requete/compter?criteres=%5B%7B%22champ%22%3A%22siege.departement%22%2C%22op%22%3A%22%3D%22%2C%22valeur%22%3A%2269%22%7D%2C%7B%22champ%22%3A%22finances.ca%22%2C%22op%22%3A%22%3E%22%2C%22valeur%22%3A1000000%7D%5D");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.002 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.002"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://api.sirenic.eu/v1/entreprises/requete/compter?criteres=%5B%7B%22champ%22%3A%22siege.departement%22%2C%22op%22%3A%22%3D%22%2C%22valeur%22%3A%2269%22%7D%2C%7B%22champ%22%3A%22finances.ca%22%2C%22op%22%3A%22%3E%22%2C%22valeur%22%3A1000000%7D%5D")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 4 h ago | Passed | 402 | 145 ms | $0.002 |
| 13 h ago | Passed | 402 | 193 ms | $0.002 |
| 24 h ago | Passed | 402 | 233 ms | $0.002 |
| 37 h ago | Passed | 402 | 200 ms | $0.002 |
| 4 days ago | Timed out | - | - | - |
Show 10 older checks
| 5 days ago | Passed | 402 | 265 ms | $0.002 |
| 5 days ago | Passed | 402 | 227 ms | $0.002 |
| 6 days ago | Passed | 402 | 218 ms | $0.002 |
| 6 days ago | Passed | 402 | 241 ms | $0.002 |
| 6 days ago | Passed | 402 | 199 ms | $0.002 |
| 7 days ago | Passed | 402 | 265 ms | $0.002 |
| 7 days ago | Passed | 402 | 239 ms | $0.002 |
| 7 days ago | Passed | 402 | 197 ms | $0.002 |
| 8 days ago | Passed | 402 | 232 ms | $0.002 |
| 8 days ago | Passed | 402 | 199 ms | $0.002 |