Hi Evert,
In this blog we describe how to create a simple REST service to connect and extract data from ChEMBL using its API. We also explain there how to create a set of calls to access various data in ChEMBL. We published it in the workflow 50_Applications/30_RESTful_ChEMBL/01_ChEMBL_REST_Services on the EXAMPLES server. We used ChEMBL API documentation to create these calls. It’s available here .
To extract compounds tested against a target you need to perform a bioactivity call, which is chembl/api/data/activity. In the mentioned example workflow, the ChEMBL Bioactivity metanode is making this request. You could feed it with a Target ID and then extract up to 1000 activities at a time, that’s a limit of ChEMBL API. To get all bioactivities you would just need to incorporate this request in a loop.
Hope it helps.
Best,
Daria