/pharma/drugs?id={id}
-
Description
Search by id and retrieve information about a drug.
-
URL (PATH)
/pharma/drugs?id={id}&token={token}
-
Method
GET
-
Authentication
Optional (token)
-
Request parameters & Path variables
Parameter Description id
[alphanumeric]
requiredA CHEMBL identifier corresponding to a drug token
[alphanumeric]
optionalOptional access key to save the current query in your profile -
Example request
https://disnet.ctb.upm.es/api/disnet/pharma/drugs?id=CHEMBL940&token=eJtdWrIisOiJt...
-
Success response (application/json)
{ "token": null, "authorized": false, "authorizationMessage": null, "responseCode": "200", "responseMessage": "OK", "errorsFound": [], "data": { "drugId": "CHEMBL940", "drugName": "GABAPENTIN", "molecularType": "Small molecule", "chemicalStructure": "NCC1(CC(=O)O)CCCCC1", "inchiKey": "UGJMXCAKCUNAIE-UHFFFAOYSA-N" } }