Help with using the new GraphQL API to pull targets associated with few diseases

Hi @mmahmed!

Thanks for your question.

We made the decision to replace our previous REST API with a GraphQL API to support the launch of the next-generation Platform in April 2021. GraphQL has some advantages we were interested in, such as language-agnostic access, a playground where users can run sample queries, and where users can view the complete API schema.

If you are unfamiliar with GraphQL, then we recently gave an introductory webinar for our API, which you can access here: Getting started with the Open Targets Platform GraphQL API - YouTube

We have examples of queries you can run here on the Open Targets Community that might be useful to you, for example: Returning all associations data using the Platform API or Using the API to search for drugs by target.

We have also included some sample Python and R scripts in our API documentation.

If there is a specific query you are having trouble with, please let us know and we’ll do our best to help!

Best wishes,

Helena