# searchTargets

**Identifier:** `chembl_searchTargets`

**Provider:** [ChEMBL](https://kirha.com/providers/chembl.md)

Find ChEMBL targets by gene symbol (EGFR), UniProt accession (P00533) or protein name. Exact gene symbol, synonym and accession matches come first, single proteins before complexes and families. Returns target ChEMBL IDs for getBioactivities and getMechanisms, plus gene symbols and UniProt IDs to bridge to Open Targets (pass the gene symbol to opentargets-mcp searchEntities for the Ensembl ID). Also accepts the uniprotId or symbol from opentargets-mcp getTargetProfile.

## Run it with the CLI

```bash
kirha tools run chembl_searchTargets \
  --input '{
    "query": "<query>"
  }'
```

`--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": "chembl_searchTargets",
  "input": {
    "query": "<query>"
  }
}'
```

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": {
    "limit": {
      "default": 5,
      "maximum": 20,
      "minimum": 1,
      "type": "integer"
    },
    "organism": {
      "default": "Homo sapiens",
      "description": "Latin name; empty string for all species",
      "type": "string"
    },
    "query": {
      "minLength": 2,
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "context": {
      "type": "string"
    },
    "matchType": {
      "enum": [
        "accession",
        "exactSynonym",
        "textSearch"
      ],
      "type": "string"
    },
    "targetChemblIds": {
      "description": "For getBioactivities and getMechanisms",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "targets": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "geneSymbols": {
            "description": "HGNC symbols, query for opentargets-mcp searchEntities",
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "name": {
            "type": "string"
          },
          "organism": {
            "type": "string"
          },
          "targetChemblId": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "uniprotIds": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "targetChemblId"
        ],
        "type": "object"
      },
      "type": "array"
    }
  },
  "required": [
    "context",
    "matchType",
    "targets",
    "targetChemblIds"
  ],
  "type": "object"
}
```

## Related tools

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

- [`getMechanisms`](https://kirha.com/providers/chembl/getMechanisms.md)
- [`getBioactivities`](https://kirha.com/providers/chembl/getBioactivities.md)

-----

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