The Open Targets Platform REST API allows language agnostic access to data available on the Open Targets Platform. The REST API can be accessed from the following URL
The current set of REST API endpoints can be divided in three groups:
Public - Methods that serve the core set of our data e.g. associations and evidence. These methods are stable and unlikely to change.
Utils - Methods to get statistics on our data and to check if the server is alive.
To get the summary statistics of our latest release, for example, you will use the following URL:
utils/stats endpoint will return the total number of targets and diseases, and the total numbers of associations and evidence strings per data source and data type.
The three methods listed above (Public, Private and Utils) are available via a
GET request, and by default will return the outputs in
For complex queries with large numbers of parameters, use a
POST request instead of
POST methods require a body encoded as
You can use the following tools with the Open Targets Platform REST API endpoints:
Command line (e.g. CURL or HTTPie)
Your own application and/or workflow
Open Targets Python client
Check our webinar Take a rest of manual searches with the Open Targets API for an overview of the REST API and examples on some of the API queries that serve the Open Targets Platform user interface.
Check the API tutorials page for the most up-to-date use case examples or head to the Open Targets Blog for Open Targets API Tutorial: Getting Started and Get an association table for your list of genes tutorials.
If you have questions on the Open Targets Platform REST API or need further help, please email us.