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:
Our 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 blog 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 API queries that serve the Open Targets Platform user interface.
If you have questions on our REST-API, please email us and will be happy to help.