# searchByMolecule

**Identifier:** `ansm_searchByMolecule`

**Provider:** [ANSM](https://kirha.com/providers/ansm.md)

Find every French specialty containing a given active substance (INN — international non-proprietary name). Returns both princeps and generics. Use to answer 'what products contain paracetamol?' or to surface therapeutic alternatives. EU centrally authorised products are excluded (use ema-mcp).

## Run it with the CLI

```bash
kirha tools run ansm_searchByMolecule \
  --input '{
    "inn": "paracétamol"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "ansm_searchByMolecule",
  "input": {
    "inn": "paracétamol"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "dosage": {
      "description": "e.g. '500 mg', '1000 mg'",
      "type": "string"
    },
    "etatCommercialisation": {
      "default": "commercialisee",
      "enum": [
        "commercialisee",
        "non_commercialisee",
        "arret"
      ],
      "type": "string"
    },
    "genericType": {
      "enum": [
        "princeps",
        "generique"
      ],
      "type": "string"
    },
    "inn": {
      "description": "INN substance name or fragment, e.g. 'paracétamol', 'ibuprofène', 'amoxicilline'.",
      "type": "string"
    },
    "limit": {
      "default": 10,
      "maximum": 25,
      "minimum": 1,
      "type": "number"
    },
    "statutAmm": {
      "default": "active",
      "enum": [
        "active",
        "retiree",
        "archivee",
        "suspendue"
      ],
      "type": "string"
    }
  },
  "required": [
    "inn"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "cisCodes": {
      "description": "CIS codes for composition with other tools.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "inn": {
      "type": "string"
    },
    "medicines": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "cis": {
            "type": "string"
          },
          "dateAmm": {
            "type": [
              "string",
              "null"
            ]
          },
          "denomination": {
            "type": "string"
          },
          "etatCommercialisation": {
            "type": "string"
          },
          "formePharma": {
            "type": "string"
          },
          "genericGroup": {
            "anyOf": [
              {
                "additionalProperties": false,
                "properties": {
                  "identifiant": {
                    "type": "string"
                  },
                  "libelle": {
                    "type": "string"
                  },
                  "typeGenerique": {
                    "type": "number"
                  },
                  "typeGeneriqueLabel": {
                    "type": "string"
                  }
                },
                "required": [
                  "identifiant",
                  "libelle",
                  "typeGenerique",
                  "typeGeneriqueLabel"
                ],
                "type": "object"
              },
              {
                "type": "null"
              }
            ]
          },
          "statutAmm": {
            "type": "string"
          },
          "substances": {
            "items": {
              "additionalProperties": false,
              "properties": {
                "code": {
                  "type": "string"
                },
                "denomination": {
                  "type": "string"
                },
                "dosage": {
                  "type": "string"
                }
              },
              "required": [
                "code",
                "denomination",
                "dosage"
              ],
              "type": "object"
            },
            "type": "array"
          },
          "titulaires": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "cis",
          "denomination",
          "formePharma",
          "statutAmm",
          "etatCommercialisation",
          "titulaires",
          "substances"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "inn",
    "medicines",
    "cisCodes"
  ],
  "type": "object"
}
```

-----

[All ANSM tools](https://kirha.com/providers/ansm.md) · [< Back to tools list](https://kirha.com/tools.md)