Outil · Ce qui a changé
diff_versions
Compare deux versions ou deux annexes : tableaux, durée de vie, fenêtre et paragraphes ajoutés, retirés ou reformulés. Quand une version change, ou pour expliquer un montant qui bouge.
Paramètres
| Nom | Type | Description (contrat de l'API, en anglais) |
|---|---|---|
| fiche requis | string | Standardised operation reference, for example BAR-TH-171 (also accepted: bar th 171). Sectors: AGRI, BAR (residential), BAT (tertiary), IND, RES (networks), TRA. |
| document | string fiche, partie_a, annexe_2 | fiche (default), partie_a (Annexe 1) or annexe_2. |
| from_version | string | Older version, for example A78-4. |
| to_version | string | Newer version, for example A82-5. |
| version | string | With partie_a or annexe_2: compare the annexes of this fiche version only. |
| limit | integer | Changes per page, default 20. |
| cursor | string | next_cursor from the previous answer, to get the next page. |
Exemple réel
Appel exécuté le 29 novembre 2026 au moment de la construction de cette page, avec une petite limite pour qu'il reste lisible. Les longues chaînes et listes sont coupées ici (…), pas dans l'API.
Requête REST
curl -s https://fichestone.bulkhead.solutions/v1/tools/diff_versions \
-H 'content-type: application/json' \
-d '{"fiche":"BAR-TH-171","from_version":"A78-4","to_version":"A82-5","limit":2}'
Même appel en MCP
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "diff_versions",
"arguments": {
"fiche": "BAR-TH-171",
"from_version": "A78-4",
"to_version": "A82-5",
"limit": 2
}
}
}
Réponse
{
"fiche": "BAR-TH-171",
"document": "fiche",
"compared": {
"from": {
"version": "A78-4",
"from": "2026-01-01",
"url": "https://www.ecologie.gouv.fr/sites/default/files/documents/BAR-TH-171%20vA78.4%20%C3%A0%20compter%20du%2001-01-2026_1.pdf",
"on_ministry_page": true
},
"to": {
"version": "A82-5",
"from": "2026-09-01",
"url": "https://www.ecologie.gouv.fr/sites/default/files/documents/BAR-TH-171%20vA82-5%20%C3%A0%20compter%20du%2001-09-2026.pdf",
"on_ministry_page": true
}
},
"kwh_cumac_table_changed": false,
"conventional_life_changed": false,
"summary": "3 differences (2 changed, 0 added, 1 removed); the kWh cumac table is unchanged.",
"total": 3,
"changes": [
{
"field": "conditions",
"change": "changed",
"words_removed": [],
"words_added": [
": 2012"
],
"before": "A défaut, la preuve de réalisation de l’opération mentionne la mise en place d’un équipement avec ses marque et référence et elle est complétée par un document issu du fabricant ou d’un organisme établi dans l'Espace économique européen et accrédité selon la …",
"after": "A défaut, la preuve de réalisation de l’opération mentionne la mise en place d’un équipement avec ses marque et référence et elle est complétée par un document issu du fabricant ou d’un organisme établi dans l'Espace économique européen et accrédité selon la …"
},
{
"field": "conditions",
"change": "removed",
"before": "Les documents justificatifs spécifiques à l’opération sont : - la note de dimensionnement susmentionnée ;"
}
],
"next_cursor": "bzoy",
"note": "Paragraph comparison of the French text after removing line breaks and hyphenation; a changed paragraph is shown before and after, clipped to 400 characters.",
"source": {
"publisher": "Ministère chargé de l'énergie (ecologie.gouv.fr), Opérations standardisées d'économies d'énergie",
"document": "BAR-TH-171 vA82-5 à compter du 01-09-2026",
"url": "https://www.ecologie.gouv.fr/sites/default/files/documents/BAR-TH-171%20vA82-5%20%C3%A0%20compter%20du%2001-09-2026.pdf",
"sha256": "21d43f1e3e1bd8f6a94b26b5853f18b8c731598a17d3b2f432a81d84253701bb",
"on_ministry_page": true,
"page": "https://www.ecologie.gouv.fr/politiques-publiques/operations-standardisees-deconomies-denergie",
"page_updated": "2026-11-05",
"retrieved": "2026-11-09",
"licence": "Licence Ouverte / Open Licence Etalab 2.0",
"attribution": "Ministère chargé de l'énergie, Opérations standardisées d'économies d'énergie (https://www.ecologie.gouv.fr/politiques-publiques/operations-standardisees-deconomies-denergie), mise à jour du 2026-11-05, Licence Ouverte Etalab 2.0."
},
"data_version": "2026-11-05.03baa5a5",
"data_date": "2026-11-05",
"disclaimer": "Automated and unreviewed: Fichestone reads the ministry's fiches automatically and no person checks each answer. Data can be incomplete, late or wrong; always verify against the official fiche PDF linked in source before you act. Not energy, legal or tax advi…"
}Description lue par les agents
Lists what changed between two versions of a fiche: title, conventional life, application window, every kWh cumac table row that changed, and the paragraphs of the sector, dénomination and conditions sections that were added, removed or reworded (before and after, clipped). With document partie_a or annexe_2 it compares the two latest annex documents instead, which is where the 1 July 2026 attestation changes sit. Defaults to the two latest versions held; pass from_version and to_version to choose. Pages of 20 changes with next_cursor. Call it when a version switches or to explain why an amount moved. Layout and hyphenation are ignored; it cannot explain why the ministry made a change.