just/mocks_
mockzilla.org →
Catalog /data /Open Targets Platform REST API

Open Targets Platform REST API

PROVIDER · Opentargets SPEC v19.02.1 · OpenAPI 3.0.0 MOCK · LIVE
▸ TRY IT
https://api.justmocks.com/opentargets
Open mock →

Simulate the Open Targets Platform REST API with 31 endpoints without keys, sandboxes, or a live account.

[01]

About

overview

Mock the Open Targets Platform REST API as a turnkey Mockzilla sim with 31 OpenAPI endpoints, realistic JSON payloads, no upstream signup or sandbox keys. The Open Targets Platform REST API The Open Targets Platform API ('Application Programming Interface') allows programmatic retrieval of the Open Targets Platform data via a set of REST services. Methods: 22x GET, 9x POST. Top resource groups: private, public, utils, filter. Hit https://api.justmocks.com/opentargets for the Mockzilla API Explorer landing and per-endpoint sample requests.

Endpoints
31 across 6 resource groups
Methods
GET 22 · POST 9 none deprecated
OpenAPI
3.0.0 spec version 19.02.1
Source spec
31 KB · YAML view raw →
[02]

Endpoints

31 operations · 6 resource groups
GET /platform/docs
private
Browse API documentation
Access api docs as served by Redoc. Mocked via Mockzilla.
GET /platform/docs/swagger-ui
private
Browse interactive API documentation
Interactive API docs using swagger-ui
GET /platform/private/autocomplete
private
Get autocomplete objects.
Search for the closest term to autocomplete in the search box.
POST /platform/private/besthitsearch
private
Find the best hit
Fire the search method for multiple strings
POST /platform/private/disease
private
Find information about a list of diseases
Get disease objects.
GET /platform/private/disease/{disease}
private
Find information about a disease
Get disease objects. Available as a Mockzilla mock endpoint.
GET /platform/private/drug/{DRUG_ID}
private
Get drug by ID
Get drug objects.
GET /platform/private/eco/{ECO_ID}
private
Get evidence code by ID
Get ECO objects.
POST /platform/private/enrichment/targets
private
Enrichment analysis
Returns an enrichment analysis for a list of targets passed in the body
GET /platform/private/quicksearch
private
Search most relevant results
Get search-result objects. Enables search bar functionality.
POST /platform/private/relation
private
Find related entities
Get relation objects. Mockzilla mock: no signup, no API key.
GET /platform/private/relation/disease/{disease}
private
Find related entities by disease
Get relation objects starting from diseases.
GET /platform/private/relation/target/{target}
private
Find related entities by target
Get relation objects starting from diseases.
POST /platform/private/target
private
Find information about a list of targets
Get target objects. Used for the target profile page.
GET /platform/private/target/expression
private
Query expression levels
Get gene-expression objects.
POST /platform/private/target/expression
private
Batch query expression levels
Get gene-expression objects. Served by the Mockzilla mock runtime.
GET /platform/private/target/{target}
private
Find information about a target
Get target objects.
GET /platform/public/association
publicretrieve
Get association by id
Once we integrate all evidence connecting a target to a specific disease, we compute an association score by the means of an harmonic sum. This association score provides an indication of how strong the evidence behind each connection is and can be used to rank genes in order of likelihood as drug targets. The association ID is constructed by using the Ensembl ID of the gene and the EFO ID for the disease (e.g. ENSG00000073756-EFO_0003767). The method returns an association object, which contains the data and summary on each evidence type included in the calculation of the score, as well as the score itself.
GET /platform/public/association/filter
publicfilter
Filter available associations
More complex queries for associations scores and objects can be done using this method, which allows to sort in different order, restrict to a specific class of diseases or targets, as well as filtering results by score and associated pathways.
POST /platform/public/association/filter
publicfilter
Batch query available associations
Complex queries and filters for association objects can also be submitted using a JSON object and the equivalent POST method.
GET /platform/public/evidence
publicretrieve
Get evidence by ID
We call evidence a unit of data that support a connection between a target and a disease. The Open Targets Platform integrates multiple types of evidence including genetic associations, somatic mutations, RNA expression and target-disease associations mined from the literature. This method allows you to retrieve a single evidence item or a list of pieces of evidence by using their targetvalidation.org ID. Evidence IDs are unique within each data release (e.g. 8ed3d7568a8c6cac9c95cfb869bac762 for release 1.2). You can obtain a list of evidence and their IDs from other API calls such as /public/evidence/filter. Please note that a specific evidence ID may change between data releases. We can not guarantee that a specific evidence ID will refer to the same piece of evidence connecting a target and its diseases. Mocked via Mockzilla.
POST /platform/public/evidence
publicretrieve
Get evidence for a list of IDs
This is the POST version of /public/evidence. It allows to query for a list of evidence strings encoded in a json object to be passed in the body.
GET /platform/public/evidence/filter
publicfilter
Filter available evidence
The filter method allows to retrieve the specific data that supports a connection between targets and diseases. Filters can be used to restrict the results by source and type of data, or limit results to targets which are part of a particular pathway. Minimum and maximum scores can be specified as well as the type of evidence linking target and disease. Note that multiple genes and diseases can be specified in the same request.
POST /platform/public/evidence/filter
publicfilter
Batch filter available evidence
POST version of /public/evidence/filter. Filters can be specified as part of a json object in the body, simplifying the submission of queries.
GET /platform/public/search
publicsearch
Search for a disease or a target
This method allows you to look for gene or diseases of interest using a free text search, replicating the functionality of the search box on our homepage. It should be used to identify the best match for a disease or target of interest, rather than gathering a specific set of evidence.
GET /platform/public/utils/metrics
publicutils
Get metrics about the current data release
Returns the metrics about associations and evidences, divided by datasource, genes and so on. Available as a Mockzilla mock endpoint.
GET /platform/public/utils/ping
publicutils
Ping service
Check if the API is up
GET /platform/public/utils/stats
publicutils
Get statistics about the current data release
Returns the number of associations and evidences, divided by datasource.
GET /platform/public/utils/therapeuticareas
publicutils
Get the list of therapeutic areas about the current data release
Returns the list of therapeutic areas for the current data release
GET /platform/public/utils/version
publicutils
Get API version
Returns current API version.
GET /platform/swagger
private
Get OpenAPI schema
Get swagger.yaml specs for the API. Mockzilla mock: no signup, no API key.