> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Open Targets Platform

> Drug target evidence: target-disease associations, target tractability and genetic constraint, diseases, drugs and their mechanisms, through one GraphQL API.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/opentargets.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=05721703f1c736bc75a550a00627a4ce)

[Web Catalog · Science](https://docs.webrouter.net/data-apis.md?category=science)

No key needed

Endpoints

1

Auth

None

[Vendor docs](https://platform-docs.opentargets.org/data-access/graphql-api)

## Notes

* Keyless. GraphQL only: one POST taking query and variables; ask only for the fields you need.
* Root fields include target(ensemblId), disease(efoId), drug(chemblId), their plural forms, search(queryString, entityNames, page), mapIds(queryTerms, entityNames), variant(variantId) and study(studyId).
* Find an id first with search (e.g. a gene symbol to its Ensembl id, a disease name to its EFO id), then query the entity.
* For systematic work across many targets the project recommends its bulk downloads or BigQuery instead of many API calls.

## Endpoints

POST

Run a GraphQL query

Any query over targets, diseases, drugs, variants, studies and their associations.

[Open](#opentargets-graphql)

### Run a GraphQL query

POST

`/api/v4/graphql`

`opentargets.graphql`

Any query over targets, diseases, drugs, variants, studies and their associations.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>body</td><td>GraphQL query. Example `query target($ensemblId: String!) { target(ensemblId: $ensemblId) { id approvedSymbol } }`</td></tr>
    <tr><td>`variables`</td><td>object</td><td>body</td><td>Values for the query's variables. Example `{"ensemblId": "ENSG00000169083"}`</td></tr>
  </tbody>
</table>

[Vendor docs](https://platform-docs.opentargets.org/data-access/graphql-api)

```python Python theme={null}
router.call_data_api("opentargets.graphql", {'query': 'query target($ensemblId: String!) { target(ensemblId: $ensemblId) { id approvedSymbol } }', 'variables': {'ensemblId': 'ENSG00000169083'}})
```

```text MCP theme={null}
call_data_api(endpoint="opentargets.graphql", params={"query": "query target($ensemblId: String!) { target(ensemblId: $ensemblId) { id approvedSymbol } }", "variables": {"ensemblId": "ENSG00000169083"}})
```

> [!NOTE]
>
> * A read over POST.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.