/pharma/drugs

  • Description

    Search by name and retrieve information about a drug

  • URL (PATH)

    /pharma/drugs?name={name}?token=:token&name=:name&exact-match=:exact-match

  • Method

    GET

  • Auth required

    Optional (token)

  • Request parameters
    Parameter Description
    token
    [alphanumeric]
    example: token=eyJhbGciOiJI...
    Optional access key to save the current query inside the user's profile
    name *required
    [alphanumeric]
    LEVOMILNACIPRAN
    Drug name
    exact-match
    [boolean] true by default
    false
    If true it searches an exact name match, if false it finds all drugs containing the string in the parameter 'name'
  • Example request
                                         http://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"
        }
      ]
    }