Query French companies by combined criteria
query_french_companiesFrench company search with free combined criteria on a pre-joined table of the official registries (Sirene identity and head office, last filed accounts, public signals). mode is required: compter returns the exact count ($0.002 in USDC or EURC), lister one page of 100 companies ($0.02 per page, 100 pages at most) with the exact total; count first, then list. criteres: up to 20 conditions {champ, op, valeur} combined with AND (OR goes through in); valeur is typed by the field (string, number, true or false, YYYY-MM-DD, [min, max] for entre, an array of 1 to 50 values for in, or for hors, which excludes SIRENs on identite.siren only); criteres is at most 2048 characters once JSON-encoded (beyond: criteres_trop_longs, refused here before any quote); each field's operators, unit, closed values and meaning are served free by GET /v1/lecture. Active legal persons by default (identite.etat = A; any criterion on identite.etat replaces it): no officer, no person. A refusal is a 400 from the closed list (parametre_inconnu, criteres_illisibles, criteres_trop_longs, trop_de_criteres, champ_inconnu, champ_indisponible, champ_non_filtrable, operateur_refuse, valeur_invalide, personnes_physiques_exclues, tri_refuse, page_hors_bornes, champ_de_sortie_inconnu), never charged; a query beyond the 15 s budget returns requete_trop_large, never charged: narrow the criteria. To screen a customer file by growth trajectory ("Of my 300 customers, which ones have been shrinking for two years?"): identite.siren in a list of up to 50 SIRENs with tendances.trajectoire in [repli_modere, repli_marque, degradation_apres_croissance], 6 calls for 300 customers; tendances.trajectoire and the trajectory signals are computed at each monthly rebuild of the table (before the first one: 503 collecte_en_cours, never charged), get_french_company_trajectory serves one company on the day. identite.naf_nomenclature, identite.naf25, identite.naf25_statut (output only) are copied from a Sirene stock this server read in full, NAF 2025 column present and no value outside the official subclasses; until the rebuild that follows such a stock: 503 collecte_en_cours, never charged. Paid via x402. When you report a result, cite its citation verbatim.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>"
},
"name": "query_french_companies"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tri | No | Sort field, - prefix for descending; missing values last (lister) | |
| mode | Yes | compter: exact count; lister: one page of companies. Required: nothing is bought by default. | |
| page | No | Page number (lister), 100 companies per page, one payment per page | |
| champs | No | Catalogue fields to serve (lister); the SIREN and the fields of the criteria and of the sort are always served | |
| api_key | No | Optional Sirenic API key (srn_live_…) paying from credits. Ignored when x_payment is provided. See server instructions. | |
| criteres | No | Conditions combined with AND, at most 2048 characters once JSON-encoded (none: every active legal person) | |
| x_payment | No | Optional signed x402 payment (PAYMENT-SIGNATURE value); omit it to get the quote. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hint | No | How to settle the quote. | |
| quote | No | The x402 quote {x402Version, accepts[]}. | |
| resultat | No | The endpoint's JSON response when payment_required is false; reading rules in the server instructions and GET /v1/lecture. | |
| free_tier | No | Free API key offer, with a quote. | |
| payment_required | Yes | True for an x402 payment quote instead of data. |