/pharma/drugs?name={name}
-
Description
Search by name and retrieve information about a drug.
-
URL (PATH)
/pharma/drugs?name={name}&exact-match={exact-match}&token={token}
-
Method
GET
-
Authentication
Optional (token)
-
Request parameters & Path variables
Parameter Description name
[alphanumeric]
requiredDrug name exact-match
[boolean] true by default
optionalIf true it searches an exact name match, if false it finds all drugs containing the string in the parameter 'name' token
[alphanumeric]
optionalOptional access key to save the current query in your profile -
Example request
https://disnet.ctb.upm.es/api/disnet/pharma/drugs?name=LEVOMILNACIPRAN&exact-match=false&token=eJtdWrIisOiJt...
-
Success response (application/json)
{ "token": null, "authorized": false, "authorizationMessage": null, "responseCode": "200", "responseMessage": "OK", "errorsFound": [], "data": [ { "drugId": "CHEMBL2105732", "drugName": "LEVOMILNACIPRAN HYDROCHLORIDE", "molecularType": "Small molecule", "chemicalStructure": "CCN(CC)C(=O)[C@@]1(c2ccccc2)C[C@H]1CN.Cl", "inchiKey": "XNCDYJFPRPDERF-NQQJLSKUSA-N" }, { "drugId": "CHEMBL99946", "drugName": "LEVOMILNACIPRAN", "molecularType": "Small molecule", "chemicalStructure": "CCN(CC)C(=O)[C@@]1(c2ccccc2)C[C@H]1CN", "inchiKey": "GJJFMKBJSRMPLA-DZGCQCFKSA-N" } ] }