# getCompoundSynonyms

**Identifier:** `pubchem_getCompoundSynonyms`

**Provider:** [PubChem](https://kirha.com/providers/pubchem.md)

Get the names (INN, brand, trade, code names) of a PubChem compound and the registry IDs found among its synonyms: CAS numbers, ChEMBL IDs, DrugBank IDs, FDA UNIIs, ChEBI IDs and ATC codes. Use these IDs to chain into ChEMBL, Open Targets, DrugBank or RxNorm (by name).

## Run it with the CLI

```bash
kirha tools run pubchem_getCompoundSynonyms \
  --input '{
    "cid": 1
  }'
```

`--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": "pubchem_getCompoundSynonyms",
  "input": {
    "cid": 1
  }
}'
```

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": {
    "cid": {
      "description": "PubChem CID (from findCompound)",
      "exclusiveMinimum": 0,
      "maximum": 9007199254740991,
      "type": "integer"
    },
    "maxNames": {
      "default": 30,
      "maximum": 200,
      "minimum": 1,
      "type": "number"
    }
  },
  "required": [
    "cid"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "atcCodes": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "casNumbers": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "chebiIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "chemblIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "cid": {
      "type": "number"
    },
    "context": {
      "type": "string"
    },
    "drugbankIds": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "names": {
      "description": "Most relevant names first, registry IDs excluded",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "totalSynonyms": {
      "type": "number"
    },
    "uniis": {
      "description": "FDA Unique Ingredient Identifiers",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "cid",
    "totalSynonyms",
    "names"
  ],
  "type": "object"
}
```

## Related tools

Other PubChem tools that this tool refers to, or that refer to it.

- [`findCompound`](https://kirha.com/providers/pubchem/findCompound.md)

-----

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