# French Company Health Score: SIREN, BODACC History & Alerts (`xomiadata/company-health-history`) Actor

Stored history of French companies from official open data (SIRENE, BODACC, public contracts, RappelConso, GLEIF). Transparent 0-100 health, stability and momentum scores, insolvency and deregistration alerts, and changes since the last run. Not a credit rating. Sole proprietors excluded.

- **URL**: https://apify.com/xomiadata/company-health-history.md
- **Developed by:** [Khlifi oussama](https://apify.com/xomiadata) (community)
- **Categories:** Business, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## French Company Health Score: SIREN, BODACC History & Alerts

Track the health of French companies over time from official open data. Each run builds one profile per company with three transparent scores (health, stability, momentum), alerts for insolvency proceedings or deregistration, and a list of **what changed since your previous run**. Snapshots are stored in a named key-value store in your own Apify account, so the history grows every time you run it on a schedule.

**En français :** suivi de la santé des entreprises françaises par SIREN (Sirene, BODACC, marchés publics DECP, RappelConso, GLEIF) : scores transparents, alertes de procédure collective ou de radiation, et journal des changements entre deux exécutions.

### What you get per company

- Registry facts: status, legal form, NAF activity code, size category, headcount bracket, head office city, latest published revenue and net income.
- BODACC: collective proceedings (safeguard, receivership, liquidation…), modification notices by category (capital, head office, name, management…), last accounts-filing notice, deregistration. Each with the official notice link.
- Public contracts won (DECP): count and amount over the last 12 months vs the previous 12, and the 3 latest contracts.
- Product recalls (RappelConso) for the brands you list.
- LEI status from GLEIF (also for non-French companies via their LEI).
- `healthScore`, `stabilityScore`, `momentumScore` (0-100) with every point explained in `scoreFactors`.
- `changesSinceLastRun`, `scoreHistory` (last 30 snapshots), `firstTrackedAt`.
- `sources`: source, licence and URL for each block of fields.

### Use cases

- Supplier and customer monitoring (KYB) on a daily or weekly schedule.
- Credit and collections teams: get notified when a proceeding or deregistration appears.
- Sales and procurement: spot companies winning public contracts or raising capital.
- AI agents: call it through the Apify MCP server for a structured, cited company profile.

### Input

```json
{
  "sirens": ["552032534 | danone", "542107651"],
  "leis": [],
  "includeContracts": true,
  "includeRecalls": true,
  "includeGleif": true,
  "historyStoreName": "company-health-history",
  "onlyChanged": false
}
```

Add `| brand1, brand2` after a SIREN to watch product recalls for those brands. Schedule the Actor daily with `onlyChanged: true` to receive only companies that changed.

### Example queries (for AI agents)

The official Apify MCP server (`https://mcp.apify.com`) can discover and call this Actor when it is public and uses limited permissions. Pinned tool URL: `https://mcp.apify.com?tools=xomiadata/company-health-history` (tool name: `xomiadata--company-health-history`).

These scores are not a credit rating.

1. Build health, stability and momentum scores for SIREN 552032534, including public contracts and GLEIF, and report changes since the last run.

```json
{
  "sirens": ["552032534"],
  "includeContracts": true,
  "includeGleif": true,
  "includeRecalls": false,
  "onlyChanged": false
}
```

2. Monitor a SIREN for product-recall brands and only output the company if something changed.

```json
{
  "sirens": ["552032534 | danone, evian"],
  "includeContracts": true,
  "includeRecalls": true,
  "includeGleif": true,
  "onlyChanged": true,
  "historyStoreName": "company-health-history"
}
```

3. Look up a foreign LEI in GLEIF only (replace the placeholder with the identifier you were given; do not invent a LEI).

```json
{
  "leis": ["<20-character-LEI>"],
  "includeContracts": false,
  "includeRecalls": false,
  "includeGleif": true
}
```

### How the scores work

- **Health** starts at 100. Deductions: net loss, company younger than 2 or 5 years, no accounts-filing notice in 24 months, lapsed LEI, recent product recalls. Caps: liquidation 5, deregistration 10, sale plan 20, receivership 30, safeguard 45, continuation plan 55, closed company 0.
- **Stability** starts at 100 and decreases with BODACC modification notices in the last 12 months (head office, name, legal form, management, merger, dissolution) and recent proceedings.
- **Momentum** starts at 50 and moves with public contracts won, contract trend, capital increase or reduction, and (once history exists) headcount bracket and revenue trends.

These are rule-based indicators, not a credit rating.

### Sources and licences

| Data | Source | Licence |
|---|---|---|
| Registry facts | API Recherche d'entreprises (DINUM, INSEE Sirene / INPI RNE) | Licence Ouverte 2.0 (Etalab) |
| Proceedings, modifications, filings | BODACC (DILA) | Licence Ouverte 2.0 (Etalab) |
| Public contracts | DECP, data.economie.gouv.fr | Licence Ouverte 2.0 (Etalab) |
| Product recalls | RappelConso (DGCCRF), data.economie.gouv.fr | Licence Ouverte 2.0 (Etalab) |
| LEI | GLEIF | CC0 1.0 |

Licence Ouverte 2.0 requires attribution and the date of last update: both are included in every item (`sources`, `extractedAt`).

### Privacy

- Sole proprietors (entrepreneurs individuels, a natural person's identity) and units that opted out of public distribution are excluded.
- No director, shareholder or other person names are output. BODACC narrative text is never exported; only a category, a date and the official link.

### Limits

- France plus LEI-only profiles for other countries. UK Companies House is not included in this version.
- Revenue and headcount trends need at least two snapshots taken after the registry updates.
- DECP coverage depends on what public buyers publish.

### Pricing (pay per event)

- Company profile: per company returned.
- Change event: per detected change since the previous run.

Disclaimer: indicators computed from official open data at extraction time. Not a credit rating, not advice; official registries prevail.

### Use it in Claude, ChatGPT or Cursor (MCP)

This Actor runs through the official Apify MCP server, so an AI assistant can call it for you in a chat. The server is operated by Apify; runs are billed to your own Apify account per event (see Pricing).

1. **Claude** (claude.ai or Claude Desktop): Connectors settings > Add custom connector, then paste the URL below and sign in to Apify (OAuth). Guide: https://docs.apify.com/integrations/claude-ai
2. **ChatGPT** (developer mode): Settings > Apps & Connectors > Create, paste the same URL, authentication OAuth. Guide: https://docs.apify.com/integrations/chatgpt
3. **Cursor, Claude Code and other MCP clients**: add it as a remote HTTP MCP server. Guide: https://docs.apify.com/mcp

```
https://mcp.apify.com?tools=xomiadata/company-health-history
```

Claude Code:

```
claude mcp add --transport http company-health-history 'https://mcp.apify.com?tools=xomiadata/company-health-history'
```

All 7 xomiadata open-data Actors in one connector:

```
https://mcp.apify.com?tools=xomiadata/fr-company-check,xomiadata/fr-product-recalls,xomiadata/boamp-tenders-ai,xomiadata/ted-tenders-ai,xomiadata/company-health-history,xomiadata/job-postings-history,xomiadata/domain-trust-score
```

Then ask in plain language, for example:

- *Build the health, stability and momentum profile of SIREN 552032534 with public contracts and GLEIF, and tell me what changed since the previous run.*
- *Surveille ces 3 clients par SIREN et signale toute procédure collective ou radiation : 552032534, 542107651.*

### FAQ

**Is this a credit score?** No. The scores are transparent indicators computed from official open data; every point is explained in the output. Official registries prevail.

**How does the history work?** Each run stores a snapshot in a named key-value store in your own Apify account. Schedule the Actor daily or weekly and each run reports what changed.

**Do I need an API key?** No. All sources are public open data. You need an Apify account; runs are billed per event.

# Actor input Schema

## `sirens` (type: `array`):

One per line: 9-digit SIREN or 14-digit SIRET. Optionally add product brands to watch for recalls: '552032534 | danone, evian'. Sole proprietors are excluded (personal data).

## `names` (type: `array`):

One name per line; the closest legal-entity match in the French registry is used. SIREN is more reliable.

## `leis` (type: `array`):

20-character Legal Entity Identifiers for companies outside France. Profile is limited to GLEIF reference data (entity and registration status).

## `includeContracts` (type: `boolean`):

Counts and amounts of French public contracts awarded to the company (DECP, last 12 months and last 3 contracts).

## `includeRecalls` (type: `boolean`):

Recalls matching the brands you list after '|' on each SIREN line (exact brand match).

## `includeGleif` (type: `boolean`):

Adds LEI, entity status and LEI registration status (ISSUED / LAPSED).

## `historyStoreName` (type: `string`):

Named key-value store in your Apify account where daily snapshots are kept, so each run reports what changed since the last one. Use a different name to keep separate portfolios.

## `onlyChanged` (type: `boolean`):

For scheduled monitoring: skip companies with no change since the previous run (the initial run always outputs everything).

## Actor input object example

```json
{
  "sirens": [
    "552032534 | danone",
    "542107651"
  ],
  "names": [],
  "leis": [],
  "includeContracts": true,
  "includeRecalls": true,
  "includeGleif": true,
  "historyStoreName": "company-health-history",
  "onlyChanged": false
}
```

# Actor output Schema

## `results` (type: `string`):

One health profile per company with scores, alerts and changes since the previous run.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "sirens": [
        "552032534 | danone",
        "542107651"
    ],
    "names": [],
    "leis": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("xomiadata/company-health-history").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "sirens": [
        "552032534 | danone",
        "542107651",
    ],
    "names": [],
    "leis": [],
}

# Run the Actor and wait for it to finish
run = client.actor("xomiadata/company-health-history").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "sirens": [
    "552032534 | danone",
    "542107651"
  ],
  "names": [],
  "leis": []
}' |
apify call xomiadata/company-health-history --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,xomiadata/company-health-history"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/iuX9TQjdnNBMZSnmm/builds/X8wHM8c27ZavkODBg/openapi.json
