Introduction
Welcome to the DrugBank API! You can use our API to access DrugBank API endpoints, which can get information on drugs, drug products, and drug interactions in our database.
The DrugBank API is organized around REST. Our API has predictable, resource-oriented URLs, and uses HTTP response codes to indicate API errors. We use built-in HTTP features, like HTTP authentication and HTTP verbs, which are understood by off-the-shelf HTTP clients. JSON is returned by all API responses, including errors, although our API libraries convert responses to appropriate language-specific objects.
You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.
Selecting your country/region
The DrugBank API is optionally scoped by region of availability (currently only U.S., Canada, and E.U. are available). The URL you use to access the API will determine the drugs, products, etc. that are returned.
If a product / drug appears in the results under a region scope, it means it is available in that region. Once a drug is no longer available (if a drug is withdrawn for example), it will no longer appear in the results.
For example, to search for available drug products by name in Canada, you would use the following URL:
https://api.drugbank.com/v1/ca/drug_names?q=abacavir
The following country/codes are available:
Country | Code | Base URL |
---|---|---|
United States | us | https://api.drugbank.com/v1/us |
Canada | ca | https://api.drugbank.com/v1/ca |
European Union | eu | https://api.drugbank.com/v1/eu |
Searching without a region
You can search for all drugs / products by not providing a region scope. This will return all drugs / products that are available in ANY region.
Authentication
To authorize, use this code:
# With cURL, you can just pass the correct header with each request
curl -L 'https://api.drugbank.com/v1/endpoint'
-H 'Authorization: myapikey'
Make sure to replace
myapikey
with your development or production API key.
DrugBank uses API keys to allow access to the API. To request an API key please contact us.
All API requests must be made over HTTPS. Calls made over plain HTTP will fail. API requests without authentication will also fail.
DrugBank expects for the API key to be included in all API requests to the server in a header that looks like the following:
Authorization: myapikey
Production Key
Your production key is the authentication token you receive upon sign up. This key does not have a limit in regards to the amount of calls you can make. Any API calls that exceed your quota (if applicable) will be permitted but counted as overage.
Development Key
A development key is a second API key which, unlike the production key, caps the number of allowed requests at 3000 requests/month.
The request limit is to meant to prevent runwaway programs from making calls that exceed your expected usage during the development process. The development key should be kept secret and only be shared with your developers in order to ensure that if a mistake happens during programming, it can be fixed without affecting the production key.
Token Authentication
To get a token, use this code:
curl -L -X POST 'https://api.drugbank.com/v1/tokens' \
-H 'Content-Type: application/json' \
-H 'Authorization: myapikey' \
-H 'Cache-Control: no-cache' -d '{
"ttl": 12
}'
Example command returns JSON structured like this (results may be abbreviated):
{
"token": "eyJhbGciOiJIUzI1NiJ9.eyJrZXlfaWQiOjk5MiwiZXhwIjoxNjEyNTk5MzE2fQ.HCUPIWoXiaI_dgKt2cG-p94uU8ZNz3Cx03nj8QFgCvA"
}
To authorize a request using an API token, use this code:
curl -L 'https://api.drugbank.com/v1/endpoint'
-H 'Authorization: Bearer mytoken'
To authorize a browser-based request using an API token, use this code:
const xhr = new XMLHttpRequest();
const url = 'https://api-js.drugbank.com/v1/endpoint';
xhr.open('GET', url);
xhr.setRequestHeader('Authorization', 'Bearer mytoken');
xhr.send();
Alternatively you can use tokens to access to the DrugBank APIs. Tokens allow short term access to DrugBank API without exposing your secret API key. They are guaranteed to expire within 24 hours. The use of token authentication is required for accessing DrugBank APIs from browser-based applications.
Token life time
The default expiry of a token is 24 hours after it was created. The life time of a token can be set with the ttl parameter on creation. When set, the ttl is the number of hours the token is valid for, with a maximum of 24 hours.
Web browser-based application API authentication
Web browser-based applications are permitted to access the DrugBank APIs through:
https://api-js.drugbank.com
All API calls, as described in this documentation, are identical – with the exception of the web address and the authentication method. Token based authentication is required to access the web compatible API.
It is recommend that tokens for use in your web browser-based applications are generated from an internal service that you can authenticate your users against. This way your secret key is not exposed and you can control who has access to your DrugBank subscription.
Pagination
curl -L 'https://api.drugbank.com/v1/drugs?page=2'
-H 'Authorization: myapikey' -v
...
< Link: <https://api.drugbank.com/v1/drugs?page=3&per_page=50>; rel="next",https://api.drugbank.com/v1/drugs?page=1&per_page=50>; rel="prev"
< X-Total-Count: 8221
< X-Per-Page: 50
...
Many API endpoints in the DrugBank API support pagination. Furthermore, to ensure quick response times, it is enabled by default for these endpoints.
Query Parameters
Parameter | Default | Description |
---|---|---|
per_page | 50 | Number of results per page. Any value above 50 will be ignored. |
page | 1 |
Response Headers
Header | Description |
---|---|
Link | URLs for the next , and prev pages, in the standard Link header format. |
X-Total-Count | Total number of results available. |
X-Per-Page | Number of results returned per page. |
Errors
The DrugBank API uses conventional HTTP response codes to indicate the success or failure of an API request. In general, codes in the 2xx range indicate success, codes in the 4xx range indicate an error that failed given the information provided (e.g., a required parameter was omitted), and codes in the 5xx range indicate an error with DrugBank servers (these are rare).
The DrugBank API uses the following error codes:
Error Code | Meaning |
---|---|
400 | Bad Request – Your request is invalid |
401 | Unauthorized – Your API key is wrong |
403 | Rate Limit Exceeded – The API is rate limited to 100 requests per second, per client. Try again later. |
404 | Not Found – The specified resource could not be found |
405 | Method Not Allowed – You tried to access a resource with an invalid method |
406 | Not Acceptable – You requested a format that isn’t json |
410 | Gone – The resource requested has been removed from our servers |
500 | Internal Server Error – We had a problem with our server. Try again later. |
503 | Service Unavailable – We’re temporarially offline for maintanance. Please try again later. |
Content Types
Response Body
curl -L 'https://api.drugbank.com/v1/drugs.json'
-H 'Authorization: myapikey'
curl -L 'https://api.drugbank.com/v1/drugs'
-H 'Authorization: myapikey' -H 'Accept: application/json'
In the DrugBank V1 API, response format will default to JSON. At the moment,
this is the only format available. To specify JSON format, you can set the Accept
header to Accept: application/json
. You can also use the .json
file extension
to specify that json encoding is desired.
Request Headers
Header | Description |
---|---|
Accept | Requested MIME type of response. |
Response Headers
Header | Description |
---|---|
Content-Type | MIME type of the response body. |
Request Body
curl -L -X POST "https://api.drugbank.com/v1/ddi" \
-H "Content-Type: application/json" \
-H 'Authorization: myapikey' \
-H "Cache-Control: no-cache" -d '{
"names": [
"advil",
"Reopro",
"Eliquis",
"7-select Advil PM"
]
}'
For API calls which use a POST
request to send data to the DrugBank API
(such as when finding drug-drug interactions by name),
the request must set an appropriate Content-Type
header.
Request Headers
Header | Description |
---|---|
Content-Type | MIME type of request body. |
Drug Names / Autocomplete
This endpoint returns a list of drugs/product information suitable for use with autocomplete forms, for quickly finding the right drugs/products.
Product Name Search
curl -L 'https://api.drugbank.com/v1/drug_names?q=viagra'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"products": [
{
"hits": [
{
"field": "name",
"value": "<em>Viagra</em>"
},
{
"field": "prescribable_name",
"value": "<em>Viagra</em> 50 mg Oral Tablet"
}
],
"name": "Viagra",
"prescribable_name": "Viagra 50 mg Oral Tablet",
"rx_norm_prescribable_name": "sildenafil citrate 50 MG Oral Tablet",
"country": "US",
"ndc_product_codes": [
"00069-4210",
"21695-0157",
"..."
],
"dpd_codes": null,
"ema_product_codes": null,
"ema_ma_numbers": null,
"dosage_form": "Tablet, film coated",
"strength": {
"number": "50",
"unit": "mg/1"
},
"route": "Oral",
"approved": true,
"unapproved": false,
"generic": false,
"otc": false,
"mixture": false,
"allergen": false,
"vaccine": false,
"ingredients": [
{
"drugbank_id": "DB00203",
"name": "Sildenafil",
"cas": "139755-83-2",
"strength": {
"number": "50",
"unit": "mg/1"
}
}
],
"images": [
{
"ndc_id": "54868-4084",
"description": "sildenafil 50 MG Oral Tablet [Viagra]",
"image_url_original": "//s3-us-west-2.amazonaws.com/drugbank/product_images/images/original/54868-408420180907-15195-1bhhsdk.jpg?1536298614",
"image_url_tiny": "//s3-us-west-2.amazonaws.com/drugbank/product_images/images/tiny/54868-408420180907-15195-1bhhsdk.jpg?1536298614",
"image_url_thumb": "//s3-us-west-2.amazonaws.com/drugbank/product_images/images/thumb/54868-408420180907-15195-1bhhsdk.jpg?1536298614",
"image_url_medium": "//s3-us-west-2.amazonaws.com/drugbank/product_images/images/medium/54868-408420180907-15195-1bhhsdk.jpg?1536298614"
}
]
},
{
"hits": [
{
"field": "name",
"value": "<em>Viagra</em>"
},
{
"field": "prescribable_name",
"value": "<em>Viagra</em> 25 mg Oral Tablet"
}
],
"name": "Viagra",
"prescribable_name": "Viagra 25 mg Oral Tablet",
"country": "Canada",
"ndc_product_codes": null,
"dpd_codes": [
"02239766"
],
"ema_product_codes": null,
"ema_ma_numbers": null,
"dosage_form": "Tablet",
"strength": {
"number": "25",
"unit": "mg"
},
"route": "Oral",
"approved": true,
"unapproved": false,
"generic": false,
"otc": false,
"mixture": false,
"allergen": false,
"vaccine": false,
"ingredients": [
{
"drugbank_id": "DB00203",
"name": "Sildenafil",
"cas": "139755-83-2",
"strength": {
"number": "25",
"unit": "mg"
}
}
],
"images": []
},
"..."
]
}
HTTP Request
GET https://api.drugbank.com/v1/us/drug_names
Query Parameters
Parameter | Default | Description |
---|---|---|
q | null | The string you want to search with. |
fuzzy | false | If set to true , enable fuzzy search (see fuzzy searching below). |
include_allergens | false | If set to true , include allergen products in the results. |
include_vaccines | true | If set to true , include vaccine products in the results. |
include_simple_desc | false | If set to true , include simple descriptions for the product ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product ingredients. |
Notice the hits
array returned in the results. The hits
contain highlighted
snippets from the match. You can use these highlights in autocomplete applications.
The matching part of the text is wrapped in an <em>
tag, which you can style
as you wish in your application. Note that the hits
only contain the product name, and thus will
not have a highlighted snippet if the query matches an ingredient not listed in the product name.
Prescribable Name Search
curl -L 'https://api.drugbank.com/v1/drug_names/simple?q=viagra'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"products": [
{
"hits": [
{
"field": "name",
"value": "<em>Viagra</em> 50 mg Oral Tablet"
}
],
"name": "Viagra 50 mg Oral Tablet",
"rx_norm_name": "sildenafil citrate 50 MG Oral Tablet",
"country": "US",
"brands": [
"Viagra"
],
"ndc_product_codes": [
"00069-4210",
"21695-0157",
"..."
],
"dpd_codes": null,
"ema_product_codes": null,
"ema_ma_numbers": null,
"dosage_forms": [
"Tablet, film coated"
],
"strength_number": "50",
"strength_unit": "mg/1",
"dosage_form": [
"Tablet, film coated"
],
"route": "Oral",
"approved": true,
"unapproved": false,
"generic": false,
"otc": false,
"mixture": false,
"allergen": false,
"vaccine": false,
"ingredients": [
{
"drugbank_id": "DB00203",
"name": "Sildenafil",
"cas": "139755-83-2",
"strength_number": "50",
"strength_unit": "mg/1"
}
]
},
{
"hits": [
{
"field": "name",
"value": "<em>Viagra</em> 25 mg Oral Tablet"
}
],
"name": "Viagra 25 mg Oral Tablet",
"country": "Canada",
"brands": [
"Viagra"
],
"ndc_product_codes": null,
"dpd_codes": [
"02239766"
],
"ema_product_codes": null,
"ema_ma_numbers": null,
"dosage_forms": [
"Tablet"
],
"strength_number": "25",
"strength_unit": "mg",
"dosage_form": [
"Tablet"
],
"route": "Oral",
"approved": true,
"unapproved": false,
"generic": false,
"otc": false,
"mixture": false,
"allergen": false,
"vaccine": false,
"ingredients": [
{
"drugbank_id": "DB00203",
"name": "Sildenafil",
"cas": "139755-83-2",
"strength_number": "25",
"strength_unit": "mg"
}
]
},
"..."
]
}
Prescribable name (simple) search uses the concept of a prescribable name, the normalized, most common name used to describe a medication. The results of this search will not contain multiple brand names for a given drug. Instead the prescribable name will be unique for a dosage strength/form and a name. Product codes and brand names will be listed for each matched prescribable name.
This type of search is useful when logging medications a customer/patient may
be taking. You can combine a name and a dosage strength to quickly filter your
search. For example searching for viagra 25 mg
will quickly return the most
likely drug that the individual is taking.
HTTP Request
GET https://api.drugbank.com/v1/us/drug_names/simple
Query Parameters
Parameter | Default | Description |
---|---|---|
q | null | The string you want to search with. |
fuzzy | false | If set to true , enable fuzzy search (see fuzzy searching below). |
include_allergens | false | If set to true , include allergen products in the results. |
include_vaccines | true | If set to true , include vaccine products in the results. |
include_simple_desc | false | If set to true , include simple descriptions for the product ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product ingredients. |
Notice the hits
array returned in the results. The hits
contain highlighted
snippets from the match. You can use these highlights in autocomplete applications.
The matching part of the text is wrapped in an <em>
tag, which you can style
as you wish in your application. Note that the hits
only contain the prescribable name, and thus will not have a highlighted snippet if the query matches an ingredient not listed in the prescribable name.
Fuzzy Searching
This example demonstrates a misspelling of “Advil”, with fuzzy search enabled you will still get a result (try it yourself!).
curl -L 'https://api.drugbank.com/v1/drug_names?q=addvil&fuzzy=true'
-H 'Authorization: myapikey'
Fuzzy searching allows for misspellings, but is not enabled by default,
you must set fuzzy=true
. By setting fuzzy=true
you are telling the API to
allow a certain number of misspellings to still count as a match (defaults to 2).
You can also pass a number of misspellings (0, 1, or 2) in to tailor the
likelihood of a match (for example, fuzzy=1
will allow 1 misspelled letter).
Products
Common Parameters
The following parameters can be applied when retrieving any product.
Query Parameters
Parameter | Default | Description |
---|---|---|
drug_details | false | If true , returns the full details for the drug ingredients, otherwise just the drug name and DrugBank ID are returned. Requires access to the Drugs endpoint to use. Note that if used, the include_simple_desc and include_clinical_desc parameters will be ignored since the descriptions are already included in the drug details. |
include_simple_desc | false | If set to true , include simple descriptions for the product ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product ingredients. |
include_references | false | If true , includes the lists of references for the drug ingredients. Note that you also have to specify drug_details=true to see this data. See References for details. |
Related Products
Related products can be retrieved by appending an endpoint to the url in the following format:
https://api.drugbank.com/v1/us/products/<ID>/related/<type>
For example:
https://api.drugbank.com/v1/us/products/<ID>/related/generics
Type | Description |
---|---|
generics | Returns a list of generic i.e. unbranded versions of the product. |
Get a specific U.S. product
curl -L 'https://api.drugbank.com/v1/us/products/55154-2727?drug_details=true'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"ndc_product_code": "55154-2727",
"originator_ndc_product_code": "55154-2727",
"dpd_id": null,
"ema_product_code": null,
"ema_ma_number": null,
"name": "Viagra",
"prescribable_name": "Viagra 25 mg Oral Tablet",
"rx_norm_prescribable_name": "Viagra 25 MG Oral Tablet",
"started_marketing_on": "1998-03-27",
"ended_marketing_on": "2013-12-31",
"approved_on": null,
"schedule": null,
"dosage_form": "Tablet, film coated",
"route": "Oral",
"application_number": "NDA020895",
"generic": false,
"otc": false,
"approved": true,
"country": "US",
"mixture": false,
"allergenic": false,
"cosmetic": false,
"vaccine": false,
"ingredients": [
{
"drug": {
"drugbank_id": "DB00203",
"name": "Sildenafil",
"cas_number": "139755-83-2",
"annotation_status": "complete",
"availability_by_region": [
{
"region": "ca",
"max_phase": 4,
"marketed_prescription": true,
"generic_available": true,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
{
"region": "eu",
"max_phase": 4,
"marketed_prescription": true,
"generic_available": true,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
"..."
],
"description": "In eliciting its mechanism of action, sildenafil ultimately prevents or minimizes the breakdown of cyclic guanosine monophosphate (cGMP) by inhibiting ...",
"simple_description": "A medication used to treat the inability to get or keep an erection.",
"clinical_description": "A phosphodiesterase inhibitor used for the treatment of erectile dysfunction.",
"synonyms": [
"1-((3-(4,7-Dihydro-1-methyl-7-oxo-3-propyl-1H-pyrazolo(4,3-d)pyrimidin-5-yl)-4-ethoxyphenyl)sulfonyl)-4-methylpiperazine",
"Sildenafil",
"..."
],
"pharmacology": {
"indication_descripton": "Sildenafil is a phosphodiesterase-5 (PDE5) inhibitor that is predominantly employed for two primary indications:\r\n\r\n(1) the treatment of erectile dysfu...",
"pharmacodynamic_description": "In vitro studies have shown that sildenafil is selective for phosphodiesterase-5 (PDE5) [F3850, F3853, F3856, F3859, F3883, F3886, L5611, L5614]...",
"mechanism_of_action_description": "Sildenafil is an oral therapy for erectile dysfunction [A175582, F3853, F3856, F3886, L5611]...",
"absorption": "Sildenafil is known to be quickly absorbed, with maximum plasma concentrations being observed within 30-120 minutes (with a median of 60 minutes) of or...",
"protein_binding": "It is generally observed that sildenafil and its main circulating N-desmethyl metabolite are both estimated to be about 96% bound to plasma proteins [F...",
"volume_of_distribution": [
"The mean steady-state volume of distribution documented for sildenafil is approximately 105 L - a value which suggests the medication undergoes distrib..."
],
"clearance": [
"The total body clearance documented for sildenafil is 41 L/h [F3850, F3853, F3856, F3859, F3883, F3886, L5611, L5614]."
],
"half_life": "The terminal phase half-life observed for sildenafil is approximately 3 to 5 hours [F3850, F3853, F3856, F3859, F3883, F3886, L5611, L5614]. ",
"route_of_elimination": "After either oral or intravenous administration, sildenafil is excreted as metabolites predominantly in the feces (approximately 80% of the administere...",
"toxicity_description": "In single-dose volunteer studies of doses up to 800 mg, adverse reactions were similar to those seen at lower doses, but the incidence rates and severi..."
},
"food_interactions": [
"Take with or without food. If taken with a high-fat meal the medicine may take a little longer to start working."
],
"identifiers": {
"drugbank_id": "DB00203",
"inchi": "InChI=1S/C22H30N6O4S/c1-5-7-17-19-20(27(4)25-17)22(29)24-21(23-19)16-14-15(8-9-18(16)32-6-2)33(30,31)28-12-10-26(3)11-13-28/h8-9,14H,5-7,10-13H2,1-4H3,...",
"inchikey": "BNRNXUUZRGQAQC-UHFFFAOYSA-N",
"atc_codes": [
{
"code": "G01AE10",
"title": "combinations of sulfonamides",
"combination": true
},
{
"code": "G04BE03",
"title": "sildenafil",
"combination": false
}
]
},
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000518",
"name": "Phosphodiesterase 5 Inhibitors",
"mesh_id": "D058986",
"mesh_tree_numbers": [
"D27.505.519.389.735.500"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Inhibitors, PDE-5",
"Inhibitors, PDE5",
"..."
],
"description": "Compounds that specifically inhibit PHOSPHODIESTERASE 5."
},
{
"drugbank_id": "DBCAT000514",
"name": "Sulfonamides",
"mesh_id": "D013449",
"mesh_tree_numbers": [
"D02.065.884",
"D02.886.590.700"
],
"atc_code": "S01AB",
"atc_level": 4,
"synonyms": [
"Mixtures, Sulfonamide",
"Sulfonamide Derivatives",
"..."
],
"description": "A group of compounds that contain the structure SO2NH2."
},
"..."
]
},
"strength": {
"number": "25",
"unit": "mg/1"
}
}
],
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000514",
"name": "Sulfonamides",
"mesh_id": "D013449",
"mesh_tree_numbers": [
"D02.065.884",
"D02.886.590.700"
],
"atc_code": "S01AB",
"atc_level": 4,
"synonyms": [
"Mixtures, Sulfonamide",
"Sulfonamide Derivatives",
"..."
],
"description": "A group of compounds that contain the structure SO2NH2."
},
{
"drugbank_id": "DBCAT000515",
"name": "Sulfones",
"mesh_id": "D013450",
"mesh_tree_numbers": [
"D02.886.590"
],
"atc_code": null,
"atc_level": null,
"synonyms": [],
"description": null
},
"..."
],
"labeller": {
"name": "Cardinal Health"
},
"images": [
{
"description": "sildenafil 25 MG Oral Tablet [Viagra]",
"image_url_original": "//s3-us-west-2.amazonaws.com/drugbank/product_images/images/original/00069-4200-30_NLMIMAGE10_601DB05D.jpg?1498436488",
"image_url_tiny": "//s3-us-west-2.amazonaws.com/drugbank/product_images/images/tiny/00069-4200-30_NLMIMAGE10_601DB05D.jpg?1498436488",
"image_url_thumb": "//s3-us-west-2.amazonaws.com/drugbank/product_images/images/thumb/00069-4200-30_NLMIMAGE10_601DB05D.jpg?1498436488",
"image_url_medium": "//s3-us-west-2.amazonaws.com/drugbank/product_images/images/medium/00069-4200-30_NLMIMAGE10_601DB05D.jpg?1498436488"
}
]
}
This endpoint retrieves a specific drug product based on NDC ID.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<NDC_ID>
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID of the product to retrieve. |
Query Parameters
See Common Parameters.
Get a specific Canadian product
curl -L 'https://api.drugbank.com/v1/ca/products/02474263'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"ndc_product_code": null,
"originator_ndc_product_code": null,
"dpd_id": "02474263",
"ema_product_code": null,
"ema_ma_number": null,
"name": "Humira",
"prescribable_name": "Adalimumab 20 mg Injection [Humira]",
"started_marketing_on": "2020-08-18",
"ended_marketing_on": null,
"approved_on": "2018-03-26",
"schedule": "Prescription; Schedule D",
"dosage_form": "Solution",
"route": "Subcutaneous",
"application_number": null,
"generic": false,
"otc": false,
"approved": true,
"country": "Canada",
"mixture": false,
"allergenic": false,
"cosmetic": false,
"vaccine": false,
"ingredients": [
{
"name": "Adalimumab",
"drugbank_id": "DB00051",
"strength": {
"number": "20",
"unit": "mg"
}
}
],
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000015",
"name": "Antibodies, Monoclonal",
"mesh_id": "D000911",
"mesh_tree_numbers": [
"D12.776.124.486.485.114.224",
"D12.776.124.790.651.114.224",
"..."
],
"atc_code": "L01XC",
"atc_level": 4,
"synonyms": [
"Monoclonal Antibodies"
],
"description": "Antibodies produced by a single clone of cells."
},
{
"drugbank_id": "DBCAT000017",
"name": "Immunoglobulins",
"mesh_id": "D007136",
"mesh_tree_numbers": [
"D12.776.124.486.485",
"D12.776.124.790.651",
"..."
],
"atc_code": "J06B",
"atc_level": 3,
"synonyms": [
"Globulins, Immune",
"Immune Globulins",
"..."
],
"description": "Multi-subunit proteins which function in IMMUNITY..."
},
"..."
],
"labeller": {
"name": "Abbvie"
}
}
This endpoint retrieves a specific drug product based on DPD ID (Drug Product ID, a.k.a. DIN).
HTTP Request
GET https://api.drugbank.com/v1/ca/products/<DPD_ID>
URL Parameters
Parameter | Description |
---|---|
ID | The DPD ID of the product to retrieve. (Note: The DPD ID is also known as the DIN.) |
Query Parameters
See Common Parameters.
Get a list of E.U. products by product code
curl -L 'https://api.drugbank.com/v1/eu/products/EMEA/H/C/000287'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"ndc_product_code": null,
"originator_ndc_product_code": null,
"dpd_id": null,
"ema_product_code": "EMEA/H/C/000287",
"ema_ma_number": "EU/1/99/125/001",
"name": "Zyprexa Velotab",
"prescribable_name": "Zyprexa 5 mg Disintegrating Oral Tablet",
"started_marketing_on": "2016-09-08",
"ended_marketing_on": null,
"approved_on": null,
"schedule": null,
"dosage_form": "Tablet, orally disintegrating",
"route": "Oral",
"application_number": null,
"generic": false,
"otc": false,
"approved": true,
"country": "EU",
"mixture": false,
"allergenic": false,
"cosmetic": false,
"vaccine": false,
"ingredients": [
{
"name": "Olanzapine",
"drugbank_id": "DB00334",
"strength": {
"number": "5",
"unit": "mg"
}
}
],
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000048",
"name": "Gastrointestinal Agents",
"mesh_id": "D005765",
"mesh_tree_numbers": [
"D27.505.954.483"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Agents, Gastric",
"Agents, Gastrointestinal",
"..."
],
"description": "Drugs used for their effects on the gastrointestinal system, as to control gastric acidity, regulate gastrointestinal motility and water flow, and impr..."
},
{
"drugbank_id": "DBCAT000345",
"name": "Antidepressive Agents",
"mesh_id": "D000928",
"mesh_tree_numbers": [
"D27.505.954.427.700.122"
],
"atc_code": "N06A",
"atc_level": 3,
"synonyms": [
"Agents, Antidepressive",
"Antidepressant Drugs",
"..."
],
"description": "Mood-stimulating drugs used primarily in the treatment of affective disorders and related conditions..."
},
"..."
],
"labeller": {
"name": "Eli Lilly Nederland B.V."
}
}
]
This endpoint retrieves a list of drug products based on EMA Product ID (European Medicines Agency ID). These products will have mostly the same information, although route, form and strengths may vary.
HTTP Request
GET https://api.drugbank.com/v1/eu/products/<EMA_ID>
URL Parameters
Parameter | Description |
---|---|
ID | The EMA ID of the product to retrieve. |
Query Parameters
See Common Parameters.
Get a specific E.U. product by marketing authorisation number
curl -L 'https://api.drugbank.com/v1/eu/products/EU/1/01/174/018'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"ndc_product_code": null,
"originator_ndc_product_code": null,
"dpd_id": null,
"ema_product_code": "EMEA/H/C/000335",
"ema_ma_number": "EU/1/01/174/018",
"name": "Starlix",
"prescribable_name": "Starlix 180 mg Oral Tablet",
"started_marketing_on": "2016-09-08",
"ended_marketing_on": null,
"approved_on": null,
"schedule": null,
"dosage_form": "Tablet, film coated",
"route": "Oral",
"application_number": null,
"generic": false,
"otc": false,
"approved": true,
"country": "EU",
"mixture": false,
"allergenic": false,
"cosmetic": false,
"vaccine": false,
"ingredients": [
{
"name": "Nateglinide",
"drugbank_id": "DB00731",
"strength": {
"number": "180",
"unit": "mg"
}
}
],
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000243",
"name": "Amino Acids",
"mesh_id": "D000596",
"mesh_tree_numbers": [
"D12.125"
],
"atc_code": "B05XB",
"atc_level": 4,
"synonyms": [
"Acids, Amino"
],
"description": "Organic compounds that generally contain an amino (-NH2) and a carboxyl (-COOH) group..."
},
{
"drugbank_id": "DBCAT000262",
"name": "Amino Acids, Aromatic",
"mesh_id": "D024322",
"mesh_tree_numbers": [
"D12.125.072.050"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Amino Acid, Aromatic",
"Aromatic Amino Acid",
"..."
],
"description": "Amino acids containing an aromatic side chain."
},
"..."
],
"labeller": {
"name": "Novartis Europharm Limited"
}
}
This endpoint retrieves a specific drug product based on EMA MA Number (European Medicines Agency Marketing Authorisation number).
HTTP Request
GET https://api.drugbank.com/v1/eu/products/<EMA_MA_NUMBER>
URL Parameters
Parameter | Description |
---|---|
EMA_MA_NUMBER | The EMA MA Number of the product to retrieve. |
Query Parameters
See Common Parameters.
Get categories for a product
curl -L 'https://api.drugbank.com/v1/us/products/55154-2727/categories'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": "DBCAT003935",
"name": "Agents Causing Muscle Toxicity",
"mesh_id": null,
"mesh_tree_numbers": [],
"atc_code": null,
"atc_level": null,
"categorization_kind": "indexing",
"synonyms": [
"Agents causing myopathy",
"Agents causing rhabdomyolysis",
"..."
],
"description": "Agents that cause muscle disorders including significant elevations of serum creatine kinase (CK), myopathy, myalgia, myositis, and rhabdomyolysis."
}
]
Returns an array of categories for a product, based on NDC ID, DPD ID, EMA Product ID, or EMA MA Number, depending on the region.
The category type atc
or mesh
can be appended on to the end of the url to specify which hierarchy to retrieve the categories from. If left blank, DrugBank categories will be returned.
This endpoint supports pagination.
See Common Category Query Parameter Values for query parameters that affect the results of this request.
Shows all products for the drug regardless of the value of source
, but parent/child relationships will be limited based on source
.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/categories/<hierarchy (optional)>
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID/DPD ID/EMA Product ID/EMA MA Number of the product to retrieve the categories. |
Query Parameters
Parameter | Default | Description |
---|---|---|
categorization_kind | The categorization kind to filter by (optional). |
Get product concepts linked with a product
curl -L 'https://api.drugbank.com/v1/us/products/55154-2727/product_concepts'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Sildenafil",
"display_name": null,
"drugbank_pcid": "DBPC0007087",
"brand": null,
"level": 1,
"route": null,
"form": null,
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1998-03-27",
"regions": {
"us": true,
"canada": true,
"eu": true
},
"rxnorm_concepts": [
{
"name": "sildenafil",
"RXCUI": "136411"
}
],
"ingredients": [
{
"name": "Sildenafil",
"drug": {
"name": "Sildenafil",
"drugbank_id": "DB00203"
}
}
]
}
]
This endpoint retrieves a list of product concepts linked to a product, based on NDC ID, DPD ID, EMA Product ID, or EMA MA Number, depending on the region. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/product_concepts
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID/DPD ID/EMA Product ID/EMA MA Number of the product to retrieve the linked product concepts. |
Query Parameters
Parameter | Default | Description |
---|---|---|
level | The product concept level to filter by (optional). | |
min_level | The minimum product concept level to return (optional). | |
min_level | The maximum product concept level to return (optional). | |
unbranded_only | false | If true , returns only product concepts without an associated brand. |
Get indications linked with a product
curl -L 'https://api.drugbank.com/v1/us/products/55154-2727/indications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"kind": "management_of",
"off_label": false,
"otc_use": false,
"adjunct_use": false,
"drug": {
"name": "Sildenafil",
"drugbank_id": "DB00203"
},
"regions": "US",
"condition": {
"name": "Erectile Dysfunction",
"drugbank_id": "DBCOND0029956",
"meddra_id": "llt/10025503",
"snomed_id": "c/268762007",
"icd10_id": "c/F52.21"
}
}
]
This endpoint retrieves a list of indications linked to a product, based on NDC ID, DPD ID, EMA Product ID, or EMA MA Number, depending on the region. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/indications
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID/DPD ID/EMA Product ID/EMA MA Number of the product to retrieve the linked indications. |
Query Parameters
Parameter | Default | Description |
---|---|---|
off_label | null | Limits results by the value of the off_label attribute of the indications. |
otc_use | null | Limits results by the value of the otc_use attribute of the indications. |
adjunct_use | null | Limits results by the value of the adjunct_use attribute of the indications. |
kind | null | Limits results by the value of the kind attribute of the indications. |
Get product concepts with similar indications
curl -L 'https://api.drugbank.com/v1/us/products/55154-2727/product_concepts/similar_indications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"similar_indications": [
{
"product_concept": {
"name": "Treprostinil Injection, solution",
"display_name": null,
"drugbank_pcid": "DBPC0107256",
"brand": null,
"level": 2,
"route": null,
"form": "Injection, solution",
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2002-05-22",
"regions": {
"us": true,
"canada": false,
"eu": true
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Treprostinil",
"drug": {
"name": "Treprostinil",
"drugbank_id": "DB00374"
}
}
]
},
"from": {
"concept": {
"title": "symptomatic pulmonary arterial hypertension (PAH)",
"drugbank_id": "DBCOND0102918"
},
"indication": {
"kind": "treatment_of",
"off_label": false,
"otc_use": false,
"route": [
"Intravenous",
"Oral"
],
"dose_form": [
"Injection",
"Suspension",
"..."
],
"dose_strength": [],
"drug": {
"name": "Sildenafil",
"drugbank_id": "DB00203"
},
"regions": "US",
"condition": {
"name": "Pulmonary Arterial Hypertension (PAH)",
"drugbank_id": "DBCOND0039281",
"meddra_id": "llt/10064911",
"snomed_id": "c/11399002",
"icd10_id": "c/I27.0",
"modification_of": {
"base": {
"name": "Pulmonary Arterial Hypertension (PAH)",
"drugbank_id": "DBCOND0039281",
"meddra_id": "llt/10064911",
"snomed_id": "c/11399002",
"icd10_id": "c/I27.0"
},
"severity": {
"includes": [
"symptomatic"
],
"excludes": []
}
}
}
}
},
"to": {
"concept": {
"title": "symptomatic pulmonary arterial hypertension (PAH)",
"drugbank_id": "DBCOND0102918"
},
"indication": {
"kind": "treatment_of",
"off_label": false,
"otc_use": false,
"route": [
"Intravenous",
"Subcutaneous"
],
"dose_form": [
"Solution"
],
"dose_strength": [],
"drug": {
"name": "Treprostinil",
"drugbank_id": "DB00374"
},
"regions": "Canada",
"condition": {
"name": "Pulmonary Arterial Hypertension (PAH)",
"drugbank_id": "DBCOND0039281",
"meddra_id": "llt/10064911",
"snomed_id": "c/11399002",
"icd10_id": "c/I27.0",
"modification_of": {
"base": {
"name": "Pulmonary Arterial Hypertension (PAH)",
"drugbank_id": "DBCOND0039281",
"meddra_id": "llt/10064911",
"snomed_id": "c/11399002",
"icd10_id": "c/I27.0"
},
"severity": {
"includes": [
"symptomatic"
],
"excludes": []
}
}
},
"condition_associated_with": [
{
"name": "NYHA class IV",
"drugbank_id": "DBCOND0025254"
},
{
"name": "Refractory to conventional therapy",
"drugbank_id": "DBCOND0024014"
}
]
}
}
},
{
"product_concept": {
"name": "Tadalafil",
"drugbank_pcid": "DBPC0048152",
"level": 1,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2002-11-12",
"regions": {
"us": true,
"canada": true,
"eu": true
},
"rxnorm_concepts": [
{
"name": "tadalafil",
"RXCUI": "358263"
}
],
"ingredients": [
{
"name": "Tadalafil",
"drug": {
"name": "Tadalafil",
"drugbank_id": "DB00820"
}
}
]
},
"from": {
"concept": {
"title": "Erectile Dysfunction",
"drugbank_id": "DBCOND0029956"
},
"indication": {
"kind": "management_of",
"off_label": false,
"otc_use": false,
"drug": {
"name": "Sildenafil",
"drugbank_id": "DB00203"
},
"regions": "US",
"condition": {
"name": "Erectile Dysfunction",
"drugbank_id": "DBCOND0029956",
"meddra_id": "llt/10025503",
"snomed_id": "c/268762007",
"icd10_id": "c/F52.21"
}
}
},
"to": {
"concept": {
"title": "Erectile Dysfunction",
"drugbank_id": "DBCOND0029956"
},
"indication": {
"kind": "management_of",
"off_label": false,
"otc_use": false,
"drug": {
"name": "Tadalafil",
"drugbank_id": "DB00820"
},
"regions": "US",
"condition": {
"name": "Erectile Dysfunction",
"drugbank_id": "DBCOND0029956",
"meddra_id": "llt/10025503",
"snomed_id": "c/268762007",
"icd10_id": "c/F52.21"
}
}
}
},
"..."
]
}
This endpoint retrieves a list of product concepts which have indications similar to the indications of the provided product.
The results are returned as a JSON object with a “similar_indications” property containing an array of objects representing similar product concepts. Each object in this array has three properties: product_concept (the similar product_concept), from, and to.
From and to describe the relationship between the input product concept and the similar product concept. From and to both contain the same two properties:
- concept, a condition object, and
- indication, an indication object.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/product_concepts/similar_indications
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept for which to retrieve product concepts with similar indications |
Get drug-drug interactions for a product
curl -L 'https://api.drugbank.com/v1/us/products/55154-2727/ddi?severity=moderate&available_only=true'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"product_ingredient": {
"drugbank_id": "DB00203",
"name": "Sildenafil"
},
"affected_product_ingredient": {
"drugbank_id": "DB01281",
"name": "Abatacept"
},
"description": "The metabolism of Sildenafil can be increased when combined with Abatacept.",
"extended_description": "The formation of CYP450 enzymes is inhibited by the presence of increased levels of cytokines during chronic inflammation...",
"action": "increase_dynamics",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_1",
"management": "When treatment with agents that reduce cytokine levels is initiated or discontinued, monitor for reduced efficacy of drugs that are CYP3A5 substrates a..."
}
]
This endpoint retrieves a list of drug-drug interactions linked to a product, based on NDC ID, DPD ID, EMA Product ID, or EMA MA Number, depending on the region. The product_ingredient refers to the interacting ingredient in the specified product, while the affected_product_ingredient is the drug it interacts with. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/ddi
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID/DPD ID/EMA Product ID/EMA MA Number of the product to retrieve the linked interactions. |
Query Parameters
Parameter | Default | Description |
---|---|---|
severity | null | Limits results by the severity of the interactions. May be major, moderate, or minor. |
evidence_level | null | Limits results by the evidence level of the interactions. May be level_1 or level_2. |
available_only | false | If true , only includes interactions with currently available drugs. If a region is specified, the drugs must also be available in that region. |
include_references | false | If true , includes the references for each interaction. See References for details on the format. |
Get adverse effects linked with a product
curl -L 'https://api.drugbank.com/v1/us/products/55154-2727/adverse_effects'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Sildenafil",
"drugbank_id": "DB00203"
},
"evidence_type": [
"clinical_trial"
],
"regions": "US",
"age_groups": [
"adult"
],
"incidences": [
{
"kind": "experimental",
"percent": "16-46%"
},
{
"kind": "placebo",
"percent": "4-39%"
}
],
"effect": {
"name": "Headache",
"drugbank_id": "DBCOND0017979",
"meddra_id": "hlt/10019233",
"snomed_id": "c/206946005",
"icd10_id": "c/R51"
}
}
]
This endpoint retrieves a list of adverse effects linked to a product, based on NDC ID, DPD ID, EMA Product ID, or EMA MA Number, depending on the region. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/adverse_effects
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID/DPD ID/EMA Product ID/EMA MA Number of the product to retrieve the linked adverse effects. |
Get contraindications linked with a product
curl -L 'https://api.drugbank.com/v1/us/products/16590-0022/contraindications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"route": [],
"dose_form": [],
"hypersensitivity": [
"true"
],
"lab_values": [],
"recommended_actions": [],
"regions": "US"
}
]
This endpoint retrieves a list of contraindications linked to a product, based on NDC ID, DPD ID, EMA Product ID, or EMA MA Number, depending on the region. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/contraindications
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID/DPD ID/EMA Product ID/EMA MA Number of the product to retrieve the linked contraindications. |
Get boxed warnings linked with a product
curl -L 'https://api.drugbank.com/v1/us/products/16590-0022/boxed_warnings'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"kind": "warning",
"recommendation": "Do not exceed recommended daily maximum limits",
"lab_values": [],
"route": [],
"dose_form": [],
"risk": {
"name": "Liver Failure",
"drugbank_id": "DBCOND0031848",
"meddra_id": "pt/10019663",
"snomed_id": "c/235883002",
"icd10_id": "c/K72.9"
}
}
]
This endpoint retrieves a list of boxed warnings (Black Box warnings) linked to a product, based on NDC ID, DPD ID, EMA Product ID, or EMA MA Number, depending on the region. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/boxed_warnings
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID/DPD ID/EMA Product ID/EMA MA Number of the product to retrieve the linked boxed_warnings. |
Get packages for a product
curl -L 'https://api.drugbank.com/v1/us/products/63304-803/packages'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"package_ndc_code": "63304-0803-30",
"originator_package_ndc_code": "63304-803-30",
"description": "30 TABLET IN 1 BOTTLE",
"full_description": "30 TABLET IN 1 BOTTLE",
"amount": "30",
"unit": "1",
"form": "BOTTLE"
},
{
"package_ndc_code": "63304-0803-05",
"originator_package_ndc_code": "63304-803-05",
"description": "500 TABLET IN 1 BOTTLE",
"full_description": "500 TABLET IN 1 BOTTLE",
"amount": "500",
"unit": "1",
"form": "BOTTLE"
}
]
This endpoint retrieves a list of top level packages for a product, based on NDC ID code. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/packages
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID of the product to retrieve the packages. |
Get allergy details linked with a product
curl -L 'https://api.drugbank.com/v1/us/products/57841-1150/allergy_details'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"ingredient": {
"drugbank_id": "DB00615",
"name": "Rifabutin"
},
"details": [
{
"summary": "Hypersensitivity to Rifamycins can present as: Cutaneous Manifestations of Drug Allergy, drug-induced lupus erythematosus, Allergic Glomerulonephritis,...",
"info": "Rifamycins are members of the ansamycin antibiotic family with an ansa poly-hydroxylated bridge connecting both ends of a naphthoquinone core, and are ...",
"evidence_type": [
"clinical_trial",
"post_marketing",
"..."
],
"hypersensitivity_types": [
"Type I",
"Type II",
"..."
],
"presentations": [
"Acute Generalized Exanthematous Pustulosis",
"Acute Interstitial Nephritis",
"..."
]
}
]
}
]
This endpoint retrieves allergy information linked to ingredients in a product.
Ingredients with no associated allergy details will not show up. Allergy details for each ingredient will show up as a list.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/allergy_details
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID of the product to retrieve the allergy details. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_presentation_details | false | If set to true , include details of each presentation. |
include_source_details | false | If set to true , include source_name and source_type for this allergy detail (useful when there are multiple allergy details). |
include_references | false | If true , includes the lists of references for allergy information. See References for details. |
Get cross-sensitivities linked with a product
curl -L 'https://api.drugbank.com/v1/us/products/57841-1150/cross_sensitivities'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"ingredient": {
"name": "Rifabutin",
"drugbank_id": "DB00615"
},
"summary": "As a Rifamycin, Rifabutin is known to be cross-sensitive with Rifamycins",
"description": "One _in vitro_ study was performed to determine cross-sensitivity in a patient who was hypersensitive to rifamycin SV and rifaximin...",
"incidence": "Rare",
"evidence_type": [
"case_reports"
],
"cross_sensitive_drugs": [
{
"name": "Rifampicin",
"drugbank_id": "DB01045"
},
{
"name": "Rifamycin",
"drugbank_id": "DB11753"
},
"..."
]
}
]
This endpoint retrieves cross-sensitivity information linked to ingredients in a product.
Ingredients with no associated cross-sensitivities will not show up. Cross-sensitivities for each ingredient will show up as a list.
HTTP Request
GET https://api.drugbank.com/v1/us/products/<ID>/cross_sensitivities
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID of the product to retrieve the cross-sensitivities. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_references | false | If true , includes the lists of references for cross-sensitivity information. See References for details. |
Product Concepts
About Product Concepts
DrugBank ID | Title | Level | Ingredients? | Exact Ingredients? | Strength? | Route? | Form? | Brand? |
---|---|---|---|---|---|---|---|---|
DBPC0017857 | Tamoxifen | 1 | yes | no | no | no | no | no |
DBPC0017859 | Tamoxifen 10 mg | 2 | yes | no | yes | no | no | no |
DBPC0017861 | Tamoxifen Oral | 2 | yes | no | no | yes | no | no |
DBPC0103411 | Tamoxifen Tablet | 2 | yes | no | no | no | yes | no |
DBPC0017858 | Tamoxifen citrate | 2 | yes | yes | no | no | no | no |
DBPC0017863 | Tamoxifen 10 mg Oral | 3 | yes | no | yes | yes | no | no |
DBPC0104223 | Tamoxifen 10 mg Tablet | 3 | yes | no | yes | no | yes | no |
DBPC0103415 | Tamoxifen Oral Tablet | 3 | yes | no | no | yes | yes | no |
DBPC0017860 | Tamoxifen citrate 10 mg | 3 | yes | yes | yes | no | no | no |
DBPC0017862 | Tamoxifen citrate Oral | 3 | yes | yes | no | yes | no | no |
DBPC0103412 | Tamoxifen citrate Tablet | 3 | yes | yes | no | no | yes | no |
DBPC0104225 | Tamoxifen 10 mg Oral Tablet | 4 | yes | no | yes | yes | yes | no |
DBPC0017864 | Tamoxifen citrate 10 mg Oral | 4 | yes | yes | yes | yes | no | no |
DBPC0104224 | Tamoxifen citrate 10 mg Tablet | 4 | yes | yes | yes | no | yes | no |
DBPC0103416 | Tamoxifen citrate Oral Tablet | 4 | yes | yes | no | yes | yes | no |
DBPC0104226 | Tamoxifen citrate 10 mg Oral Tablet | 5 | yes | yes | yes | yes | yes | no |
Product concepts enable you to flexibly represent and query drug products. With them, you can:
- use a stable vocabulary which abstracts over many equivalent or similar products
- easily navigate between related products, at varying and specifiable levels of similarity
- filter products at increasing levels of detail by taking advantage of the hierarchy of product concepts
The basis of product concepts is their many-to-many relationship to products. Each product has many product concepts, each of which match that product in a specific way. Each product concept can be shared between multiple products - if the products are similar enough. Each product concept describes a specific subset of the properties of the products it is matched to. The connection between product and product concept is derived directly from the properties that make up the two objects.
For instance, the US product with the NDC product code 51862-449
has 16 product concepts. These are listed in the table to the right. In this case, the product is not branded, so there are no product concepts with a brand. Each product concept offers a view into the product.
The value of the level
property indicates how many fields are set in the product concept. The most general product concept, DBPC0017857 Tamoxifen
will be shared between all products which contain Tamoxifen as their sole active ingredient. As the level increases, the product concept becomes more specific, and generally, it will match fewer products. Product concepts are derived from products, so there is a direct correspondance between the properties of the product concept and the properties of the products it is mapped to.
Product concepts can therefore be used as both a filtered version of a specific product (eg. specifying the ingredients and route, but not the form or strength), or as a search filter which can find all products matching a given criteria.
Finally, product concepts are connected in a tree structure. Each level 5 concept is a child of one or more level 4 concepts, which is a child of one or more level 3 concepts, and so on. A child concept adds one single field to its parent concepts. For instance, the level 4 DBPC0103416 Tamoxifen citrate Oral Tablet
is a child of the level 3 concept DBPC0103412 Tamoxifen citrate Oral
- it adds the form Tablet
. It is also a child of the level 3 concept DBPC0103412 Tamoxifen citrate Tablet
- to this parent it adds the route Oral
.
Errors
The product concept API revolves around product concept objects. Thefore there are common error messages which may be returned from any of the product concept APIs, depending on the state of the product concept involved.
- API returns status code 404 if the product concept does not exist
- API returns status code 410 if the product concept has been revoked
Data Types
The product concepts API uses the following data types:
Product Concepts
{
"name": "Lopinavir 100 mg / Ritonavir 25 mg Oral Tablet, film coated [Kaletra]",
"display_name": "Kaletra 100 mg, 25 mg Oral Tablet, film coated",
"drugbank_pcid": "DBPC0198939",
"brand": "Kaletra",
"level": 5,
"route": "Oral",
"form": "Tablet, film coated",
"strengths": "100 mg, 25 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2006-12-21",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [
{
"name": "lopinavir 100 MG / Ritonavir 25 MG Oral Tablet [Kaletra]",
"RXCUI": "847745"
}
],
"ingredients": [
{
"name": "Lopinavir",
"drug": {
"name": "Lopinavir",
"drugbank_id": "DB01601"
},
"strength": {
"amount": "100.0",
"per": "1.0",
"units": "mg"
}
},
{
"name": "Ritonavir",
"drug": {
"name": "Ritonavir",
"drugbank_id": "DB00503"
},
"strength": {
"amount": "25.0",
"per": "1.0",
"units": "mg"
}
}
]
}
Property | Type | Description |
---|---|---|
drugbank_pcid | string | DrugBank id for the product concept. |
name | string | The name of this product concept. Name describes all key characteristics. |
display_name | string | An optional, more compact name, based on the brand name. |
level | int | Level of the product concept in the hierarchy. 0 = root. |
standing | string | Indicates the level of connection this product concept has to products. |
standing_updated_at | date | Indicates the date of the last update to the standing of the product concept |
standing_active_since | date | Indicates the date that the standing became “active” |
regions | object | Indicates the availability of this product concept the regions “us”, “canada”, and “eu” |
brand | string | |
form | string | |
route | string | |
strengths | string | A string representing the strengths of the ingredients |
rxnorm_concepts | array of objects | An array of objects with name and RXCUI properties, indicating equivalent RxNorm concepts. |
ingredients | array of objects | The ingredients in the product concept. |
Standings
The standing property can have the following values:
- active
- inactive
- archived
Product Concept Ingredients
{
"name": "Lopinavir",
"drug": {
"name": "Lopinavir",
"drugbank_id": "DB01601"
},
"strength": {
"amount": "100.0",
"per": "1.0",
"units": "mg"
}
}
Property | Type | Description |
---|---|---|
drug | object | The drug being represented as an ingredient. Includes name and drugbank_id properties. |
salt | object | The salt being represented as an ingredient. Includes name and drugbank_id properties. |
amount | string | |
per | string | |
units | string |
Product Concepts Search
curl -L 'https://api.drugbank.com/v1/product_concepts?q=acetamino&hit_details=true'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"hits": [
{
"value": "<em>Acetamino</em>phen"
}
],
"detailed_hits": [
{
"field": "title",
"matches": [
"<em>Acetamino</em>phen"
],
"match_highlight_name": "<em>Acetamino</em>phen"
},
{
"field": "ingredients",
"matches": {
"DB00316": [
"<em>Acetamino</em>phen"
]
},
"match_highlight_name": "<em>Acetamino</em>phen"
},
"..."
],
"name": "Acetaminophen",
"display_name": null,
"drugbank_pcid": "DBPC0180857",
"brand": null,
"level": 1,
"route": null,
"form": null,
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1950-01-01",
"regions": {
"us": true,
"canada": true,
"eu": false
},
"rxnorm_concepts": [
{
"name": "acetaminophen",
"RXCUI": "161"
}
],
"ingredients": [
{
"name": "Acetaminophen",
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
}
}
]
}
]
Product concept search allows you to quickly search product concepts. Like the most of the DrugBank API, the returned concepts can be filtered by region using a prefixed url like /v1/us/product_concepts
.
By default, the search returns only top-level product concepts - concepts without route, form or strength information. Lower level concepts can be found using the level
, min_level
, and max_level
parameters.
Search is performed by passing in a full-text search parameter q
. The search results are suitable for search-as-you-type. The query parameter is used to search brand names, ingredient names and synonyms as well as ingredient names and synonyms. When query_type=advanced
is used, basic boolean operations are possible in the string. Alternatively, query_type=exact
can be used to return only concepts that contain exact matches to the query string.
Each result includes a hits
array, which lists the best matched descriptors (brand, ingredient, and/or product names and synonyms) for that concept. These are useful for facilitating search-as-you-type queries. Adding the hit_details=true
parameter will also return a detailed_hits
array that gives further information on how the matches were obtained.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts?q=<search_term>
Query Parameters
Parameter | Default | Description |
---|---|---|
q | The text-search query string. | |
query_type | simple | If set to advanced , allows basic boolean operations in the query parameter q . If set to exact , only returns product concepts containing an exact match to the query string q . |
hit_details | false | If set to true , returns additional information on matched brands/ingredients/products for the concept. |
level | The product concept level to filter by (optional). | |
min_level | The minimum product concept level to return (optional). | |
max_level | The maximum product concept level to return (optional). | |
unbranded_only | false | If true , returns only product concepts without an associated brand. |
always_ingredients | true | If true , only returns product concepts with ingredients. Set to false to return all product concepts. |
include_allergens | false | Include allergen product concepts in the results. |
include_vaccines | true | Include vaccine product concepts in the results. |
withdrawn | false | If set to include , includes product concepts for which all products have been withdrawn. If set to true , includes only product concepts for which all products have been withdrawn. If set to false , includes only product concepts with at least one non-withdrawn product. |
include_simple_desc | false | If set to true , include simple descriptions for the product concept ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product concept ingredients. |
Example Queries
Query | Type | Description |
---|---|---|
lido | simple | Product concepts which contain “lido” in the search terms (eg: “Lidocaine”). |
abac -sulf | advanced | Product concepts which contain “abac” but not “sulf” (eg: “Abacavir” but not “Abacavir Sulfate”). |
abac -sulf | simple | Product concepts which contain “abac” and “-sulf” (“Abacavir-sulfate”). |
abac lam | simple | Product concepts which contain both “abac” and “lam” (eg: “Abacavir / Lamivudine”). |
View Product Concept
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0001930'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"name": "Pantoprazole sodium 20 mg Oral",
"display_name": null,
"drugbank_pcid": "DBPC0001930",
"brand": null,
"level": 4,
"route": "Oral",
"form": null,
"strengths": "20 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2000-05-01",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Pantoprazole as Pantoprazole sodium",
"drug": {
"name": "Pantoprazole",
"drugbank_id": "DB00213"
},
"exact_ingredient": {
"name": "Pantoprazole sodium",
"drugbank_id": "DBSALT000386"
},
"strength": {
"amount": "20.0",
"per": "1.0",
"units": "mg"
}
}
]
}
This endpoint retrieves a specific product concept based on ID (DrugBank Product Concept ID).
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_simple_desc | false | If set to true , include simple descriptions for the product concept ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product concept ingredients. |
View Product Concept Products
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0001930/products'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"ndc_product_code": "55111-0332",
"originator_ndc_product_code": "55111-332",
"dpd_id": null,
"ema_product_code": null,
"ema_ma_number": null,
"name": "Pantoprazole",
"prescribable_name": "Pantoprazole sodium 20 mg Delayed Release Oral Tablet",
"rx_norm_prescribable_name": "pantoprazole sodium 20 MG Delayed Release Oral Tablet",
"started_marketing_on": "2011-01-19",
"ended_marketing_on": null,
"approved_on": null,
"schedule": null,
"dosage_form": "Tablet, delayed release",
"route": "Oral",
"application_number": "ANDA077619",
"generic": true,
"otc": false,
"approved": true,
"country": "US",
"mixture": false,
"allergenic": false,
"cosmetic": false,
"vaccine": false,
"ingredients": [
{
"name": "Pantoprazole",
"drugbank_id": "DB00213",
"strength": {
"number": "20",
"unit": "mg/1"
}
}
],
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000048",
"name": "Gastrointestinal Agents",
"mesh_id": "D005765",
"mesh_tree_numbers": [
"D27.505.954.483"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Agents, Gastric",
"Agents, Gastrointestinal",
"..."
],
"description": "Drugs used for their effects on the gastrointestinal system, as to control gastric acidity, regulate gastrointestinal motility and water flow, and impr..."
},
{
"drugbank_id": "DBCAT000541",
"name": "Proton Pump Inhibitors",
"mesh_id": "D054328",
"mesh_tree_numbers": [
"D27.505.519.389.848"
],
"atc_code": "A02BC",
"atc_level": 4,
"synonyms": [
"Inhibitors, Proton Pump",
"PP Inhibitors",
"..."
],
"description": "Compounds that inhibit H(+)-K(+)-EXCHANGING ATPASE..."
},
"..."
],
"labeller": {
"name": "Dr.Reddy's Laboratories Limited"
},
"images": []
}
]
This returns a list of products which are described by the product concept specified by ID (DrugBank Product Concept ID). These results are region-filtered, making it possible to find products from one or all regions by varying the URL.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/products
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_simple_desc | false | If set to true , include simple descriptions for the product ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product ingredients. |
Filters
Products can be narrowed down by appending a filter to the url in the following format:
https://api.drugbank.com/v1/us/product_concepts/<ID>/products/<filter>
For example:
https://api.drugbank.com/v1/us/product_concepts/<ID>/products/generics
Filter | Description |
---|---|
generics | Returns only generic i.e. unbranded products. |
View Product Concept Routes
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0001930/routes'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Pantoprazole sodium 20 mg Oral [Protonix]",
"display_name": "Protonix 20 mg Oral",
"drugbank_pcid": "DBPC0002038",
"brand": "Protonix",
"level": 5,
"route": "Oral",
"form": null,
"strengths": "20 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2000-05-01",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Pantoprazole as Pantoprazole sodium",
"drug": {
"name": "Pantoprazole",
"drugbank_id": "DB00213"
},
"exact_ingredient": {
"name": "Pantoprazole sodium",
"drugbank_id": "DBSALT000386"
},
"strength": {
"amount": "20.0",
"per": "1.0",
"units": "mg"
}
}
]
},
{
"name": "Pantoprazole sodium 20 mg Oral Tablet, delayed release",
"display_name": null,
"drugbank_pcid": "DBPC0001938",
"brand": null,
"level": 5,
"route": "Oral",
"form": "Tablet, delayed release",
"strengths": "20 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2000-05-01",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Pantoprazole as Pantoprazole sodium",
"drug": {
"name": "Pantoprazole",
"drugbank_id": "DB00213"
},
"exact_ingredient": {
"name": "Pantoprazole sodium",
"drugbank_id": "DBSALT000386"
},
"strength": {
"amount": "20.0",
"per": "1.0",
"units": "mg"
}
}
]
}
]
This returns a list of product concepts which are more specific versions of the product concept specified by <ID>
. Each of the returned product concepts has a route specified.
When using this endpoint, the "route"
field of the returned product concepts can be displayed to users to communicate route separately from ingredients, brand, form, etc.
The returned routes can be further refined by passing in a full-text search parameter q
. This query parameter works similarity to the Product Concepts Search and searches brand names, ingredient names and synonyms as well as ingredient names and synonyms. It also allows the query_type
and hit_details
parameters to be used.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/routes
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
q | The text-search query string (optional). | |
query_type | simple | If set to advanced , allows basic boolean operations in the query parameter q . If set to exact , only returns product concepts containing an exact match to the query string q . Only applies if q is also given. |
hit_details | false | If set to true , returns additional information on matched brands/ingredients/products for the concept. Only applies if q is also given. |
withdrawn | false | If set to include , includes product concepts for which all products have been withdrawn. If set to true , includes only product concepts for which all products have been withdrawn. If set to false , includes only product concepts with at least one non-withdrawn product. |
include_simple_desc | false | If set to true , include simple descriptions for the product concept ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product concept ingredients. |
View Product Concept Forms
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0001930/forms'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Pantoprazole sodium 20 mg Oral Tablet, delayed release",
"display_name": null,
"drugbank_pcid": "DBPC0001938",
"brand": null,
"level": 5,
"route": "Oral",
"form": "Tablet, delayed release",
"strengths": "20 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2000-05-01",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Pantoprazole as Pantoprazole sodium",
"drug": {
"name": "Pantoprazole",
"drugbank_id": "DB00213"
},
"exact_ingredient": {
"name": "Pantoprazole sodium",
"drugbank_id": "DBSALT000386"
},
"strength": {
"amount": "20.0",
"per": "1.0",
"units": "mg"
}
}
]
}
]
This returns a list of product concepts which are more specific versions of the product concept specified by <ID>
. Each of the returned product concepts has a form specified.
When using this endpoint, the "form"
field of the returned product concepts can be displayed to users to communicate form separately from ingredients, brand, route, etc.
The returned forms can be further refined by passing in a full-text search parameter q
. This query parameter works similarity to the Product Concepts Search and searches brand names, ingredient names and synonyms as well as ingredient names and synonyms. It also allows the query_type
and hit_details
parameters to be used.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/forms
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
q | The text-search query string (optional). | |
query_type | simple | If set to advanced , allows basic boolean operations in the query parameter q . If set to exact , only returns product concepts containing an exact match to the query string q . Only applies if q is also given. |
hit_details | false | If set to true , returns additional information on matched brands/ingredients/products for the concept. Only applies if q is also given. |
withdrawn | false | If set to include , includes product concepts for which all products have been withdrawn. If set to true , includes only product concepts for which all products have been withdrawn. If set to false , includes only product concepts with at least one non-withdrawn product. |
include_simple_desc | false | If set to true , include simple descriptions for the product concept ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product concept ingredients. |
View Product Concept Strengths
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0001930/strengths'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Pantoprazole sodium 20 mg Oral [Protonix]",
"display_name": "Protonix 20 mg Oral",
"drugbank_pcid": "DBPC0002038",
"brand": "Protonix",
"level": 5,
"route": "Oral",
"form": null,
"strengths": "20 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2000-05-01",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Pantoprazole as Pantoprazole sodium",
"drug": {
"name": "Pantoprazole",
"drugbank_id": "DB00213"
},
"exact_ingredient": {
"name": "Pantoprazole sodium",
"drugbank_id": "DBSALT000386"
},
"strength": {
"amount": "20.0",
"per": "1.0",
"units": "mg"
}
}
]
},
{
"name": "Pantoprazole sodium 20 mg Oral Tablet, delayed release",
"display_name": null,
"drugbank_pcid": "DBPC0001938",
"brand": null,
"level": 5,
"route": "Oral",
"form": "Tablet, delayed release",
"strengths": "20 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2000-05-01",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Pantoprazole as Pantoprazole sodium",
"drug": {
"name": "Pantoprazole",
"drugbank_id": "DB00213"
},
"exact_ingredient": {
"name": "Pantoprazole sodium",
"drugbank_id": "DBSALT000386"
},
"strength": {
"amount": "20.0",
"per": "1.0",
"units": "mg"
}
}
]
}
]
This returns a list of product concepts which are more specific versions of the product concept specified by <ID>
. Each of the returned product concepts has ingredient strengths specified.
When using this endpoint, the "strengths"
field of the returned product concepts can be displayed to users to communicate strength separately from ingredients, brand, route, etc.
The returned strengths can be further refined by passing in a full-text search parameter q
. This query parameter works similarity to the Product Concepts Search and searches brand names, ingredient names and synonyms as well as ingredient names and synonyms. It also allows the query_type
and hit_details
parameters to be used.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/strengths
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
q | The text-search query string (optional). | |
query_type | simple | If set to advanced , allows basic boolean operations in the query parameter q . If set to exact , only returns product concepts containing an exact match to the query string q . Only applies if q is also given. |
hit_details | false | If set to true , returns additional information on matched brands/ingredients/products for the concept. Only applies if q is also given. |
withdrawn | false | If set to include , includes product concepts for which all products have been withdrawn. If set to true , includes only product concepts for which all products have been withdrawn. If set to false , includes only product concepts with at least one non-withdrawn product. |
include_simple_desc | false | If set to true , include simple descriptions for the product concept ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product concept ingredients. |
View Product Concept Categories
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0001930/categories'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": "DBCAT000768",
"name": "2-Pyridinylmethylsulfinylbenzimidazoles",
"mesh_id": "D053799",
"mesh_tree_numbers": [
"D02.886.640.074",
"D03.383.725.024",
"..."
],
"atc_code": null,
"atc_level": null,
"categorization_kind": "indexing",
"synonyms": [
"2 Methylpyridine 2 Benzimidazole Sulfoxides",
"2 Pyridinylmethylsulfinyl 2 Benzimidazoles",
"..."
],
"description": "Compounds that contain benzimidazole joined to a 2-methylpyridine via a sulfoxide linkage..."
}
]
Returns an array of categories for the product concept specified by ID (DrugBank Product Concept ID).
The category type atc
or mesh
can be appended on to the end of the url to specify which hierarchy to retrieve the categories from. If left blank, DrugBank categories will be returned.
This endpoint supports pagination.
See Common Category Query Parameter Values for query parameters that affect the results of this request.
Shows all categories for the product concept regardless of the value of source
, but parent/child relationships will be limited based on source
.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/categories/<hierarchy (optional)>
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked categories. |
Query Parameters
Parameter | Default | Description |
---|---|---|
categorization_kind | The categorization kind to filter by (optional). |
View Product Concept Indications
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0131467/indications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"kind": "treatment_of",
"off_label": false,
"otc_use": false,
"adjunct_use": false,
"drug": {
"name": "Darbepoetin alfa",
"drugbank_id": "DB00012"
},
"regions": "US",
"condition": {
"name": "Anemia",
"drugbank_id": "DBCOND0020261",
"meddra_id": "pt/10002034",
"snomed_id": "c/64593003",
"icd10_id": "c/D64.9"
},
"condition_associated_with": [
{
"name": "Concomitant myelosuppressive chemotherapy",
"drugbank_id": "DBCOND0020262",
"meddra_id": "llt/10064468",
"snomed_id": "c/64593003",
"icd10_id": "c/D64.9"
}
]
}
]
This returns a list of indications linked to the product concept specified by ID (DrugBank Product Concept ID). This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/indications
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
off_label | null | Limits results by the value of the off_label attribute of the indications. |
otc_use | null | Limits results by the value of the otc_use attribute of the indications. |
adjunct_use | null | Limits results by the value of the adjunct_use attribute of the indications. |
kind | null | Limits results by the value of the kind attribute of the indications. |
View product concepts with similar indications
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0131467/similar_indications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"similar_indications": [
{
"product_concept": {
"name": "Erythropoietin",
"display_name": null,
"drugbank_pcid": "DBPC0123502",
"brand": null,
"level": 1,
"route": null,
"form": null,
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1989-06-01",
"regions": {
"us": true,
"canada": true,
"eu": true
},
"rxnorm_concepts": [
{
"name": "epoetin alfa-epbx",
"RXCUI": "2047589"
},
{
"name": "epoetin alfa",
"RXCUI": "105694"
},
"..."
],
"ingredients": [
{
"name": "Erythropoietin",
"drug": {
"name": "Erythropoietin",
"drugbank_id": "DB00016"
}
}
]
},
"from": {
"concept": {
"title": "Anemia",
"drugbank_id": "DBCOND0020261"
},
"indication": {
"kind": "treatment_of",
"off_label": false,
"otc_use": false,
"drug": {
"name": "Darbepoetin alfa",
"drugbank_id": "DB00012"
},
"regions": "US",
"condition": {
"name": "Anemia",
"drugbank_id": "DBCOND0020261",
"meddra_id": "pt/10002034",
"snomed_id": "c/64593003",
"icd10_id": "c/D64.9"
},
"condition_associated_with": [
{
"name": "Concomitant myelosuppressive chemotherapy",
"drugbank_id": "DBCOND0020262",
"meddra_id": "llt/10064468",
"snomed_id": "c/64593003",
"icd10_id": "c/D64.9"
}
]
}
},
"to": {
"concept": {
"title": "Anemia",
"drugbank_id": "DBCOND0020261"
},
"indication": {
"kind": "treatment_of",
"off_label": false,
"otc_use": false,
"drug": {
"name": "Erythropoietin",
"drugbank_id": "DB08923"
},
"regions": "EU",
"condition": {
"name": "Anemia",
"drugbank_id": "DBCOND0020261",
"meddra_id": "pt/10002034",
"snomed_id": "c/64593003",
"icd10_id": "c/D64.9"
},
"condition_associated_with": [
{
"name": "Chronic Kidney Disease",
"drugbank_id": "DBCOND0030403",
"meddra_id": "llt/10064848",
"snomed_id": "c/236425005",
"icd10_id": "c/N18",
"modification_of": {
"base": {
"name": "Kidney Diseases",
"drugbank_id": "DBCOND0028223",
"meddra_id": "llt/10051051",
"snomed_id": "c/266627003",
"icd10_id": "c/N28.9"
},
"severity": {
"includes": [
"chronic"
],
"excludes": []
}
}
}
]
}
}
},
{
"product_concept": {
"name": "Sodium ferric gluconate complex",
"drugbank_pcid": "DBPC0002992",
"level": 1,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1999-02-18",
"regions": {
"us": true,
"canada": true,
"eu": false
},
"rxnorm_concepts": [
{
"name": "sodium ferric gluconate complex",
"RXCUI": "261435"
}
],
"ingredients": [
{
"name": "Sodium ferric gluconate complex",
"drug": {
"name": "Sodium ferric gluconate complex",
"drugbank_id": "DB09517"
}
}
]
},
"from": {
"concept": {
"title": "Anemia",
"drugbank_id": "DBCOND0020261"
},
"indication": {
"kind": "treatment_of",
"off_label": false,
"otc_use": false,
"drug": {
"name": "Darbepoetin alfa",
"drugbank_id": "DB00012"
},
"regions": "US",
"condition": {
"name": "Anemia",
"drugbank_id": "DBCOND0020261",
"meddra_id": "pt/10002034",
"snomed_id": "c/64593003",
"icd10_id": "c/D64.9"
},
"condition_associated_with": [
{
"name": "Concomitant myelosuppressive chemotherapy",
"drugbank_id": "DBCOND0020262",
"meddra_id": "llt/10064468",
"snomed_id": "c/64593003",
"icd10_id": "c/D64.9"
}
]
}
},
"to": {
"concept": {
"title": "Anemia",
"drugbank_id": "DBCOND0020261"
},
"indication": {
"kind": "treatment_of",
"off_label": true,
"otc_use": false,
"drug": {
"name": "Sodium ferric gluconate complex",
"drugbank_id": "DB09517"
},
"condition": {
"name": "Anemia",
"drugbank_id": "DBCOND0020261",
"meddra_id": "pt/10002034",
"snomed_id": "c/64593003",
"icd10_id": "c/D64.9"
},
"condition_associated_with": [
{
"name": "Chemotherapy",
"drugbank_id": "DBCOND0020513",
"meddra_id": "llt/10050693",
"snomed_id": "c/363688001"
}
]
}
}
},
"..."
]
}
This endpoint retrieves a list of product concepts which have indications similar to the indications of the provided product concept.
The results are returned as a JSON object with a “similar_indications” property containing an array of objects representing similar product concepts. Each object in this array has three properties: product_concept (the similar product_concept), from, and to.
From and to describe the relationship between the input product concept and the similar product concept. From and to both contain the same two properties:
- concept, a condition object, and
- indication, an indication object.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/similar_indications
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept for which to retrieve product concepts with similar indications |
View Product Concept Adverse Effects
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0018378/adverse_effects'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Tolcapone",
"drugbank_id": "DB00323"
},
"route": [
"Oral"
],
"dose_form": [],
"evidence_type": [
"clinical_trial"
],
"regions": "US",
"incidences": [
{
"kind": "experimental",
"percent": "42-51%"
},
{
"kind": "placebo",
"percent": "20%"
}
],
"effect": {
"name": "Dyskinesia",
"drugbank_id": "DBCOND0017935",
"meddra_id": "llt/10013916",
"snomed_id": "c/229694001",
"icd10_id": "c/G24"
},
"patient_characteristics": [
{
"name": "Parkinson's Disease",
"drugbank_id": "DBCOND0028039",
"meddra_id": "llt/10034008",
"snomed_id": "d/1230678016",
"icd10_id": "c/G20"
}
],
"with_drugs": [
{
"name": "Levodopa",
"drugbank_id": "DB01235"
},
{
"name": "Carbidopa",
"drugbank_id": "DB00190"
}
]
}
]
This returns a list of adverse effects linked to the product concept specified by ID (DrugBank Product Concept ID). This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/adverse_effects
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
View Product Concept Contraindications
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0323661/contraindications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Loxapine",
"drugbank_id": "DB00408"
},
"route": [
"Intramuscular"
],
"dose_form": [
"Injection"
],
"regions": "US",
"patient_conditions": [
{
"name": "Comatose",
"drugbank_id": "DBCOND0035758",
"meddra_id": "llt/10058472",
"snomed_id": "c/50061006",
"icd10_id": "c/R40.2"
}
]
}
]
This returns a list of contraindications linked to the product concept specified by ID (DrugBank Product Concept ID). This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/contraindications
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
View Product Concept Boxed Warnings
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0323661/boxed_warnings'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Loxapine",
"drugbank_id": "DB00408"
},
"kind": "warning",
"lab_values": [],
"route": [],
"age_groups": [
"seniors"
],
"risk": {
"name": "Increased mortality",
"drugbank_id": "DBCOND0100456"
},
"patient_characteristics": [
{
"name": "Dementia-related Psychosis",
"drugbank_id": "DBCOND0092686"
}
]
}
]
This returns a list of boxed warnings (Black Box warnings) linked to the product concept specified by ID (DrugBank Product Concept ID). This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/boxed_warnings
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
View Product Concept Allergy Details
curl -L 'https://api.drugbank.com/v1/us/product_concepts/DBPC503562/allergy_details'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"drugbank_id": "DB01060",
"name": "Amoxicillin"
},
"details": [
{
"summary": "Hypersensitivity to Penicillins can present as: Cutaneous Manifestations of Drug Allergy and Erythema multiforme",
"info": "Penicillin allergy is the most common drug allergy, with incidence ranging between five and 25% by geographical region and population...",
"evidence_type": [
"case_reports",
"review"
],
"hypersensitivity_types": [
"Type IV",
"Unclassified"
],
"presentations": [
"Cutaneous Manifestations of Drug Allergy",
"Erythema multiforme"
]
}
]
}
]
This endpoint retrieves allergy information linked to components of a product concept.
Components with no associated allergy details will not show up. Allergy details for each component will show up as a list.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/allergy_details
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve the allergy details. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_presentation_details | false | If set to true , include details of each presentation. |
include_source_details | false | If set to true , include source_name and source_type for this allergy detail (useful when there are multiple allergy details). |
include_references | false | If true , includes the lists of references for allergy information. See References for details. |
View Product Concept Cross-sensitivities
curl -L 'https://api.drugbank.com/v1/us/product_concepts/DBPC503562/cross_sensitivities'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Amoxicillin",
"drugbank_id": "DB01060"
},
"summary": "As a Penicillin, Amoxicillin is known to be cross-sensitive with Clavulanic acid",
"description": "An allergy to clavulanic acid may lead to an allergy to other beta-lactams, such as penicillins and cephalosporins, due to similarities in chemical str...",
"incidence": "Theoretical",
"evidence_type": [
"review"
],
"cross_sensitive_drugs": [
{
"name": "Clavulanic acid",
"drugbank_id": "DB00766"
}
]
}
]
This endpoint retrieves cross-sensitivity information linked to components of a product concept.
Components with no associated cross-sensitivities will not show up. Cross-sensitivities for each component will show up as a list.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/cross_sensitivities
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve the cross-sensitivities. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_references | false | If true , includes the lists of references for cross-sensitivity information. See References for details. |
View Product Concept Parents
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0001930/parents'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Pantoprazole 20 mg Oral",
"display_name": null,
"drugbank_pcid": "DBPC0001929",
"brand": null,
"level": 3,
"route": "Oral",
"form": null,
"strengths": "20 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2000-05-01",
"regions": {
"us": true,
"canada": true,
"eu": true
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Pantoprazole",
"drug": {
"name": "Pantoprazole",
"drugbank_id": "DB00213"
},
"strength": {
"amount": "20.0",
"per": "1.0",
"units": "mg"
}
}
]
}
]
This returns a list of product concepts which are more general versions of the product concept specified by <ID>
. Each of the returned product concepts is one level more general.
The returned parents can be further refined by passing in a full-text search parameter q
. This query parameter works similarity to the Product Concepts Search and searches brand names, ingredient names and synonyms as well as ingredient names and synonyms. It also allows the query_type
and hit_details
parameters to be used.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/parents
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
q | The text-search query string (optional). | |
query_type | simple | If set to advanced , allows basic boolean operations in the query parameter q . If set to exact , only returns product concepts containing an exact match to the query string q . Only applies if q is also given. |
hit_details | false | If set to true , returns additional information on matched brands/ingredients/products for the concept. Only applies if q is also given. |
withdrawn | false | If set to include , includes product concepts for which all products have been withdrawn. If set to true , includes only product concepts for which all products have been withdrawn. If set to false , includes only product concepts with at least one non-withdrawn product. |
include_simple_desc | false | If set to true , include simple descriptions for the product concept ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product concept ingredients. |
View Product Concept Children
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0001930/children'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Pantoprazole sodium 20 mg Oral [Protonix]",
"display_name": "Protonix 20 mg Oral",
"drugbank_pcid": "DBPC0002038",
"brand": "Protonix",
"level": 5,
"route": "Oral",
"form": null,
"strengths": "20 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2000-05-01",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Pantoprazole as Pantoprazole sodium",
"drug": {
"name": "Pantoprazole",
"drugbank_id": "DB00213"
},
"exact_ingredient": {
"name": "Pantoprazole sodium",
"drugbank_id": "DBSALT000386"
},
"strength": {
"amount": "20.0",
"per": "1.0",
"units": "mg"
}
}
]
}
]
This returns a list of product concepts which are more specific versions of the product concept specified by <ID>
. Each of the returned product concepts is one level more specific.
The returned children can be further refined by passing in a full-text search parameter q
. This query parameter works similarity to the Product Concepts Search and searches brand names, ingredient names and synonyms as well as ingredient names and synonyms. It also allows the query_type
and hit_details
parameters to be used.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/children
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
q | The text-search query string (optional). | |
query_type | simple | If set to advanced , allows basic boolean operations in the query parameter q . If set to exact , only returns product concepts containing an exact match to the query string q . Only applies if q is also given. |
hit_details | false | If set to true , returns additional information on matched brands/ingredients/products for the concept. Only applies if q is also given. |
withdrawn | false | If set to include , includes product concepts for which all products have been withdrawn. If set to true , includes only product concepts for which all products have been withdrawn. If set to false , includes only product concepts with at least one non-withdrawn product. |
include_simple_desc | false | If set to true , include simple descriptions for the product concept ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product concept ingredients. |
View Product Concepts by RxNorm Concept ID (RXCUI)
curl -L 'https://api.drugbank.com/v1/product_concepts/rxnorm/6387'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Lidocaine",
"display_name": null,
"drugbank_pcid": "DBPC0005263",
"brand": null,
"level": 1,
"route": null,
"form": null,
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1948-11-19",
"regions": {
"us": true,
"canada": true,
"eu": false
},
"rxnorm_concepts": [
{
"name": "lidocaine",
"RXCUI": "6387"
}
],
"ingredients": [
{
"name": "Lidocaine",
"drug": {
"name": "Lidocaine",
"drugbank_id": "DB00281"
}
}
]
}
]
This returns a list of product concepts which have been mapped to the provided RXCUI. The relationship between RXCUI and DrugBank product concepts is many-to-many. If the specified RXCUI is not understood, or has not yet been imported into DrugBank, then a 404 error will be raised. If the RXCUI is understood, but the specified RxNorm concept is not considered equivalent to any DrugBank product concept, then an empty array will be returned. This API supports pagination, although results will rarely, if ever be paginated with the default per-page setting of 50 results per page.
HTTP Request
GET https://api.drugbank.com/v1/product_concepts/rxnorm/<RXCUI>
URL Parameters
Parameter | Description |
---|---|
ID | The RXCUI of the RxNorm concept for which to retrieve product concepts. |
Query Parameters
Parameter | Default | Description |
---|---|---|
withdrawn | false | If set to include , includes product concepts for which all products have been withdrawn. If set to true , includes only product concepts for which all products have been withdrawn. If set to false , includes only product concepts with at least one non-withdrawn product. |
include_simple_desc | false | If set to true , include simple descriptions for the product concept ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product concept ingredients. |
View Product Concept Revocation
curl -L 'https://api.drugbank.com/v1/product_concepts/DBPC0151796/revocation'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"drugbank_pcid": "DBPC0151796",
"alternate_drugbank_pcids": [],
"standing": "revoked",
"revoked_at": "2018-01-11",
"historical_data": {
"name": "Estradiol valerate / Testosterone Enanthate Intramuscular",
"route": "Intramuscular",
"rxnorm_ids": [],
"ingredients": [
{
"drug": {
"name": "Testosterone",
"drugbank_id": "DB00624"
},
"exact_ingredient": {
"name": "Testosterone Enanthate",
"drugbank_id": "DBSALT001030"
}
},
{
"drug": {
"name": "Estradiol",
"drugbank_id": "DB00783"
},
"exact_ingredient": {
"name": "Estradiol valerate",
"drugbank_id": "DBSALT000068"
}
}
]
},
"suggested_replacements": [
{
"name": "Estradiol valerate / Testosterone enanthate Intramuscular",
"drugbank_pcid": "DBPC0340214",
"regions": {
"us": false,
"canada": false,
"eu": false
}
},
{
"name": "Estradiol valerate 6.5 mg / Testosterone enanthate 100 mg Intramuscular",
"drugbank_pcid": "DBPC0340215",
"regions": {
"us": false,
"canada": false,
"eu": false
}
},
"..."
]
}
When a drug or product ingredient is revoked, the related product concepts must also be revoked. They refer to DrugBank entities which no longer exist, so they cannot be properly represented. However, a historical snapshot of its data is captured when a product concept is revoked. This data can be accessed through the revocation endpoint, which will also attempt to suggest product concepts which may be suitable replacements for the revoked concept.
Plese note that some or all of the referenced ingredients may no longer be available.
HTTP Request
GET https://api.drugbank.com/v1/us/product_concepts/<ID>/revocation
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the product concept for which to retrieve the revocation data. |
Search duplicate therapies
Check whether product concepts share the same ingredients or treat the same conditions.
Query Parameters
Parameter | Default | Description |
---|---|---|
product_concept_id | A comma-separated list of DrugBank product concept IDs |
curl -L 'https://api.drugbank.com/v1/us/product_concepts/duplicate_therapies?product_concept_id=DBPC0251172,DBPC0011839'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"duplicate_ingredients": [
{
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"product_concepts": [
{
"name": "Acetaminophen 500 mg Oral Tablet, film coated [Panadol]",
"display_name": "Panadol 500 mg Oral Tablet, film coated",
"drugbank_pcid": "DBPC0251172",
"brand": "Panadol",
"level": 5,
"route": "Oral",
"form": "Tablet, film coated",
"strengths": "500 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2011-03-18",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [
{
"name": "acetaminophen 500 MG Oral Tablet [Panadol]",
"RXCUI": "200977"
}
],
"ingredients": [
{
"name": "Acetaminophen",
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"strength": {
"amount": "500.0",
"per": "1.0",
"units": "mg"
}
}
]
},
{
"name": "Acetaminophen 160 mg /5mL Oral Suspension",
"display_name": null,
"drugbank_pcid": "DBPC0011839",
"brand": null,
"level": 4,
"route": "Oral",
"form": "Suspension",
"strengths": "160 mg /5mL",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1989-08-15",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [
{
"name": "acetaminophen 33.3 MG/ML Oral Solution",
"RXCUI": "307684"
},
{
"name": "acetaminophen 100 MG/ML Oral Solution",
"RXCUI": "238159"
},
"..."
],
"ingredients": [
{
"name": "Acetaminophen",
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"strength": {
"amount": "160.0",
"per": "5.0",
"units": "mg/mL"
}
}
]
}
]
}
],
"duplicate_therapies": [
{
"condition": {
"title": "Severe Pain",
"drugbank_id": "DBCOND0066540"
},
"kind": "treatment_of",
"duplicates": [
{
"product_concept": {
"name": "Acetaminophen 160 mg /5mL Oral Suspension",
"display_name": null,
"drugbank_pcid": "DBPC0011839",
"brand": null,
"level": 4,
"route": "Oral",
"form": "Suspension",
"strengths": "160 mg /5mL",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1989-08-15",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [
{
"name": "acetaminophen 33.3 MG/ML Oral Solution",
"RXCUI": "307684"
},
{
"name": "acetaminophen 100 MG/ML Oral Solution",
"RXCUI": "238159"
},
"..."
],
"ingredients": [
{
"name": "Acetaminophen",
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"strength": {
"amount": "160.0",
"per": "5.0",
"units": "mg/mL"
}
}
]
},
"indication": {
"kind": "adjunct_therapy_in_treatment_of",
"off_label": false,
"otc_use": false,
"route": [],
"dose_form": [],
"dose_strength": [],
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"regions": "US",
"condition": {
"name": "Severe Pain",
"drugbank_id": "DBCOND0066540",
"icd10_id": "c/R52",
"modification_of": {
"base": {
"name": "Pain",
"drugbank_id": "DBCOND0012160",
"meddra_id": "llt/10033470",
"snomed_id": "c/279075009",
"icd10_id": "c/R52"
},
"severity": {
"includes": [
"severe"
],
"excludes": []
}
}
},
"with_therapies": [
{
"name": "Pain Management",
"drugbank_id": "DBCOND0037199",
"meddra_id": "llt/10056350",
"snomed_id": "c/278414003"
}
],
"adjunct_drug_categories": [
{
"name": "Opioids",
"drugbank_id": "DBCAT000480",
"mesh_id": "D000701"
}
]
}
},
{
"product_concept": {
"name": "Acetaminophen 500 mg Oral Tablet, film coated [Panadol]",
"display_name": "Panadol 500 mg Oral Tablet, film coated",
"drugbank_pcid": "DBPC0251172",
"brand": "Panadol",
"level": 5,
"route": "Oral",
"form": "Tablet, film coated",
"strengths": "500 mg",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2011-03-18",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [
{
"name": "acetaminophen 500 MG Oral Tablet [Panadol]",
"RXCUI": "200977"
}
],
"ingredients": [
{
"name": "Acetaminophen",
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"strength": {
"amount": "500.0",
"per": "1.0",
"units": "mg"
}
}
]
},
"indication": {
"kind": "adjunct_therapy_in_treatment_of",
"off_label": false,
"otc_use": false,
"route": [],
"dose_form": [],
"dose_strength": [],
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"regions": "US",
"condition": {
"name": "Severe Pain",
"drugbank_id": "DBCOND0066540",
"icd10_id": "c/R52",
"modification_of": {
"base": {
"name": "Pain",
"drugbank_id": "DBCOND0012160",
"meddra_id": "llt/10033470",
"snomed_id": "c/279075009",
"icd10_id": "c/R52"
},
"severity": {
"includes": [
"severe"
],
"excludes": []
}
}
},
"with_therapies": [
{
"name": "Pain Management",
"drugbank_id": "DBCOND0037199",
"meddra_id": "llt/10056350",
"snomed_id": "c/278414003"
}
],
"adjunct_drug_categories": [
{
"name": "Opioids",
"drugbank_id": "DBCAT000480",
"mesh_id": "D000701"
}
]
}
}
]
}
]
}
This returns two high level sections: duplicate_ingredients
and duplicate_therapies
.
duplicate_ingredients
will return the entered product concepts grouped by their shared ingredients. Each entry of the array will contain the common drug
and the product_concepts
containing that drug.
duplicate_therapies
will return the entered product concepts, along with their indications, grouped by the closest common condition that they treat. Each entry of the array will contain the common condition
and kind
and an array of duplicates
. Entries in the duplicates
array will be one of the entered product concepts along with the indication related to this condition.
Drugs
Get a specific drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00316'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"drugbank_id": "DB00316",
"name": "Acetaminophen",
"cas_number": "103-90-2",
"annotation_status": "complete",
"availability_by_region": [
{
"region": "ca",
"max_phase": 4,
"marketed_prescription": true,
"generic_available": true,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
{
"region": "eu",
"max_phase": 4,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": true,
"post_market_cancelled": false
},
"..."
],
"description": "Acetaminophen (paracetamol), also commonly known as _Tylenol_, is the most commonly taken analgesic worldwide and is recommended as first-line therapy ...",
"simple_description": "A medication used to reduce fever and treat pain.",
"clinical_description": "An analgesic drug used alone or in combination with opioids for pain management, and as an antipyretic agent.",
"synonyms": [
"4-(Acetylamino)phenol",
"4-acetamidophenol",
"..."
],
"pharmacology": {
"indication_descripton": "In general, acetaminophen is used for the treatment of mild to moderate pain and reduction of fever...",
"pharmacodynamic_description": "Animal and clinical studies have determined that acetaminophen has both antipyretic and analgesic effects...",
"mechanism_of_action_description": "According to its FDA labeling, acetaminophen's exact mechanism of action has not been fully established[Label] - despite this, it is often categorized ...",
"absorption": "Acetaminophen has 88% oral bioavailability and reaches its highest plasma concentration 90 minutes after ingestion...",
"protein_binding": "The binding of acetaminophen to plasma proteins is low (ranging from 10% to 25%), when given at therapeutic doses.[Label]",
"volume_of_distribution": [
"Volume of distribution is about 0..."
],
"clearance": [
"Adults: 0.27 L/h/kg following a 15 mg/kg intravenous (IV) dose.[Label]",
"Children: 0.34 L/h/kg following a 15 mg/kg intravenous (IV dose).[Label]"
],
"half_life": "The half-life for adults is 2...",
"route_of_elimination": "Acetaminophen metabolites are mainly excreted in the urine...",
"toxicity_description": "LD50 = 338 mg/kg (oral, mouse); LD50 = 1944 mg/kg (oral, rat)[F4133]\r\n\r\n**Overdose and liver toxicity** \r\n\r\nAcetaminophen overdose may be manifested by..."
},
"food_interactions": [
"Avoid alcohol. Alcohol may increase the risk of hepatotoxicity.",
"Take with or without food. The absorption is unaffected by food."
],
"identifiers": {
"drugbank_id": "DB00316",
"inchi": "InChI=1S/C8H9NO2/c1-6(10)9-7-2-4-8(11)5-3-7/h2-5,11H,1H3,(H,9,10)",
"inchikey": "RZVAJINKPMORJF-UHFFFAOYSA-N",
"atc_codes": [
{
"code": "N02BE71",
"title": "paracetamol, combinations with psycholeptics",
"combination": true
},
{
"code": "N02BE01",
"title": "paracetamol",
"combination": false
},
"..."
]
},
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000934",
"name": "Cytochrome P-450 CYP3A Inhibitors",
"mesh_id": "D065692",
"mesh_tree_numbers": [
"D27.505.389.500.503",
"D27.505.519.389.335.503"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"CYP3A Inhibitors",
"Cytochrome P 450 CYP3A Inhibitors",
"..."
],
"description": "Drugs and compounds which inhibit or antagonize the biosynthesis or actions of CYTOCHROME P-450 CYP3A."
},
{
"drugbank_id": "DBCAT003661",
"name": "Miscellaneous Analgesics and Antipyretics",
"mesh_id": null,
"mesh_tree_numbers": [],
"atc_code": null,
"atc_level": null,
"synonyms": [],
"description": null
}
]
}
This endpoint retrieves a specific drug based on DrugBank ID.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_references |
false | If true , includes the list of references for this drug. See References for details. |
Get products linked with a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00316/products'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"ndc_product_code": "52124-0111",
"originator_ndc_product_code": "52124-0111",
"dpd_id": null,
"ema_product_code": null,
"ema_ma_number": null,
"name": "10 Person ANSI",
"prescribable_name": "Acetaminophen / Acetylsalicylic acid / Bacitracin zinc / Benzalkonium chloride / Benzocaine / Ethanol / Ibuprofen / Lidocaine / Neomycin sulfate / Poly...",
"started_marketing_on": "2010-04-24",
"ended_marketing_on": null,
"approved_on": null,
"schedule": null,
"dosage_form": "Kit",
"route": "Ophthalmic; Oral; Topical",
"application_number": "part333",
"generic": false,
"otc": true,
"approved": false,
"country": "US",
"mixture": true,
"allergenic": false,
"cosmetic": false,
"vaccine": false,
"ingredients": [
{
"name": "Benzalkonium",
"drugbank_id": "DB11105",
"strength": {
"number": "0.13",
"unit": "g/100g"
}
},
{
"name": "Lidocaine",
"drugbank_id": "DB00281",
"strength": {
"number": "0.5",
"unit": "1/100g"
}
},
"..."
],
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000007",
"name": "Anticoagulants",
"mesh_id": "D000925",
"mesh_tree_numbers": [
"D27.505.954.502.119"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Agents, Anticoagulant",
"Anti-coagulant",
"..."
],
"description": "Agents that prevent clotting."
},
{
"drugbank_id": "DBCAT000045",
"name": "Antirheumatic Agents",
"mesh_id": "D018501",
"mesh_tree_numbers": [
"D27.505.954.329"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Agents, Anti-Rheumatic",
"Agents, Antirheumatic",
"..."
],
"description": "Drugs that are used to treat RHEUMATOID ARTHRITIS."
},
"..."
],
"labeller": {
"name": "Genuine First Aid"
},
"images": []
}
]
This endpoint retrieves a list of products linked to a drug, based on DrugBank ID. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/products
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked products. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_simple_desc | false | If set to true , include simple descriptions for the product ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product ingredients. |
Filters
Products can be narrowed down by appending a filter to the url in the following format:
https://api.drugbank.com/v1/us/drugs/<ID>/products/<filter>
For example:
https://api.drugbank.com/v1/us/drugs/<ID>/products/generics
Filter | Description |
---|---|
generics | Returns only generic i.e. unbranded products. |
Get product concepts linked with a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00316/product_concepts'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Acetaminophen 0.5 mg /5.001 Tablet",
"display_name": null,
"drugbank_pcid": "DBPC0708957",
"brand": null,
"level": 3,
"route": null,
"form": "Tablet",
"strengths": "0.5 mg /5.001",
"standing": "active",
"standing_updated_at": null,
"standing_active_since": "2020-08-31",
"regions": {
"us": true,
"canada": false,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Acetaminophen",
"drug": {
"name": "Acetaminophen",
"drugbank_id": "DB00316"
},
"strength": {
"amount": "0.5",
"per": "5.001",
"units": "mg"
}
}
]
}
]
This endpoint retrieves a list of product concepts linked to a drug, based on DrugBank ID. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/product_concepts
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked product concepts. |
Query Parameters
Parameter | Default | Description |
---|---|---|
level | The product concept level to filter by (optional). | |
min_level | The minimum product concept level to return (optional). | |
min_level | The maximum product concept level to return (optional). | |
unbranded_only | false | If true , returns only product concepts without an associated brand. |
Get categories for a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00993/categories'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": "DBCAT000276",
"name": "Antimetabolites",
"mesh_id": "D000963",
"mesh_tree_numbers": [
"D27.505.519.186",
"D27.888.569.042"
],
"atc_code": "L01B",
"atc_level": 3,
"categorization_kind": "therapeutic",
"synonyms": [],
"description": "Drugs that are chemically similar to naturally occurring metabolites, but differ enough to interfere with normal metabolic pathways..."
}
]
Returns an array of categories for a drug, based on the DrugBank ID.
The category type atc
or mesh
can be appended on to the end of the url to specify which hierarchy to retrieve the categories from. If left blank, DrugBank categories will be returned.
This endpoint supports pagination.
See Common Category Query Parameter Values for query parameters that affect the results of this request.
Shows all categories for the drug regardless of the value of source
, but parent/child relationships will be limited based on source
.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/categories/<hierarchy (optional)>
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked categories. |
Query Parameters
Parameter | Default | Description |
---|---|---|
categorization_kind | The categorization kind to filter by (optional). |
Get indications linked with a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00675/indications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"kind": "prevention_of",
"off_label": false,
"otc_use": false,
"route": [],
"dose_form": [],
"dose_strength": [],
"drug": {
"name": "Tamoxifen",
"drugbank_id": "DB00675"
},
"regions": "US",
"condition": {
"name": "Invasive Breast Cancer",
"drugbank_id": "DBCOND0037365",
"meddra_id": "llt/10006190",
"snomed_id": "c/713609000",
"icd10_id": "c/C50",
"modification_of": {
"base": {
"name": "Breast Cancer",
"drugbank_id": "DBCOND0028036",
"meddra_id": "llt/10006187",
"snomed_id": "c/254837009",
"icd10_id": "c/C50"
},
"severity": {
"includes": [
"invasive"
],
"excludes": []
}
}
},
"patient_characteristics": [
{
"name": "Breast Surgery",
"drugbank_id": "DBCOND0036836"
},
{
"name": "Breast Cancer Radiation",
"drugbank_id": "DBCOND0079385",
"icd10_id": "c/Z92.3"
},
"..."
]
}
]
This endpoint retrieves a list of indications linked to a drug, based on DrugBank ID. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/indications
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked indications. |
Query Parameters
Parameter | Default | Description |
---|---|---|
off_label | null | Limits results by the value of the off_label attribute of the indications. |
otc_use | null | Limits results by the value of the otc_use attribute of the indications. |
kind | null | Limits results by the value of the kind attribute of the indications. |
View drugs with similar indications
curl -L 'https://api.drugbank.com/v1/drugs/DB00675/similar_indications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"similar_indications": [
{
"drug": {
"name": "Anastrozole",
"drugbank_id": "DB01217"
},
"from": {
"concept": {
"title": "Metastatic Breast Cancer",
"drugbank_id": "DBCOND0030200"
},
"indication": {
"kind": "treatment_of",
"off_label": false,
"otc_use": false,
"sex_group": "all",
"drug": {
"name": "Tamoxifen",
"drugbank_id": "DB00675"
},
"regions": "US",
"condition": {
"name": "Metastatic Breast Cancer",
"drugbank_id": "DBCOND0030200",
"meddra_id": "llt/10027475",
"icd10_id": "c/C50.9",
"modification_of": {
"condition_stage": "metastatic",
"base": {
"name": "Breast Cancer",
"drugbank_id": "DBCOND0028036",
"meddra_id": "llt/10006187",
"snomed_id": "c/254837009",
"icd10_id": "c/C50"
}
}
}
}
},
"to": {
"concept": {
"title": "Metastatic Breast Cancer",
"drugbank_id": "DBCOND0030200"
},
"indication": {
"kind": "treatment_of",
"off_label": false,
"otc_use": false,
"sex_group": "female",
"route": [
"Oral"
],
"dose_form": [],
"dose_strength": [],
"age_groups": [
"postmenopausal"
],
"drug": {
"name": "Anastrozole",
"drugbank_id": "DB01217"
},
"regions": "US",
"condition": {
"name": "Metastatic Breast Cancer",
"drugbank_id": "DBCOND0030200",
"meddra_id": "llt/10027475",
"icd10_id": "c/C50.9",
"modification_of": {
"condition_stage": "metastatic",
"base": {
"name": "Breast Cancer",
"drugbank_id": "DBCOND0028036",
"meddra_id": "llt/10006187",
"snomed_id": "c/254837009",
"icd10_id": "c/C50"
}
}
},
"patient_characteristics": [
{
"name": "Hormone receptor unknown",
"drugbank_id": "DBCOND0100392"
}
]
}
}
},
{
"drug": {
"name": "Estradiol",
"drugbank_id": "DB00783"
},
"from": {
"concept": {
"title": "Breast Cancer",
"drugbank_id": "DBCOND0028036"
},
"indication": {
"kind": "adjunct_therapy_in_treatment_of",
"off_label": false,
"otc_use": false,
"sex_group": "female",
"drug": {
"name": "Tamoxifen",
"drugbank_id": "DB00675"
},
"regions": "US",
"condition": {
"name": "Breast Cancer",
"drugbank_id": "DBCOND0028036",
"meddra_id": "llt/10006187",
"snomed_id": "c/254837009",
"icd10_id": "c/C50"
}
}
},
"to": {
"concept": {
"title": "Breast Cancer",
"drugbank_id": "DBCOND0028036"
},
"indication": {
"kind": "for_therapy",
"off_label": false,
"otc_use": false,
"route": [
"Subcutaneous"
],
"dose_form": [
"Pellet, implantable"
],
"dose_strength": [],
"drug": {
"name": "Estradiol",
"drugbank_id": "DB00783"
},
"regions": "Canada",
"condition": {
"name": "Breast Cancer",
"drugbank_id": "DBCOND0028036",
"meddra_id": "llt/10006187",
"snomed_id": "c/254837009",
"icd10_id": "c/C50"
},
"therapy": {
"name": "Palliation",
"drugbank_id": "DBCOND0126004",
"icd10_id": "c/Z51.5"
}
}
}
},
"..."
]
}
This endpoint retrieves a list of drugs which have indications similar to the indications of the provided drug.
The results are returned as a JSON object with a “similar_indications” property containing an array of objects representing similar drugs. Each object in this array has three properties: drug (the similar drug), from, and to.
From and to describe the relationship between the input drug and the similar drug. From and to both contain the same two properties:
- concept, a condition object, and
- indication, an indication object.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/similar_indications
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug for which to retrieve drugs with similar indications |
Get drug-drug interactions for a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00675/ddi?severity=moderate'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"ingredient": {
"drugbank_id": "DB00675",
"name": "Tamoxifen"
},
"affected_ingredient": {
"drugbank_id": "DB08496",
"name": "(R)-warfarin"
},
"description": "The risk or severity of bleeding can be increased when Tamoxifen is combined with (R)-warfarin.",
"extended_description": "Coadministration of tamoxifen with anticoagulant drugs has been shown to produce an increase in the anticoagulant effect producing cases of bleeding...",
"action": "increase_specific_adverse_effects",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_1",
"management": "Concomitant use of tamoxifen with vitamin K antagonists should be avoided..."
}
]
This endpoint retrieves a list of drug-drug interactions linked to a drug, based on DrugBank ID. The ingredient refers to the specified drug, while the affected_ingredient is the drug it interacts with. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/ddi
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked interactions. |
Query Parameters
Parameter | Default | Description |
---|---|---|
severity | null | Limits results by the severity of the interactions. May be major, moderate, or minor. |
evidence_level | null | Limits results by the evidence level of the interactions. May be level_1 or level_2. |
available_only | false | If true , only includes interactions with currently available drugs. If a region is specified, the drugs must also be available in that region. |
include_references | false | If true , includes the references for each interaction. See References for details on the format. |
Get adverse effects linked with a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00316/adverse_effects'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"route": [
"Intravenous"
],
"dose_form": [],
"evidence_type": [
"clinical_trial"
],
"admin": "multiple dose",
"regions": "US",
"age_groups": [
"adult"
],
"incidences": [
{
"kind": "experimental",
"percent": "34%"
},
{
"kind": "placebo",
"percent": "31%"
}
],
"effect": {
"name": "Nausea",
"drugbank_id": "DBCOND0010699",
"meddra_id": "llt/10028813",
"snomed_id": "c/162055004",
"icd10_id": "c/R11.0"
}
}
]
This endpoint retrieves a list of adverse effects linked to a drug, based on DrugBank ID. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/adverse_effects
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked adverse effects. |
Get contraindications linked with a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00316/contraindications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"route": [],
"dose_form": [],
"hypersensitivity": [
"true"
],
"lab_values": [],
"recommended_actions": [],
"regions": "US"
},
{
"route": [],
"dose_form": [],
"hypersensitivity": [],
"lab_values": [],
"recommended_actions": [],
"regions": "US",
"patient_conditions": [
{
"name": "Severe, active Liver Disease",
"drugbank_id": "DBCOND0112340",
"modification_of": {
"condition_status": "active",
"base": {
"name": "Liver Disease",
"drugbank_id": "DBCOND0028338",
"meddra_id": "llt/10045808",
"snomed_id": "c/197551000",
"icd10_id": "c/K70-K77"
},
"severity": {
"includes": [
"severe"
],
"excludes": []
}
}
}
]
},
"..."
]
This endpoint retrieves a list of contraindications linked to a drug, based on DrugBank ID. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/contraindications
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked contraindications. |
Get boxed warnings linked with a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00316/boxed_warnings'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"kind": "warning",
"recommendation": "Do not exceed recommended daily maximum limits",
"lab_values": [],
"route": [],
"dose_form": [],
"risk": {
"name": "Liver Failure",
"drugbank_id": "DBCOND0031848",
"meddra_id": "pt/10019663",
"snomed_id": "c/235883002",
"icd10_id": "c/K72.9"
}
},
{
"kind": "warning",
"recommendation": "Do not exceed the maximum recommended daily dose of acetaminophen (by all routes of administration and all acetaminophen-containing products including ...",
"lab_values": [],
"route": [],
"dose_form": [],
"sex_group": "all",
"risk": {
"name": "Overdose",
"drugbank_id": "DBCOND0014854",
"meddra_id": "llt/10068719",
"snomed_id": "d/92561019"
},
"with_drugs": [
{
"name": "Acetaminophen",
"drugbank_id": "DB00316"
}
]
},
"..."
]
This endpoint retrieves a list of boxed warnings (Black Box warnings) linked to a drug, based on DrugBank ID. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/boxed_warnings
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the linked boxed warnings. |
Get packages for a drug
curl -L 'https://api.drugbank.com/v1/drugs/DB00316/packages'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"package_ndc_code": "16590-0023-90",
"originator_package_ndc_code": "16590-023-90",
"description": "90 TABLET IN 1 BOTTLE",
"full_description": "90 TABLET IN 1 BOTTLE",
"amount": "90",
"unit": "1",
"form": "BOTTLE",
"product": {
"ndc_product_code": "16590-0023",
"name": "ACETAMINOPHEN AND CODEINe"
}
},
{
"package_ndc_code": "21695-0242-28",
"originator_package_ndc_code": "21695-242-28",
"description": "28 TABLET IN 1 BOTTLE",
"full_description": "28 TABLET IN 1 BOTTLE",
"amount": "28",
"unit": "1",
"form": "BOTTLE",
"product": {
"ndc_product_code": "21695-0242",
"name": "Acetaminophen and Codeine Phosphate"
}
},
"..."
]
This endpoint retrieves a list of top level packages for a drug, based on DrugBank ID. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/packages
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the packages. |
Get allergy details for a drug
curl -L 'https://api.drugbank.com/v1/us/drugs/DB09156/allergy_details'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"summary": "Hypersensitivity to Iopromide can present as: Stevens-Johnson Syndrome Toxic Epidermal Necrolysis Spectrum, Allergy-Induced Respiratory Symptoms, Angio...",
"info": "Hypersensitivity reactions to iopromide tend to be rare in clinical practice...",
"evidence_type": [
"case_reports",
"review"
],
"hypersensitivity_types": [
"Type I",
"Type IV",
"..."
],
"presentations": [
"Allergy-Induced Respiratory Symptoms",
"Anaphylaxis",
"..."
]
}
]
This endpoint retrieves allergy information linked to a drug.
Details will be given as a list which may be empty if the drug has no associated allergy information.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/allergy_details
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the allergy details. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_presentation_details | false | If set to true , include details of each presentation. |
include_source_details | false | If set to true , include source_name and source_type for this allergy detail (useful when there are multiple allergy details). |
include_references | false | If true , includes the lists of references for allergy information. See References for details. |
Get cross-sensitivities for a drug
curl -L 'https://api.drugbank.com/v1/us/drugs/DB09156/cross_sensitivities'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"summary": "As an Iodine Radio-contrast Medium, Iopromide is known to be cross-sensitive with Iodine Radio-contrast Media",
"description": "Iodine radio-contrast media hypersensitivity reactions may be due to broadly sensitive T cells, according to lymphocyte transferase tests...",
"incidence": "67%",
"evidence_type": [
"case_reports",
"review"
],
"cross_sensitive_drugs": [
{
"name": "Acetrizoic acid",
"drugbank_id": "DB09347"
},
{
"name": "Diatrizoate",
"drugbank_id": "DB00271"
},
"..."
]
}
]
This endpoint retrieves cross-sensitivity information linked to a drug.
Cross-sensitivities will be given as a list which may be empty if the drug has no associated cross-sensitivities.
HTTP Request
GET https://api.drugbank.com/v1/us/drugs/<ID>/cross_sensitivities
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the drug to retrieve the cross-sensitivities. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_references | false | If true , includes the lists of references for cross-sensitivity information. See References for details. |
Drug-Drug Interactions
Provide a list of DrugBank drug ids to get a list of interactions between the given drugs, and/or a list of products to get a list of interactions between ingredients in the given products. Products can be specified by name, product concept ID, or product code.
The number of query terms that can be provided in a single query is limited to 40. These query parameters can be sent as url parameters or as JSON in the body of a POST request. A single request can mix different query terms, for instance, drug ids with product concept ids.
Note that this endpoint will look for interactions between any combination of query drugs/product ingredients, so be wary of using too many query terms as this can exponentially increase the number of results returned.
Common Query Parameter Values
Return a list of drug interactions, including their references:
curl -L 'https://api.drugbank.com/v1/ddi?drugbank_id=DB01236,DB01363&include_references=true'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"ingredient": {
"drugbank_id": "DB01236",
"name": "Sevoflurane"
},
"affected_ingredient": {
"drugbank_id": "DB01363",
"name": "Ephedra sinica root"
},
"description": "Sevoflurane may increase the arrhythmogenic activities of Ephedra sinica root.",
"extended_description": "The use of ephedra is currently either banned or strongly recommended against as being unsafe in many countries [L3650, L3651, F648]...",
"action": "increase_specific_effects",
"severity": "major",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_1",
"management": "Avoid coadministration of ephedra with cyclopropane or halogenated hydrocarbon anesthetics whenever possible...",
"references": {
"literature_references": [
{
"ref_id": "A35004",
"pubmed_id": 17594156,
"citation": "Hahm TS, Lee JJ, Yang MK, Kim JA: Risk factors for an intraoperative arrhythmia during esophagectomy..."
},
{
"ref_id": "A35071",
"pubmed_id": 18941968,
"citation": "Himmel HM: Mechanisms involved in cardiac sensitization by volatile anesthetics: general applicability to halogenated hydrocarbons? Crit Rev Toxicol..."
},
"..."
],
"textbooks": [],
"external_links": [
{
"ref_id": "L3620",
"title": "Electronic Medicines Compendium: Ephedrine Hydrochloride Injection 3MG PER ML Monograph",
"url": "https://www.medicines.org.uk/emc/product/3593/smpc"
},
{
"ref_id": "L3650",
"title": "National Institutes of Health: FDA Prohibits Sales of Dietary Supplements Containing Ephedra",
"url": "https://ods.od.nih.gov/Health_Information/ephedra.aspx"
},
"..."
],
"attachments": [
{
"ref_id": "F648",
"title": "European Food Safety Authority: Scientific Opinion on Safety Evaluation of Ephedra Species for use in Food",
"url": "//s3-us-west-2.amazonaws.com/drugbank/cite_this/attachments/files/000/000/648/original/j.efsa.2013.3467.pdf?1531845562"
}
]
}
}
],
"total_results": 1
}
For any interaction query the parameters listed in the table below can be used:
Parameter | Default | Description |
---|---|---|
severity | null | Limits results by the severity of the interactions. May be major, moderate, or minor. |
evidence_level | null | Limits results by the evidence level of the interactions. May be level_1 or level_2. |
include_references | false | If true , includes the references for each interaction. See References for details on the format. |
An explanation of some of the interaction properties:
Property | Type | Description |
---|---|---|
severity | string | The severity of this drug interaction; either minor , moderate , or major . |
action | string | The resulting effect of this interaction on the pharmacological activity of the drug. |
evidence_level | string | level_1: Mentioned in the the drug monograph (FDA, Health Canada, EMA, etc) and has been confirmed in clinical studies (cohort, case-control, case study etc.)level_2: Has been confirmed in at least 1 cohort, case-control, or case study and may or not be mentioned in a drug monograph. |
Find DDI with NDC product codes
Return a list of
moderate
drug interactions involving the products with the NDC codes0169-5174
and0013-2626
:
curl -L 'https://api.drugbank.com/v1/us/ddi?ndc=0169-5174,0013-2626&severity=moderate'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"product_ndc_product_codes": [
"00169-5174"
],
"product_name": "Activella",
"product_ingredient": {
"drugbank_id": "DB00783",
"name": "Estradiol"
},
"affected_product_ndc_product_code": [
"00013-2626"
],
"affected_product_name": "Genotropin",
"affected_product_ingredient": {
"drugbank_id": "DB00052",
"name": "Somatotropin"
},
"description": "The therapeutic efficacy of Somatotropin can be decreased when used in combination with Estradiol.",
"extended_description": "Estrogens affects the actions of growth hormone (GH) at early age by stimulating pituitary GH secretion, modulating GHR-JAK2-STAT5 signalling pathway, ...",
"action": "decrease_therapeutic_efficacy",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_2",
"management": "Monitor for reduced growth hormone efficacy..."
}
],
"total_results": 1
}
HTTP Request
GET https://api.drugbank.com/v1/us/ddi
Query Parameters
Parameter | Description |
---|---|
ndc | A comma delimited list of NDC codes. |
To search by the NDC product code the NDC codes should be joined with a comma, and not include any quotations. Only the 2 segment NDC code is accepted at this time. The NDC product code will not work if searching exclusively within the CA or EU region.
Find DDI with Drug Product ID
Return a list of drug interactions involving the products with the DPD IDs
02341093
and02282623
:
curl -L 'https://api.drugbank.com/v1/ca/ddi?dpd=02341093,02282623'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"product_dpd_ids": [
"02341093"
],
"product_name": "Accel-amlodipine",
"product_ingredient": {
"drugbank_id": "DB00381",
"name": "Amlodipine"
},
"affected_product_dpd_id": [
"02282623"
],
"affected_product_name": "Act Risperidone",
"affected_product_ingredient": {
"drugbank_id": "DB00734",
"name": "Risperidone"
},
"description": "Amlodipine may increase the hypotensive activities of Risperidone.",
"extended_description": "Risperidone may induce orthostatic hypotension associated with dizziness, tachycardia, and in some patients, syncope, especially during the initial dos...",
"action": "increase_specific_effects",
"severity": "minor",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_1",
"management": "Caution should be exercised when co-administering risperidone with agents associated with hypotension..."
}
],
"total_results": 1
}
HTTP Request
GET https://api.drugbank.com/v1/ca/ddi
Query Parameters
Parameter | Description |
---|---|
dpd | A comma delimited list of DPD IDs (a.k.a. DINs). |
To search by Drug Product ID the DPD IDs should be joined with a comma, and not include any quotations. The DPD ID will not work if searching exclusively within the US or EU region.
Find DDI with EMA product code
Return a list of drug interactions involving the products with the EMA product codes
EMEA/H/C/001073
andEMEA/H/C/004037
:
curl -L 'https://api.drugbank.com/v1/eu/ddi?ema=EMEA/H/C/001073,EMEA/H/C/004037'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"product_ema_product_codes": [
"EMEA/H/C/001073"
],
"product_name": "Sildenafil Teva",
"product_ingredient": {
"drugbank_id": "DB00203",
"name": "Sildenafil"
},
"affected_product_ema_product_code": [
"EMEA/H/C/004037"
],
"affected_product_name": "Amlodipine-valsartan Mylan",
"affected_product_ingredient": {
"drugbank_id": "DB00177",
"name": "Valsartan"
},
"description": "The metabolism of Valsartan can be decreased when combined with Sildenafil.",
"extended_description": "The subject drug is known to be an inhibitor of CYP2C9 while the affected drug is reported to be metabolized by CYP2C9...",
"action": "decrease_dynamics",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_2",
"management": "If alternative agents are unavailable and these agents must be administered concomitantly, the patient should be monitored closely for adverse effects ..."
},
{
"product_ema_product_codes": [
"EMEA/H/C/001073"
],
"product_name": "Sildenafil Teva",
"product_ingredient": {
"drugbank_id": "DB00203",
"name": "Sildenafil"
},
"affected_product_ema_product_code": [
"EMEA/H/C/004037"
],
"affected_product_name": "Amlodipine-valsartan Mylan",
"affected_product_ingredient": {
"drugbank_id": "DB00381",
"name": "Amlodipine"
},
"description": "Sildenafil may increase the antihypertensive activities of Amlodipine.",
"extended_description": "As phosphodiesterase 5 inhibitors (PDE5Is) naturally elicit their actions on phosphodiesterase 5 that is found in smooth muscle cells of the systemic a...",
"action": "increase_specific_effects",
"severity": "minor",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_2",
"management": "Phosphodiesterase 5 inhibitors (PDE5Is) have vasodilatory properties, resulting in mild and transient decreases in blood pressure..."
}
],
"total_results": 2
}
HTTP Request
GET https://api.drugbank.com/v1/eu/ddi
Query Parameters
Parameter | Description |
---|---|
ema | A comma delimited list of EMA product codes. |
To search by EMA product code the EMA codes should be joined with a comma, and not include any quotations. Dashes may be used in the place of slashes within the query codes. The EMA code will not work if searching exclusively within the US or CA region.
Find DDI with EMA MA number
Return a list of drug interactions involving the products with the EMA MA numbers
EU/1/15/1008/001
andEU/1/04/273/001
:
curl -L 'https://api.drugbank.com/v1/eu/ddi?ema_ma=EU/1/14/944/008,EU/1/96/007/006'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"product_ema_ma_numbers": [
"EU/1/96/007/006"
],
"product_name": "Humalog Mix50",
"product_ingredient": {
"drugbank_id": "DB00046",
"name": "Insulin lispro"
},
"affected_product_ema_ma_number": [
"EU/1/14/944/008"
],
"affected_product_name": "Abasaglar",
"affected_product_ingredient": {
"drugbank_id": "DB00047",
"name": "Insulin glargine"
},
"description": "The risk or severity of hypoglycemia can be increased when Insulin lispro is combined with Insulin glargine.",
"extended_description": "The primary therapeutic effect of blood glucose lowering agents is to decrease blood sugar levels...",
"action": "increase_specific_adverse_effects",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_2",
"management": "Although the combined use of blood glucose agents is often times clinically appropriate, it is necessary to review and monitor the particular blood glu..."
}
],
"total_results": 1
}
HTTP Request
GET https://api.drugbank.com/v1/eu/ddi
Query Parameters
Parameter | Description |
---|---|
ema_ma | A comma delimited list of EMA MA numbers. |
To search by EMA MA number the EMA MA numbers should be joined with a comma, and not include any quotations. Dashes may be used in the place of slashes within the query codes. The EMA MA number will not work if searching exclusively within the US or CA region.
Find DDI with Product Concepts
Return a list of drug interactions involving the Product concepts with the DrugBank IDs
DBPC0248838
andDBPC0061207
:
curl -L 'https://api.drugbank.com/v1/ddi?product_concept_id=DBPC0248838,DBPC0061207'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"product_concept_id": "DBPC0061207",
"product_concept_name": "Methylphenidate 18 mg Tablet, extended release",
"product_ingredient": {
"drugbank_id": "DB00422",
"name": "Methylphenidate"
},
"affected_product_concept_id": "DBPC0248838",
"affected_product_concept_name": "Isoflurane 100% [Forane]",
"affected_product_ingredient": {
"drugbank_id": "DB00753",
"name": "Isoflurane"
},
"description": "Methylphenidate may increase the hypertensive activities of Isoflurane.",
"extended_description": "The prescribing information for many, but not necessarily all, formulations of methylphenidate expressly warn about the combination of methylphenidate ...",
"action": "increase_specific_effects",
"severity": "major",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_1",
"management": "The combined use of methylphenidate with a halogenated anesthetic should be avoided..."
}
],
"total_results": 1
}
HTTP Request
GET https://api.drugbank.com/v1/ddi
Query Parameters
Parameter | Description |
---|---|
product_concept_id | A comma delimited list of DrugBank Product concept IDs. |
To search by Product concept the Product concept IDs should be joined with a comma, and not include any quotations.
Find DDI with DrugBank ID
Return a list of drug interactions involving drug ingredients with the DrugBank IDs
DB09034
andDB00615
:
curl -L 'https://api.drugbank.com/v1/ddi?drugbank_id=DB00497,DB01193'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"ingredient": {
"drugbank_id": "DB01193",
"name": "Acebutolol"
},
"affected_ingredient": {
"drugbank_id": "DB00497",
"name": "Oxycodone"
},
"description": "The metabolism of Oxycodone can be decreased when combined with Acebutolol.",
"extended_description": "The subject drug is known to be an inhibitor of CYP2D6 while the affected drug is reported to be metabolized by CYP2D6...",
"action": "decrease_dynamics",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_2",
"management": "If concomitant therapy is required, patients should be monitored for adverse effects related to the affected drug..."
}
],
"total_results": 1
}
HTTP Request
GET https://api.drugbank.com/v1/ddi
Query Parameters
Parameter | Description |
---|---|
drugbank_id | A comma delimited list of DrugBank drug IDs. |
To search by DrugBank ID the DrugBank IDs should be joined with a comma, and not include any quotations.
Find DDI with Product Name
Return a list of drug interactions involving the products with the products named: advil, Reopro, Eliquis and 7-select Advil PM.
curl -L -X POST 'https://api.drugbank.com/v1/ddi' \
-H 'Content-Type: application/json' \
-H 'Authorization: myapikey' \
-H 'Cache-Control: no-cache' -d '{
"names": [
"advil",
"Reopro",
"Eliquis",
"7-select Advil PM"
]
}'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"product_name": "Advil",
"product_ingredient": {
"drugbank_id": "DB01050",
"name": "Ibuprofen"
},
"affected_product_name": "Eliquis",
"affected_product_ingredient": {
"drugbank_id": "DB06605",
"name": "Apixaban"
},
"description": "The risk or severity of bleeding and gastrointestinal bleeding can be increased when Ibuprofen is combined with Apixaban.",
"extended_description": "When ibuprofen and apixaban are coadministered, there may be an increased risk of bleeding, including serious and fatal gastrointestinal bleeding...",
"action": "increase_specific_adverse_effects",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_2",
"management": "Avoid this combination when possible..."
}
],
"total_results": 1
}
HTTP Request
POST https://api.drugbank.com/v1/ddi
Request Body
To search for drug-drug interactions by drug product name, JSON specifying the request should be included in the body of the request. The format of the request should follow the structure of the following example:
{"names": ["advil","Reopro","Eliquis","7-select Advil PM"]}
The API finds the product with the closest match to the input name, and returns any interactions between ingredients for all the products in the product list.
Find DDI with mixed input
Return a list of drug interactions involving the specified products, drugs, and/or product concepts:
curl -L 'https://api.drugbank.com/v1/ddi?ndc=0143-9503,0056-0173&drugbank_id=DB00503,DB01221,DB00331,DB00819&product_concept_id=DBPC0024484,DBPC0085378'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"interactions": [
{
"product_concept_id": "DBPC0085378",
"product_concept_name": "Amlodipine / Atorvastatin [Caduet]",
"product_ingredient": {
"drugbank_id": "DB00381",
"name": "Amlodipine"
},
"affected_ingredient": {
"drugbank_id": "DB00331",
"name": "Metformin"
},
"description": "The risk or severity of hypoglycemia can be increased when Amlodipine is combined with Metformin.",
"extended_description": "The results of the Reasons for Geographic and Racial Differences in Stroke (REGARDS) study demonstrated that the use of calcium channel blockers, and v...",
"action": "increase_specific_adverse_effects",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_2",
"management": "Despite the findings in the REGARDS study, this interaction is not necessarily widely observed and additional studies are needed to determine the thera..."
},
{
"ingredient": {
"drugbank_id": "DB00503",
"name": "Ritonavir"
},
"affected_ingredient": {
"drugbank_id": "DB00331",
"name": "Metformin"
},
"description": "The therapeutic efficacy of Metformin can be decreased when used in combination with Ritonavir.",
"extended_description": "Some drugs produce hyperglycemia and may lead to loss of glycemic control...",
"action": "decrease_therapeutic_efficacy",
"severity": "moderate",
"subject_dosage": "",
"affected_dosage": "",
"evidence_level": "level_1",
"management": "When hyperglycemia inducing agents are administered to a patient receiving metformin, observe the patient closely for loss of blood glucose control..."
},
"..."
],
"total_results": 26
}
The interacting ingredients in each product are identified by name and DrugBank identifier.
HTTP Request
POST https://api.drugbank.com/v1/ddi
To search with multiple IDs/terms, combine the paramaters as specified in the examples above into a single request. Interactions returned by this method may be drug-drug, drug-product, drug-product-concept, etc. The output format therefore can vary from interaction to interaction, depending on what parameters it is based on.
Indications
DrugBank’s structured indications provide a method of describing the uses of a drugs. Documentation is available for the structured indications and conditions objects.
Common Query Parameter Values
When specified, the parameters listed in the table below can be used with the following values:
Parameter | Value | Description |
---|---|---|
more | null | No effect - indications are returned based solely on the names of conditions. |
more | specific | Include indications for more specific forms of the conditions matching the q parameter. |
more | general | Include indications for more general forms of the conditions matching the q parameter. |
off_label | null | No effect - indications will be returned regardless of off_label value. |
off_label | false | Only labelled indications will be returned. |
off_label | true | Only off-label indications will be returned. |
kind | blank | Indications will be returned regardless of kind attribute. |
kind | single value | Example: kind=treatment_of Only indications for which the kind attribute is “treatment_of” will be returned. |
kind | comma-delimted values | Example: kind=treatment_of,management_of Only indications for which the kind attribute matches the provided values will be returned. |
otc_use | null | No effect - indications will be returned regardless of otc_use value. |
otc_use | true | Only indications for which the otc_use attribute is true will be returned. |
otc_use | false | Only indications for which the otc_use attribute is false will be returned. |
Data Types
The indications API uses the following data types:
Structured Indications
{
"off_label": false,
"otc_use": false,
"adjunct_use": false,
"military_use": false,
"kind": "used_in_combination_as_diagnostic_agent",
"condition": {
"title": "occlusive vascular disease",
"meddra_id": null,
"icd10_id": null
},
"process": {
"title": "magnetic resonance angiography",
"meddra_id": "llt/10057784",
"icd10_id": null
},
"min_age": {
"amount": 10,
"unit": "day"
},
"max_age": {
"amount": 20,
"unit": "year"
},
"with_therapies": [{
"title": "Prostate external beam radiation therapy",
"meddra_id": "llt/10036924",
"icd10_id": null
}],
"with_drugs": [
{
"name": "Flutamide",
"drugbank_id": "DB00499",
"combination_type": "mixture"
}
],
"with_drug_categories": [
{
"title": "Corticosteroids",
"drugbank_id": "DBCAT000428",
"mesh_id": "D000305"
}
],
"combination_type": "mixture"
}
Note that the above indication includes extra data for the purpose of illustrating the related data structures.
Property | Type | Description |
---|---|---|
off_label | boolean | |
otc_use | boolean | |
adjunct_use | boolean | When accessing via a product or product concept, true if the dbpc is directly related to the indication, otherwise false . |
kind | string | Denotes the kind of use this indication describes. |
timeline | string | Specifies the timeline (ex. short-term), if necessary. |
route | string | Route of administration of the drug(s) in the indication. |
dose_form | string | Dose form in which the indication applies. |
dose_strength | string | Dose strength in which the indication applies. |
regions | string array | A list of regions to which this indication applies. |
sex_group | string | Denotes any restrictions of this indication based on patient sex. Possible values are null, “male”, “female”, or “all”. |
min_age | object | This indication applies only to patients this age or older. |
max_age | object | This indication applies only to patients this age or younger. |
age_groups | string array | List of age groups to which this indication applies. |
excluded_age_groups | string array | List of age groups to which this indication does not apply. |
genetic_factors | Genetic Factor array | |
genetic_factors.includes | Genetic Factor array | |
genetic_factors.excludes | Genetic Factor array | |
combination_drugs | simplified Drug array | Denotes drugs administered in combination for this indication. |
adjunct_drugs | simplified Drug array | Denotes drugs administered in adjunct for this indication. |
combination_drug_categories | simplified Category array | Denotes drug categories administered in combination for this indication. |
adjunct_drug_categories | simplified Category array | Denotes drug categories administered in adjunct for this indication. |
combination_type | string | Describes how the indication combines drugs. |
Some indication properties contain lists of simple objects, described in the table below:
Property | Array? | Item Properties |
---|---|---|
combination_drugs | array | drugbank_id , name |
adjunct_drugs | array | drugbank_id , name |
combination_drug_categories | array | drugbank_id , title , mesh_id |
adjunct_drug_categories | array | drugbank_id , title , mesh_id |
min_age | object | amount (integer), unit (string, one of “day”, “week”, “month”, “year”) |
max_age | object | amount (integer), unit (string, one of “day”, “week”, “month”, “year”) |
Within indications, it is commonly required to describe a medical condition. These are described below, in the condition objects section. The following indication properties take this form:
Property | Type | Description |
---|---|---|
condition | Condition | The condition which is the target of this indication. |
induction_of | Condition | A condition which is induced by the drug. |
process | Condition | Denotes a diagnosic process in diagnost indications. |
therapy | Condition | Describes a therapy which is provided by this drug. |
mechanism | Condition | Denotes the mechanism through which this drug achieves/contributes to the desired change. |
condition_associated_with | Condition array | |
equivalent_concept | Condition | A condition equivalent to the indication. Some indications can be directly mapped to MedDRA or ICD10 concepts. |
with_therapies | Condition array | Denotes adjunct therapies in adjunct indications. |
patient_characteristics | Condition array | List of one or more patient characteristics. Example: “immunocompromised” |
excluded_patient_characteristic | Condition array | List of characteristics which exclude patients from this indication. |
combination_type
Combination indications include a combination_type
field which denotes the type of combination described. This field can take on one of the 3 values listed in the table below.
combination_type Value | Description |
---|---|
product | Indication refers to a single product with multiple ingredients |
mixture | Indication refers to many products which use this ingredient along with others. In those combination products, each ingredient may have a distinct purpose. Example: cough/cold products often combine many ingredients, each with a separate purpose. |
regimen | Indication refers to a drug (potentially in a combination product) which is used with other products as part of a treatment regimen or cocktail. |
Some indications apply to a combination product being used as part of a regimen. These indications will have a "combination_type": "regimen"
value, which may obscure the fact that some of the drugs in with_drugs
are used in a combination product with the indicated drug. For this reason, each drug in the with_drugs
array is given its own combination_type
field. Generally this matches the combination_type
of the enclosing indication, but in the product/regimen scenario, any of the drugs in with_drugs
with "combination_type": "product"
are part of the combination product including the main drug of this indication.
Genetic Factors
Describes a genetic factor for indications, or conditions.
Property | Type | Description |
---|---|---|
gene | Condition | |
mutation | Condition | |
positive_finding | Condition | |
negative_finding | Condition | |
related_genes | Condition array |
Search indications
curl -L 'https://api.drugbank.com/v1/indications?q=arthritis'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"kind": "used_in_combination_for_symptomatic_treatment_of",
"off_label": false,
"otc_use": true,
"route": [
"Cutaneous"
],
"dose_form": [
"Plaster"
],
"dose_strength": [],
"combination_type": "product",
"drug": {
"name": "Levomenthol",
"drugbank_id": "DB00825"
},
"regions": "Malaysia",
"condition": {
"name": "Arthritis",
"drugbank_id": "DBCOND0016433",
"meddra_id": "llt/10003246",
"snomed_id": "c/372091005",
"icd10_id": "c/M19.90"
},
"combination_drugs": [
{
"name": "Mentha arvensis top",
"drugbank_id": "DB14346"
},
{
"name": "Eucalyptus oil",
"drugbank_id": "DB11114"
},
"..."
]
}
]
This endpoint searches for conditions, and then returns indications related to those conditions. Documentation is available for the indication and condition JSON objects.
This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/indications
Query Parameters
Parameter | Default | Description |
---|---|---|
q | “” | Text used to search conditions by name. |
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
off_label | null | Limits results by the value of the off_label attribute of the indications. |
otc_use | null | Limits results by the value of the otc_use attribute of the indications. |
kind | null | Limits results by the value of the kind attribute of the indications. |
Get Drugs By Indications Search
curl -L 'https://api.drugbank.com/v1/indications/drugs?q=arthritis'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": "DB00825",
"name": "Levomenthol",
"cas_number": "2216-51-5",
"annotation_status": "complete",
"availability_by_region": [
{
"region": "ca",
"max_phase": 4,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
{
"region": "eu",
"max_phase": 4,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": true,
"post_market_cancelled": false
},
"..."
],
"description": "Menthol is a covalent organic compound made synthetically or obtained from peppermint or other mint oils...",
"simple_description": "A medication used to treat mild to moderate muscle and joint pain.",
"clinical_description": "An organic compound used to treat mild to moderate muscle and joint pain.",
"synonyms": [
"(-)-Menthol",
"(−)-(1R,3R,4S)-menthol",
"..."
],
"pharmacology": {
"indication_descripton": "Used to treat occasional minor irritation, pain, sore mouth, and sore throat as well as cough associated with a cold or inhaled irritants.",
"pharmacodynamic_description": "Menthol is a covalent organic compound made synthetically or obtained from peppermint or other mint oils...",
"mechanism_of_action_description": "Menthol primarily activates the cold-sensitive TRPM8 receptors in the skin...",
"absorption": "",
"protein_binding": "",
"volume_of_distribution": [],
"clearance": [],
"half_life": "",
"route_of_elimination": "",
"toxicity_description": "Menthol, DL: ORAL (LD50): Acute: 2900 mg/kg [Rat], 3100 mg/kg [Mouse]. DERMAL (LD50): Acute: 5001 mg/kg [Rabbit]."
},
"food_interactions": [],
"identifiers": {
"drugbank_id": "DB00825",
"inchi": "InChI=1S/C10H20O/c1-7(2)9-5-4-8(3)6-10(9)11/h7-11H,4-6H2,1-3H3/t8-,9+,10-/m1/s1",
"inchikey": "NOOLISFMXDJSKH-KXUCPTDWSA-N",
"atc_codes": []
},
"therapeutic_categories": [
{
"drugbank_id": "DBCAT003297",
"name": "Antiarrhythmic agents",
"mesh_id": "D000889",
"mesh_tree_numbers": [
"D27.505.954.411.097"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Agents, Anti-Arrhythmia",
"Agents, Antiarrhythmia",
"..."
],
"description": "Agents used for the treatment or prevention of cardiac arrhythmias..."
},
{
"drugbank_id": "DBCAT003654",
"name": "Antipruritics and Local Anesthetics",
"mesh_id": null,
"mesh_tree_numbers": [],
"atc_code": null,
"atc_level": null,
"synonyms": [],
"description": null
},
"..."
]
}
]
This endpoint retrieves drugs based on a search of conditions and related indications. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/indications/drugs
This endpoint supports pagination.
URL Parameters
Parameter | Default | Description |
---|---|---|
q | “” | Text used to search conditions by name. |
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
off_label | null | Limits results by the value of the off_label attribute of the indications. |
otc_use | null | Limits results by the value of the otc_use attribute of the indications. |
kind | null | Limits results by the value of the kind attribute of the indications. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_references | false | If true , includes the lists of references for each drug. See References for details. |
Example: Search indications by condition and more specific forms
curl -L 'https://api.drugbank.com/v1/indications/drugs?q=autoimmune+disorders&more=specific'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": "DB00635",
"name": "Prednisone",
"cas_number": "53-03-2",
"annotation_status": "complete",
"availability_by_region": [
{
"region": "ca",
"max_phase": 4,
"marketed_prescription": true,
"generic_available": true,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
{
"region": "eu",
"max_phase": 4,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": true,
"post_market_cancelled": false
},
"..."
],
"description": "A synthetic anti-inflammatory glucocorticoid derived from [cortisone]...",
"simple_description": "A medication used to treat inflammation, immune reactions, hormone conditions, and abnormal cell growth.",
"clinical_description": "A corticosteroid used to treat inflammation or immune-mediated reactions and to treat endocrine or neoplastic diseases.",
"synonyms": [
"1,2-Dehydrocortisone",
"1,4-Pregnadiene-17α,21-diol-3,11,20-trione",
"..."
],
"pharmacology": {
"indication_descripton": "Prednisone is indicated as an anti-inflammatory or immunosuppressive drug for allergic, dermatologic, gastrointestinal, hematologic, ophthalmologic, ne...",
"pharmacodynamic_description": "Corticosteroids bind to the glucocorticoid receptor, inhibiting pro-inflammatory signals, and promoting anti-inflammatory signals...",
"mechanism_of_action_description": "Prednisone is first metabolized in the liver to its active form, prednisolone, a glucocorticoid agonist corticosteroid...",
"absorption": "Oral prednisone has a T<sub>max</sub> of 2 hours, while the delayed-release formulation has a T<sub>max</sub> of 6-6...",
"protein_binding": "Corticosteroids are generally bound to corticosteroid binding globulin[A187439] and serum albumin[A187436] in plasma...",
"volume_of_distribution": [
"Data regarding the volume of distribution for prednisone is not readily available..."
],
"clearance": [
"Data regarding the clearance of prednisone is not readily available.[L10502]",
"",
"..."
],
"half_life": "Prednisone and its active metabolite [prednisolone] have half lives of 2-3 hours from both immediate and delayed release preparations.[L10502]",
"route_of_elimination": "Prednisone is excreted mainly in the urine as sulfate and glucuronide conjugates.[L10502]",
"toxicity_description": "Data regarding acute overdoses of prednisone are rare but prolonged high doses of prednisone can lead to a higher incidence and severity of adverse eff..."
},
"food_interactions": [
"Avoid alcohol.",
"Take with food. Food reduces irritation."
],
"identifiers": {
"drugbank_id": "DB00635",
"inchi": "InChI=1S/C21H26O5/c1-19-7-5-13(23)9-12(19)3-4-14-15-6-8-21(26,17(25)11-22)20(15,2)10-16(24)18(14)19/h5,7,9,14-15,18,22,26H,3-4,6,8,10-11H2,1-2H3/t14-,1...",
"inchikey": "XOFYZVNMUHMLCC-ZPOLXVRWSA-N",
"atc_codes": [
{
"code": "A07EA03",
"title": "prednisone",
"combination": false
},
{
"code": "H02AB07",
"title": "prednisone",
"combination": false
}
]
},
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000556",
"name": "Adrenal Cortex Hormones",
"mesh_id": "D000305",
"mesh_tree_numbers": [
"D06.472.040"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Hormones, Adrenal Cortex"
],
"description": null
},
{
"drugbank_id": "DBCAT003629",
"name": "Adrenals",
"mesh_id": null,
"mesh_tree_numbers": [],
"atc_code": null,
"atc_level": null,
"synonyms": [],
"description": null
},
"..."
]
}
]
HTTP Request
GET https://api.drugbank.com/v1/indications?q=autoimmune+disorders&more=specific
Gets indications for items that match the search term, as well as any more specific terms. For instance, this could match indications for ‘autoimmune disorders’, as well as 'rheumatoid arthritis’, 'Celiac disease’, etc..
Conditions
Common Query Parameter Values
When specified, the parameters listed in the table below can be used with the following values:
Parameter | Value | Description |
---|---|---|
more | null | No effect - indications are returned based solely on the names of conditions. |
more | specific | Include indications for more specific forms of the conditions matching the q parameter. |
more | general | Include indications for more general forms of the conditions matching the q parameter. |
Data Types
The conditions API uses the following data types:
Conditions
{
"title": "magnetic resonance angiography",
"drugbank_id": "DBCOND0000008",
"meddra_id": "llt/10057784",
"icd10_id": null,
"snomed_id": null,
"related_concepts": [{
"title": "magnetic resonance imaging",
"drugbank_id": "DBCOND0000007",
"meddra_id": null,
"icd10_id": null
}]
}
Condition objects with title, meddra_id, icd10_id, and snomed_id properties are used in several places in structured indication objects. Often, condition objects denote a medical condition, but they are also used to describe procedures, therapies, and genes.
Condition objects have the following properties
Property | Type | Description |
---|---|---|
title | string | Name/description of the condition |
drugbank_id | string | DrugBank id for the product concept. |
meddra_id | string | MedDRA identifier |
icd10_id | string | ICD10 identifier |
snomed_id | string | SNOMED identifier |
uniprot_id | string | UniProt identifer, for conditions which describe a gene. |
related_concepts | Condition array | |
as_drug | Drug | The DrugBank drug of the same name as this condition, if any exists. |
as_drug_category | Category | The DrugBank drug category of the same name as this condition, if any exists. |
modification_of | Object | See below |
combination_of | Object | See below |
combination_of
{
"title": "Conjunctivitis caused by chlamydia",
"drugbank_id": "DBCOND0021916",
"meddra_id": "pt/10010745",
"icd10_id": "c/A74.0",
"synonyms": [
"Conjunctivitis chlamydial",
"Chlamydial Conjunctivitis",
"Inclusion blenorrhoea",
"Inclusion blenorrhea",
"Conjunctivitis, Inclusion",
"Paratrachoma",
"Inclusion conjunctivitis"
],
"combination_of": {
"additional_characteristics": [],
"caused_by": [
{
"title": "Chlamydial Infections",
"drugbank_id": "DBCOND0020995",
"meddra_id": "hlt/10008561",
"icd10_id": "c/A74.9",
"uniprot_id": null
}
],
"included_conditions": [
{
"title": "Conjunctivitis",
"drugbank_id": "DBCOND0009989",
"meddra_id": "llt/10010741",
"icd10_id": "c/H10.9",
"uniprot_id": null
}
],
"excluded_conditions": []
}
}
This property describes the outer Condition as a combination of other conditions. Often, this is used to tie a group of conditions to each individual condition which are more likely to have a MedDRA ID, ICD10 ID, etc.
Property | Type | Description |
---|---|---|
caused_by | Condition array | |
included_conditions | Condition array | |
excluded_conditions | Condition array | |
additional_characteristics | Condition array | Characteristic of the combination condition. |
modification_of
{
"title": "acute, non-severe allergic rhinitis",
"modification_of": {
"base": {
"title": "allergic rhinitis"
},
"severity": {
"includes": [ "acute" ],
"excludes": [ "severe" ]
}
}
}
This property describes the outer Condition as a modification to another condition. Often, this is used to tie a slightly more specific form of a condition to a more general form, which is more likely to have a MedDRA ID, ICD10 ID, etc. For instance, “acute allergic rhinitis” could be considered to be “allergic rhinitis” with the additional modifier “acute”.
Property | Type | Description |
---|---|---|
base | Condition | The base condition which is being modified. |
location | string | |
condition_stage | string | |
condition_status | string | |
severity | object | |
severity.includes | string array | |
severity.excludes | string array |
Search conditions
curl -L 'https://api.drugbank.com/v1/ca/conditions?q=arthritis'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Arthritis",
"drugbank_id": "DBCOND0016433",
"uniprot_id": null,
"meddra_id": "llt/10003246",
"icd10_id": "c/M19.90",
"snomed_id": "c/372091005"
},
{
"name": "Arthitis",
"drugbank_id": "DBCOND0094124",
"uniprot_id": null,
"meddra_id": "llt/10003246",
"icd10_id": "c/M19.90",
"snomed_id": "c/372091005"
},
"..."
]
This endpoint searches for conditions, and then returns indications related to those conditions. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/ca/conditions
Query Parameters
Parameter | Default | Description |
---|---|---|
q | “” | Text used to search conditions by name. |
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
exact | false | Determines how text results are matched. exact=true will not include partial matches such as ‘Rheumatoid Arthritis’ for the query 'arthritis’. |
Get a condition
curl -L 'https://api.drugbank.com/v1/ca/conditions/DBCOND0015777'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"name": "Gout",
"drugbank_id": "DBCOND0015777",
"meddra_id": "llt/10018634",
"snomed_id": "d/309672015",
"icd10_id": "c/M10.9",
"more_general": [
{
"name": "Disorders of purine metabolism",
"drugbank_id": "DBCOND0027454",
"meddra_id": "hlt/10070968",
"snomed_id": "c/32612005"
},
{
"name": "Purine and pyrimidine metabolism disorders",
"drugbank_id": "DBCOND0027729",
"meddra_id": "hlgt/10037546",
"snomed_id": "c/238006008",
"icd10_id": "c/E79"
},
"..."
],
"more_specific": [
{
"name": "Gout Flares",
"drugbank_id": "DBCOND0059958",
"meddra_id": "llt/10064900",
"snomed_id": "c/190844004",
"icd10_id": "c/M10"
},
{
"name": "Acute Gout Flare",
"drugbank_id": "DBCOND0043190"
},
"..."
],
"indications": [
{
"kind": "management_of",
"off_label": true,
"otc_use": false,
"drug": {
"name": "Ibuprofen",
"drugbank_id": "DB01050"
},
"condition": {
"name": "Gout",
"drugbank_id": "DBCOND0015777",
"meddra_id": "llt/10018634",
"snomed_id": "d/309672015",
"icd10_id": "c/M10.9"
}
},
{
"kind": "management_of",
"off_label": false,
"otc_use": false,
"drug": {
"name": "Febuxostat",
"drugbank_id": "DB04854"
},
"regions": "US",
"condition": {
"name": "Chronic, symptomatic Hyperuricemia",
"drugbank_id": "DBCOND0023191",
"icd10_id": "c/M10.9",
"modification_of": {
"base": {
"name": "Hyperuricemia",
"drugbank_id": "DBCOND0004938",
"meddra_id": "pt/10020903",
"snomed_id": "c/271198001",
"icd10_id": "c/E79.0"
},
"severity": {
"includes": [
"chronic",
"symptomatic"
],
"excludes": []
}
}
},
"condition_associated_with": [
{
"name": "Gout",
"drugbank_id": "DBCOND0015777",
"meddra_id": "llt/10018634",
"snomed_id": "d/309672015",
"icd10_id": "c/M10.9"
}
]
},
"..."
]
}
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Get indications linked to a condition
curl -L 'https://api.drugbank.com/v1/ca/conditions/DBCOND0015777/indications'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"kind": "management_of",
"off_label": true,
"otc_use": false,
"drug": {
"name": "Ibuprofen",
"drugbank_id": "DB01050"
},
"condition": {
"name": "Gout",
"drugbank_id": "DBCOND0015777",
"meddra_id": "llt/10018634",
"snomed_id": "d/309672015",
"icd10_id": "c/M10.9"
}
},
{
"kind": "management_of",
"off_label": false,
"otc_use": false,
"drug": {
"name": "Febuxostat",
"drugbank_id": "DB04854"
},
"regions": "US",
"condition": {
"name": "Chronic, symptomatic Hyperuricemia",
"drugbank_id": "DBCOND0023191",
"icd10_id": "c/M10.9",
"modification_of": {
"base": {
"name": "Hyperuricemia",
"drugbank_id": "DBCOND0004938",
"meddra_id": "pt/10020903",
"snomed_id": "c/271198001",
"icd10_id": "c/E79.0"
},
"severity": {
"includes": [
"chronic",
"symptomatic"
],
"excludes": []
}
}
},
"condition_associated_with": [
{
"name": "Gout",
"drugbank_id": "DBCOND0015777",
"meddra_id": "llt/10018634",
"snomed_id": "d/309672015",
"icd10_id": "c/M10.9"
}
]
},
"..."
]
This endpoint retrieves indications linked to a condition.
HTTP Request
GET https://api.drugbank.com/v1/ca/conditions/<ID>/indications
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
off_label | null | Limits results by the value of the off_label attribute of the indications. |
otc_use | null | Limits results by the value of the otc_use attribute of the indications. |
kind | null | Limits results by the value of the kind attribute of the indications. |
This endpoint supports pagination.
Get product concepts linked to a condition
curl -L 'https://api.drugbank.com/v1/ca/conditions/DBCOND0015777/product_concepts'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Ibuprofen",
"display_name": null,
"drugbank_pcid": "DBPC0011945",
"brand": null,
"level": 1,
"route": null,
"form": null,
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1972-12-31",
"regions": {
"us": true,
"canada": true,
"eu": true
},
"rxnorm_concepts": [
{
"name": "ibuprofen",
"RXCUI": "5640"
}
],
"ingredients": [
{
"name": "Ibuprofen",
"drug": {
"name": "Ibuprofen",
"drugbank_id": "DB01050"
}
}
]
},
{
"name": "Febuxostat",
"display_name": null,
"drugbank_pcid": "DBPC0050807",
"brand": null,
"level": 1,
"route": null,
"form": null,
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "2008-04-21",
"regions": {
"us": true,
"canada": true,
"eu": true
},
"rxnorm_concepts": [
{
"name": "febuxostat",
"RXCUI": "73689"
}
],
"ingredients": [
{
"name": "Febuxostat",
"drug": {
"name": "Febuxostat",
"drugbank_id": "DB04854"
}
}
]
},
"..."
]
This endpoint retrieves product concepts linked to a condition.
HTTP Request
GET https://api.drugbank.com/v1/us/conditions/<ID>/product_concepts
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
off_label | null | Limits results by the value of the off_label attribute of the indications used to find product concepts. |
otc_use | null | Limits results by the value of the otc_use attribute of the indications used to find product concepts. |
kind | null | Limits results by the value of the kind attribute of the indications used to find product concepts. |
level | The product concept level to filter by (optional). | |
min_level | The minimum product concept level to return (optional). | |
min_level | The maximum product concept level to return (optional). | |
unbranded_only | false | If true , returns only product concepts without an associated brand. |
Get drugs linked to a condition via indications
curl -L 'https://api.drugbank.com/v1/ca/conditions/DBCOND0012160/drugs'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": "DB09300",
"name": "Butylscopolamine",
"cas_number": "7182-53-8",
"annotation_status": "complete",
"availability_by_region": [
{
"region": "ca",
"max_phase": 4,
"marketed_prescription": true,
"generic_available": false,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
{
"region": "eu",
"max_phase": 1,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
"..."
],
"description": "Butylscopolamine is a peripherally acting antimuscarinic, anticholinergic agent...",
"simple_description": "A medication used to treat abdominal cramps and pain caused by certain medical conditions.",
"clinical_description": "An antispasmodic and anticholinergic agent used for the symptomatic treatment of abdominal cramping and pain.",
"synonyms": [
"butilescopolamina",
"N-butylscopolammonium",
"..."
],
"pharmacology": {
"indication_descripton": "Used to treat abdmoninal cramping and pain [FDA Label].",
"pharmacodynamic_description": "Scopolamine butylbromide is a muscarinic antagonist which acts to prevent acetylcholine-stimulated contraction of smooth muscle in the gastrointestinal...",
"mechanism_of_action_description": "Scopolamine butylbromide binds to muscarinic M3 receptors in the gastrointestinal tract [A7905]...",
"absorption": "Scopolamine butylbromide has extremely low oral bioavailability with only 0...",
"protein_binding": "",
"volume_of_distribution": [
"The volume of distribution is 128 liters [A7905]."
],
"clearance": [
"Total clearace is 1.2 liters per minute [A7905]."
],
"half_life": "The half life of elimination is 1-5 hours [A7905].",
"route_of_elimination": "Mainly eliminated in the feces (69...",
"toxicity_description": ""
},
"food_interactions": [],
"identifiers": {
"drugbank_id": "DB09300",
"inchi": "InChI=1S/C21H30NO4/c1-3-4-10-22(2)17-11-15(12-18(22)20-19(17)26-20)25-21(24)16(13-23)14-8-6-5-7-9-14/h5-9,15-20,23H,3-4,10-13H2,1-2H3/q+1/t15-,16-,17-,...",
"inchikey": "YBCNXCRZPWQOBR-WVHCHWADSA-N",
"atc_codes": [
{
"code": "A03DB04",
"title": "butylscopolamine and analgesics",
"combination": true
},
{
"code": "A03BB01",
"title": "butylscopolamine",
"combination": false
}
]
},
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000533",
"name": "Anticholinergic Agents",
"mesh_id": "D018680",
"mesh_tree_numbers": [
"D27.505.519.625.120.200",
"D27.505.696.577.120.200"
],
"atc_code": "N04A",
"atc_level": 3,
"synonyms": [
"Acetylcholine Antagonists",
"Agents, Anticholinergic",
"..."
],
"description": "Drugs that bind to but do not activate CHOLINERGIC RECEPTORS, thereby blocking the actions of ACETYLCHOLINE or cholinergic agonists."
},
{
"drugbank_id": "DBCAT003668",
"name": "Antimuscarinics Antispasmodics",
"mesh_id": null,
"mesh_tree_numbers": [],
"atc_code": null,
"atc_level": null,
"synonyms": [],
"description": null
},
"..."
]
},
{
"drugbank_id": "DB00852",
"name": "Pseudoephedrine",
"cas_number": "90-82-4",
"annotation_status": "complete",
"availability_by_region": [
{
"region": "ca",
"max_phase": 4,
"marketed_prescription": true,
"generic_available": true,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
{
"region": "eu",
"max_phase": 4,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": true,
"post_market_cancelled": false
},
"..."
],
"description": "Pseudoephedrine is structurally related to [ephedrine] but exerts a weaker effect on the sympathetic nervous system...",
"simple_description": "A medication used to treat congestion and a runny nose.",
"clinical_description": "An alpha and beta adrenergic agonist used to treat nasal and sinus congestion, as well as allergic rhinitis.",
"synonyms": [
"(+) threo-2-(methylamino)-1-phenyl-1-propanol",
"(+)-(1S,2S)-Pseudoephedrine",
"..."
],
"pharmacology": {
"indication_descripton": "Pseudoephedrine is a sympathomimetic amine used for its decongestant activity.[L11031,L11037,L11040,L11046,L11052,L11058,L11061]",
"pharmacodynamic_description": "Pseudoephedrine causes vasoconstriction which leads to a decongestant effect...",
"mechanism_of_action_description": "Pseudoephedrine acts mainly as an agonist of alpha adrenergic receptors[A189381] and less strongly as an agonist of beta adrenergic receptors...",
"absorption": "A 240mg oral dose of pseudoephedrine reaches a C<sub>max</sub> of 246...",
"protein_binding": "-pseudoephedrine is 6...",
"volume_of_distribution": [
"The apparent volume of distribution of pseudoephedrin is 2.6-3.3L/kg.[L11031]"
],
"clearance": [
"A 60mg oral dose of pseudoephedrine has a clearance of 5.9±1.7mL/min/kg.[L11040]"
],
"half_life": "The mean elimination half life of pseudoephedrine is 6.0h.[L11031]",
"route_of_elimination": "55-75% of an oral dose is detected in the urine as unchanged pseudoephedrine.[L11040]",
"toxicity_description": "The oral LD<sub>50</sub> of pseudoephedrine is 2206mg/kg in rats and 726mg/kg in mice..."
},
"food_interactions": [
"Take with or without food. The absorption is unaffected by food."
],
"identifiers": {
"drugbank_id": "DB00852",
"inchi": "InChI=1S/C10H15NO/c1-8(11-2)10(12)9-6-4-3-5-7-9/h3-8,10-12H,1-2H3/t8-,10+/m0/s1",
"inchikey": "KWGRBVOPPLSCSI-WCBMZHEXSA-N",
"atc_codes": [
{
"code": "R01BA52",
"title": "pseudoephedrine, combinations",
"combination": true
},
{
"code": "R01BA02",
"title": "pseudoephedrine",
"combination": false
}
]
},
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000537",
"name": "Adrenergic Agonists",
"mesh_id": "D000322",
"mesh_tree_numbers": [
"D27.505.519.625.050.100",
"D27.505.696.577.050.100"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Adrenergic Agonist",
"Adrenergic Receptor Agonist",
"..."
],
"description": "Drugs that bind to and activate adrenergic receptors."
},
{
"drugbank_id": "DBCAT000538",
"name": "Adrenergic alpha-1 Receptor Agonists",
"mesh_id": "D058646",
"mesh_tree_numbers": [
"D27.505.519.625.050.100.100.100",
"D27.505.696.577.050.100.100.100"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Adrenergic alpha 1 Agonists",
"Adrenergic alpha 1 Receptor Agonist",
"..."
],
"description": "Compounds that bind to and activate ADRENERGIC ALPHA-1 RECEPTORS."
},
"..."
]
},
"..."
]
This endpoint retrieves drugs linked to a condition via indications.
HTTP Request
GET https://api.drugbank.com/v1/ca/conditions/<ID>/drugs
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
off_label | null | Limits results by the value of the off_label attribute of the indications used to find drugs. |
otc_use | null | Limits results by the value of the otc_use attribute of the indications used to find drugs. |
kind | null | Limits results by the value of the kind attribute of the indications used to find drugs. |
include_references | false | If true , includes the lists of references for each drug. See References for details. |
Get more general forms of a condition
curl -L 'https://api.drugbank.com/v1/ca/conditions/DBCOND0015777/general'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Disorders of purine metabolism",
"drugbank_id": "DBCOND0027454",
"meddra_id": "hlt/10070968",
"snomed_id": "c/32612005"
},
{
"name": "Purine and pyrimidine metabolism disorders",
"drugbank_id": "DBCOND0027729",
"meddra_id": "hlgt/10037546",
"snomed_id": "c/238006008",
"icd10_id": "c/E79"
},
"..."
]
This endpoint retrieves more general forms of a condition.
HTTP Request
GET https://api.drugbank.com/v1/ca/conditions/<ID>/general
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Get more specific forms of a condition
curl -L 'https://api.drugbank.com/v1/ca/conditions/DBCOND0015777/specific'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Gout Flares",
"drugbank_id": "DBCOND0059958",
"meddra_id": "llt/10064900",
"snomed_id": "c/190844004",
"icd10_id": "c/M10"
},
{
"name": "Gout flare",
"drugbank_id": "DBCOND0023047",
"meddra_id": "llt/10064900",
"snomed_id": "c/190844004",
"icd10_id": "c/M10"
},
"..."
]
This endpoint retrieves more specific forms of a condition.
HTTP Request
GET https://api.drugbank.com/v1/ca/conditions/<ID>/specific
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Get related conditions
curl -L 'https://api.drugbank.com/v1/ca/conditions/DBCOND0023821/references'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"name": "Inflammations",
"drugbank_id": "DBCOND0024686",
"meddra_id": "llt/10021995",
"snomed_id": "c/23583003"
},
{
"name": "Pain",
"drugbank_id": "DBCOND0012160",
"meddra_id": "llt/10033470",
"snomed_id": "c/279075009",
"icd10_id": "c/R52"
}
]
This endpoint retrieves related conditions.
HTTP Request
GET https://api.drugbank.com/v1/ca/conditions/<ID>/references
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Categories
Common Category Query Parameter Values
When specified, the parameters listed in the table below can be used with the following values:
Parameter | Value | Description |
---|---|---|
include_children | blank | No effect. |
include_children | 1, 2 or 3 | Include nested children to a depth of 1, 2, or 3. |
include_parents | blank | No effect. |
include_parents | 1, 2 or 3 | Include nested parents to a depth of 1, 2, or 3. |
source | blank or all |
Include children/parents from any hierarchy. |
source | atc |
Include children/parents from the ATC hierarchy. |
source | mesh |
Include children/parents from the MeSH hierarchy. |
To limit the amount of data included, parent/child inclusion only goes outward
from the categories being shown. I.E. include_parents=all&include_children=all
will show all children and all parents of a category, not all children and all
parents of all categories related categories. In other words,
"parents": []
will not include "children": []
and vice-versa.
ATC and MeSH identifiers
Categories with equivalent entries in ATC and MeSH can be accessed by the identifiers used in ATC and MeSH, in addition to the DrugBank id assigned to those categories. In most cases below, examples of requests by ATC or MeSH identifier will be given without the response, as this would be the regardless of which identifier is used.
View Category
curl -L 'https://api.drugbank.com/v1/ca/categories/DBCAT001220'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"drugbank_id": "DBCAT001034",
"name": "Xanthine derivatives",
"mesh_id": "D013806",
"mesh_tree_numbers": [
"D03.132.960.751",
"D03.633.100.759.758.824.751"
],
"atc_code": "N06BC",
"atc_level": 4,
"categorization_kinds": [
"therapeutic",
"pharmacological",
"..."
],
"synonyms": [
"1,3 Dimethylxanthine",
"1,3-Dimethylxanthine",
"..."
],
"description": "A methyl xanthine derivative from tea with diuretic, smooth muscle relaxant, bronchial dilation, cardiac and central nervous system stimulant activitie..."
}
This endpoint retrieves a specific category based on DrugBank ID, ATC Code, or MeSH ID.
HTTP Request
GET https://api.drugbank.com/v1/us/categories/<ID>
GET https://api.drugbank.com/v1/us/categories/atc/<ATC_CODE>
GET https://api.drugbank.com/v1/us/categories/mesh/<MESH_ID>
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the category. |
ATC_CODE | The ATC Code of the category. |
MESH_ID | The unique MeSH identifier of the category. |
View Category by ATC code
curl -L 'https://api.drugbank.com/v1/ca/categories/atc/L01'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"drugbank_id": "DBCAT000024",
"name": "ANTINEOPLASTIC AGENTS",
"mesh_id": "D000970",
"mesh_tree_numbers": [
"D27.505.954.248"
],
"atc_code": "L01",
"atc_level": 2,
"categorization_kinds": [
"therapeutic",
"pharmacological",
"..."
],
"synonyms": [
"Agents, Anticancer",
"Agents, Antineoplastic",
"..."
],
"description": "Substances that inhibit or prevent the proliferation of NEOPLASMS."
}
This endpoint retrieves a specific category based on ATC Code.
HTTP Requests
GET https://api.drugbank.com/v1/us/categories/atc/<ATC_CODE>
URL Parameters
Parameter | Description |
---|---|
ATC_CODE | The ATC Code of the category to retrieve the parent categories. |
View Category by MeSH Unique ID
curl -L 'https://api.drugbank.com/v1/ca/categories/mesh/D015122'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"drugbank_id": null,
"name": "Mercaptopurine",
"mesh_id": "D015122",
"mesh_tree_numbers": [
"D02.886.489.534",
"D03.633.100.759.570"
],
"atc_code": null,
"atc_level": null,
"categorization_kinds": [],
"synonyms": [],
"description": null
}
This endpoint retrieves a specific category based on MeSH Unique Identifier.
HTTP Requests
GET https://api.drugbank.com/v1/us/categories/mesh/<MESH_ID>/parents
URL Parameters
Parameter | Description |
---|---|
MESH_ID | The unique MeSH identifier of the category to retrieve the parent categories. |
View Parents of a Category
curl -L 'https://api.drugbank.com/v1/ca/categories/DBCAT001220/parents?source=mesh&include_parents=3'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": null,
"name": "Xanthines",
"mesh_id": "D014970",
"mesh_tree_numbers": [
"D03.132.960",
"D03.633.100.759.758.824"
],
"atc_code": null,
"atc_level": null,
"categorization_kinds": [],
"synonyms": [],
"description": null,
"parents": [
{
"drugbank_id": "DBCAT000443",
"name": "Alkaloids",
"mesh_id": "D000470",
"mesh_tree_numbers": [
"D03.132"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Alkaloids, Plant",
"Plant Alkaloids"
],
"description": "Organic nitrogenous bases...",
"parents": [
{
"drugbank_id": "DBCAT000229",
"name": "Heterocyclic Compounds",
"mesh_id": "D006571",
"mesh_tree_numbers": [
"D03"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Compounds, Heterocyclic"
],
"description": "Ring compounds having atoms other than carbon in their nuclei. (Grant & Hackh's Chemical Dictionary, 5th ed)"
}
]
},
{
"drugbank_id": "DBCAT000504",
"name": "Purinones",
"mesh_id": "D011688",
"mesh_tree_numbers": [
"D03.633.100.759.758"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Oxopurines"
],
"description": null,
"parents": [
{
"drugbank_id": "DBCAT000253",
"name": "Purines",
"mesh_id": "D011687",
"mesh_tree_numbers": [
"D03.633.100.759"
],
"atc_code": null,
"atc_level": null,
"synonyms": [],
"description": "A series of heterocyclic compounds that are variously substituted in nature and are known also as purine bases...",
"parents": [
{
"drugbank_id": "DBCAT000254",
"name": "Heterocyclic Compounds, 2-Ring",
"mesh_id": "D006574",
"mesh_tree_numbers": [
"D03.633.100"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"2-Ring Heterocyclic Compounds",
"Compounds, 2-Ring Heterocyclic",
"..."
],
"description": "A class of organic compounds containing two ring structures, one of which is made up of more than one kind of atom, usually carbon plus another atom..."
}
]
}
]
}
]
}
]
Returns an array of categories which are parents of the specified category.
Accepts the source
parameter to limit relationships.
By default this will return all parents.
This endpoint supports pagination.
HTTP Requests
GET https://api.drugbank.com/v1/us/categories/<ID>/parents
GET https://api.drugbank.com/v1/us/categories/atc/<ATC_CODE>/parents
GET https://api.drugbank.com/v1/us/categories/mesh/<MESH_ID>/parents
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the category to retrieve the child categories. |
ATC_CODE | The ATC Code of the category to retrieve the child categories. |
MESH_ID | The unique MeSH identifier of the category to retrieve the child categories. |
View Children of a Category
curl -L 'https://api.drugbank.com/v1/ca/categories/DBCAT002118/children?source=atc'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": null,
"name": "STOMATOLOGICAL PREPARATIONS",
"mesh_id": null,
"mesh_tree_numbers": [],
"atc_code": "A01",
"atc_level": 2,
"categorization_kinds": [],
"synonyms": [],
"description": null
},
{
"drugbank_id": "DBCAT002221",
"name": "DRUGS FOR ACID RELATED DISORDERS",
"mesh_id": null,
"mesh_tree_numbers": [],
"atc_code": "A02",
"atc_level": 2,
"categorization_kinds": [
"indexing"
],
"synonyms": [],
"description": null
},
"..."
]
Returns an array of categories which are children of the specified category.
Accepts the source
parameter to limit relationships.
By default this will return all parents.
This endpoint supports pagination.
HTTP Requests
GET https://api.drugbank.com/v1/us/categories/<ID>/children
GET https://api.drugbank.com/v1/us/categories/atc/<ATC_CODE>/children
GET https://api.drugbank.com/v1/us/categories/mesh/<MESH_ID>/children
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the category to retrieve the child categories. |
ATC_CODE | The ATC Code of the category to retrieve the child categories. |
MESH_ID | The unique MeSH identifier of the category to retrieve the child categories. |
Get Drugs in a Category
curl -L 'https://api.drugbank.com/v1/us/categories/DBCAT001220/drugs'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": "DB14018",
"name": "Bromotheophylline",
"cas_number": "10381-75-6",
"annotation_status": "complete",
"availability_by_region": [
{
"region": "ca",
"max_phase": 4,
"marketed_prescription": false,
"generic_available": true,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
{
"region": "eu",
"max_phase": 0,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": false,
"post_market_cancelled": false
},
"..."
],
"description": "Bromotheophylline is the active moiety of pamabrom, a mixture of 2-amino-2-methyl-propanol and bromotheophylline...",
"simple_description": null,
"clinical_description": null,
"synonyms": [
"8-Bromotheophylline"
],
"pharmacology": {
"indication_descripton": "Bromotheophylline is used as a diuretic and also, in combination with [DB00316], it is used for the relief of temporary water weight gain, bloating, sw...",
"pharmacodynamic_description": "Bromotheophylline diuretic action will produce an immediate increase in urination frequency...",
"mechanism_of_action_description": "Bromotheophylline is part of the group of the xanthines...",
"absorption": "When administered after one single oral dosage, bromotheophylline is rapidly absorbed and it reaches a maximal plasma concentration of 2...",
"protein_binding": "This pharmacokinetic property has not been determined.",
"volume_of_distribution": [
"This pharmacokinetic property has not been determined."
],
"clearance": [
"This pharmacokinetic property has not been determined."
],
"half_life": "The apparent elimination half-life is registered to be 21.35 hours.[L2743]",
"route_of_elimination": "This pharmacokinetic property has not been determined.",
"toxicity_description": "In overdose, bromotheophylline does not produce hepatic toxicity.[L2743]"
},
"food_interactions": [
"Drink plenty of fluids. Avoid dehydration by drinking 6-8 glasses of water daily.",
"Take with a full glass of water."
],
"identifiers": {
"drugbank_id": "DB14018",
"inchi": "InChI=1S/C7H7BrN4O2/c1-11-4-3(9-6(8)10-4)5(13)12(2)7(11)14/h1-2H3,(H,9,10)",
"inchikey": "SKTFQHRVFFOHTQ-UHFFFAOYSA-N",
"atc_codes": [
{
"code": "R03DA20",
"title": "combinations of xanthines",
"combination": true
}
]
},
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000542",
"name": "Diuretics",
"mesh_id": "D004232",
"mesh_tree_numbers": [
"D27.505.696.560.500"
],
"atc_code": "C03",
"atc_level": 2,
"synonyms": [
"Diuretic Effect",
"Diuretic Effects",
"..."
],
"description": "Agents that promote the excretion of urine through their effects on kidney function."
},
{
"drugbank_id": "DBCAT001034",
"name": "Xanthine derivatives",
"mesh_id": "D013806",
"mesh_tree_numbers": [
"D03.132.960.751",
"D03.633.100.759.758.824.751"
],
"atc_code": "N06BC",
"atc_level": 4,
"synonyms": [
"1,3 Dimethylxanthine",
"1,3-Dimethylxanthine",
"..."
],
"description": "A methyl xanthine derivative from tea with diuretic, smooth muscle relaxant, bronchial dilation, cardiac and central nervous system stimulant activitie..."
}
]
}
]
Returns all drugs in this category.
This endpoint supports pagination.
HTTP Requests
GET https://api.drugbank.com/v1/us/categories/<ID>/drugs
GET https://api.drugbank.com/v1/us/categories/atc/<ATC_CODE>/drugs
GET https://api.drugbank.com/v1/us/categories/mesh/<MESH_ID>/drugs
URL Parameters
Parameter | Description |
---|---|
ID | The DrugBank ID of the category to retrieve the linked drugs. |
ATC_CODE | The ATC Code of the category to retrieve the linked drugs. |
MESH_ID | The unique MeSH identifier of the category to retrieve the linked drugs. |
Query Parameters
Parameter | Default | Description |
---|---|---|
include_references | false | If true , includes the lists of references for each drug. See References for details. |
Search Category Names / Autocomplete
curl -L 'https://api.drugbank.com/v1/category_names?q=antimetabolites'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"categories": [
{
"hits": [
{
"field": "name",
"value": "<em>Antimetabolites</em>, Antineoplastic"
},
{
"field": "synonyms",
"value": "Antineoplastic <em>Antimetabolites</em>"
}
],
"drugbank_id": "DBCAT000685",
"name": "Antimetabolites, Antineoplastic",
"mesh_id": "D000964",
"mesh_tree_numbers": [
"D27.505.519.186.144",
"D27.505.954.248.144",
"..."
],
"atc_code": null,
"atc_level": null,
"categorization_kinds": [
"indexing"
],
"synonyms": [
"Antineoplastic Antimetabolites"
],
"description": "Antimetabolites that are useful in cancer chemotherapy."
},
{
"hits": [
{
"field": "name",
"value": "<em>Antimetabolites</em>"
}
],
"drugbank_id": "DBCAT000276",
"name": "Antimetabolites",
"mesh_id": "D000963",
"mesh_tree_numbers": [
"D27.505.519.186",
"D27.888.569.042"
],
"atc_code": "L01B",
"atc_level": 3,
"categorization_kinds": [
"therapeutic",
"indexing"
],
"synonyms": [],
"description": "Drugs that are chemically similar to naturally occurring metabolites, but differ enough to interfere with normal metabolic pathways..."
}
]
}
This endpoint returns a list of categories suitable for use with autocomplete forms, for quickly finding the right categories. Note that this search is for DrugBank categories and will not include results for ATC or Mesh categories that don’t map to a corresponding DrugBank category.
This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/category_names
Query Parameters
Parameter | Default | Description |
---|---|---|
q | null | The string you want to search with. |
fuzzy | false | If set to true , enable fuzzy search (see fuzzy searching below). |
Notice the hits
array returned in the results. The hits
contain highlighted
snippets from the match. You can use these highlights in autocomplete applications.
The matching part of the text is wrapped in an <em>
tag, which you can style
as you wish in your application.
Fuzzy Searching
This example demonstrates a misspelling of “Antimetabolite”, with fuzzy search enabled you will still get a result (try it yourself!).
curl -L 'https://api.drugbank.com/v1/category_names?q=aantimetabolites&fuzzy=true'
-H 'Authorization: myapikey'
Fuzzy searching allows for misspellings, but is not enabled by default,
you must set fuzzy=true
. By setting fuzzy=true
you are telling the API to
allow a certain number of misspellings to still count as a match (defaults to 2).
You can also pass a number of misspellings (0, 1, or 2) in to tailor the
likelihood of a match (for example, fuzzy=1
will allow 1 misspelled letter).
Adverse Effects
Common Query Parameter Values
When specified, the parameters listed in the table below can be used with the following values:
Parameter | Value | Description |
---|---|---|
more | null | No effect - adverse effects are returned based solely on the names of conditions. |
more | specific | Include adverse effects for more specific forms of the conditions matching the q parameter. |
more | general | Include adverse effects for more general forms of the conditions matching the q parameter. |
Search adverse effects
curl -L 'https://api.drugbank.com/v1/us/adverse_effects?q=cardiac'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Tacrolimus",
"drugbank_id": "DB00864"
},
"evidence_type": [
"clinical_trial"
],
"regions": "US",
"incidences": [
{
"kind": "experimental",
"name": "tacrolimus/MMF",
"percent": "89%"
}
],
"effect": {
"name": "Hypertension",
"drugbank_id": "DBCOND0020037",
"meddra_id": "llt/10020800",
"snomed_id": "c/266287006",
"icd10_id": "c/I10"
},
"patient_characteristics": [
{
"name": "Heart Transplant",
"drugbank_id": "DBCOND0037477",
"meddra_id": "llt/10007611",
"snomed_id": "c/32413006",
"icd10_id": "c/Z94.1"
}
]
}
]
This endpoint searches for conditions, and then returns adverse effects related to those conditions. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/adverse_effects
Query Parameters
Parameter | Default | Description |
---|---|---|
q | “” | Text used to search conditions by name. |
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
exact | false | Determines how text results are matched. exact=true will not include partial matches such as ‘Rheumatoid Arthritis’ for the query 'arthritis’. |
Get drugs linked to an adverse effect condition
curl -L 'https://api.drugbank.com/v1/us/adverse_effects/DBCOND0020133/drugs'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drugbank_id": "DB06282",
"name": "Levocetirizine",
"cas_number": "130018-77-8",
"annotation_status": "complete",
"availability_by_region": [
{
"region": "ca",
"max_phase": 4,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": true,
"post_market_cancelled": false
},
{
"region": "eu",
"max_phase": 4,
"marketed_prescription": false,
"generic_available": false,
"pre_market_cancelled": true,
"post_market_cancelled": false
},
"..."
],
"description": "Levocetirizine is a selective histamine H<sub>1</sub> antagonist used to treat a variety of allergic symptoms...",
"simple_description": "An allergy medication used to treat symptoms associated with seasonal allergies such as itchy eyes and runny nose...",
"clinical_description": "An H1-receptor antagonist used to treat symptoms associated with chronic allergic rhinitis and uncomplicated cases of chronic idiopathic urticaria.",
"synonyms": [
"2-(2-{4-[(R)-(4-chlorophenyl)(phenyl)methyl]piperazin-1-yl}ethoxy)acetic acid",
"Levocetirizina",
"..."
],
"pharmacology": {
"indication_descripton": "Levocetirizine is indicated to treat symptoms of perennial allergic rhinitis and uncomplicated skin manifestations of chronic idiopathic urticaria...",
"pharmacodynamic_description": "Levocetirizine is a second generation histamine H<sub>1</sub> antagonist used to treat various allergic symptoms...",
"mechanism_of_action_description": "Levocetirizine selectively inhibits histamine H<sub>1</sub> receptors...",
"absorption": "Following a 5mg oral dose of levocetirizine, a C<sub>max</sub> of 0...",
"protein_binding": "Plasma protein binding of levocetirizine was on average 96.1% 1 hour post dose and 91.9% 6 hours post dose.[A181727]",
"volume_of_distribution": [
"The volume of distribution of levocetirizine is 0.33±0.02L/kg.[A181727]"
],
"clearance": [
"The average clearance of levocetirizine is 0.57±0.18mL/min/kg.[A181727]"
],
"half_life": "The average half life of levocetirizine is 7.05±1.54 hours.[A181727]",
"route_of_elimination": "168 hours post dose an average of 85...",
"toxicity_description": "Patients experiencing an overdose may present with drowsiness..."
},
"food_interactions": [
"Avoid alcohol.",
"Take with or without food."
],
"identifiers": {
"drugbank_id": "DB06282",
"inchi": "InChI=1S/C21H25ClN2O3/c22-19-8-6-18(7-9-19)21(17-4-2-1-3-5-17)24-12-10-23(11-13-24)14-15-27-16-20(25)26/h1-9,21H,10-16H2,(H,25,26)/t21-/m1/s1",
"inchikey": "ZKLPARSLTMPFCP-OAQYLSRUSA-N",
"atc_codes": [
{
"code": "R06AE09",
"title": "levocetirizine",
"combination": false
}
]
},
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000399",
"name": "Central Nervous System Depressants",
"mesh_id": "D002492",
"mesh_tree_numbers": [
"D27.505.696.277",
"D27.505.954.427.210"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"CNS Depressants",
"Depressants, CNS"
],
"description": "A very loosely defined group of drugs that tend to reduce the activity of the central nervous system..."
},
{
"drugbank_id": "DBCAT000664",
"name": "Histamine Antagonists",
"mesh_id": "D006633",
"mesh_tree_numbers": [
"D27.505.519.625.375.425",
"D27.505.696.577.375.425"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Antagonists, Histamine",
"Antihistamines",
"..."
],
"description": "Drugs that bind to but do not activate histamine receptors, thereby blocking the actions of histamine or histamine agonists..."
},
"..."
]
}
]
This endpoint retrieves drugs linked to a condition via adverse effects.
HTTP Request
GET https://api.drugbank.com/v1/us/adverse_effects/<ID>/drugs
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
include_references | false | If true , includes the lists of references for each drug. See References for details. |
Get products linked to an adverse effect condition
curl -L 'https://api.drugbank.com/v1/us/adverse_effects/DBCOND0020133/products'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"ndc_product_code": "00338-9572",
"originator_ndc_product_code": "0338-9572",
"dpd_id": null,
"ema_product_code": null,
"ema_ma_number": null,
"name": "Bivalirudin in 0.9% Sodium Chloride",
"prescribable_name": "Bivalirudin 25 mg /5mL Injection",
"rx_norm_prescribable_name": "bivalirudin 250 MG in 50 ML Injection",
"started_marketing_on": "2017-12-21",
"ended_marketing_on": null,
"approved_on": null,
"schedule": null,
"dosage_form": "Injection",
"route": "Intravenous",
"application_number": "NDA208374",
"generic": false,
"otc": false,
"approved": true,
"country": "US",
"mixture": false,
"allergenic": false,
"cosmetic": false,
"vaccine": false,
"ingredients": [
{
"name": "Bivalirudin",
"drugbank_id": "DB00006",
"strength": {
"number": "250",
"unit": "mg/50mL"
}
}
],
"therapeutic_categories": [
{
"drugbank_id": "DBCAT000002",
"name": "Protease Inhibitors",
"mesh_id": "D011480",
"mesh_tree_numbers": [
"D27.505.519.389.745"
],
"atc_code": "J05AE",
"atc_level": 4,
"synonyms": [
"Antagonists, Protease",
"Antiproteases",
"..."
],
"description": "Compounds which inhibit or antagonize biosynthesis or actions of proteases (ENDOPEPTIDASES)."
},
{
"drugbank_id": "DBCAT000007",
"name": "Anticoagulants",
"mesh_id": "D000925",
"mesh_tree_numbers": [
"D27.505.954.502.119"
],
"atc_code": null,
"atc_level": null,
"synonyms": [
"Agents, Anticoagulant",
"Anti-coagulant",
"..."
],
"description": "Agents that prevent clotting."
},
"..."
],
"labeller": {
"name": "Baxter Healthcare Corporation"
},
"images": []
}
]
This endpoint retrieves products linked to a condition via adverse effects.
HTTP Request
GET https://api.drugbank.com/v1/us/adverse_effects/<ID>/products
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the condition to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
more | null | Determines how to broaden the condition search results. The original results will be included regardless of the value of this parameter. |
include_simple_desc | false | If set to true , include simple descriptions for the product ingredients. |
include_clinical_desc | false | If set to true , include clinical descriptions for the product ingredients. |
Boxed Warnings
Search boxed warning
curl -L 'https://api.drugbank.com/v1/us/boxed_warnings?q=cardiac'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
[
{
"drug": {
"name": "Itraconazole",
"drugbank_id": "DB01167"
},
"kind": "warning",
"lab_values": [],
"route": [],
"risk": {
"name": "Congestive Heart Failure",
"drugbank_id": "DBCOND0029751",
"meddra_id": "llt/10010682",
"snomed_id": "c/42343007",
"icd10_id": "c/I50.9"
}
}
]
This endpoint searches for conditions, and then returns boxed warnings related to those conditions. This endpoint supports pagination.
HTTP Request
GET https://api.drugbank.com/v1/us/boxed_warnings
Query Parameters
Parameter | Default | Description |
---|---|---|
q | “” | Text used to search conditions by name. |
exact | false | Determines how text results are matched. exact=true will not include partial matches such as ‘Rheumatoid Arthritis’ for the query 'arthritis’. |
Packages
Get a specific U.S. package
curl -L 'https://api.drugbank.com/v1/us/packages/50580-111-08'
-H 'Authorization: myapikey'
Example command returns JSON structured like this (results may be abbreviated):
{
"package_ndc_code": "50580-0111-08",
"originator_package_ndc_code": "50580-111-08",
"description": "240 mL LIQUID IN 1 BOTTLE, PLASTIC",
"full_description": "240 mL LIQUID IN 1 BOTTLE, PLASTIC",
"amount": "240",
"unit": "mL",
"form": "BOTTLE, PLASTIC",
"for_product": {
"ndc_product_code": "50580-0111",
"originator_ndc_product_code": "50580-111",
"name": "Tylenol Extra Strength",
"active_ingredients": [
{
"name": "Acetaminophen",
"unii": "362O9ITL9D",
"strength_number": "500",
"strength_unit": "mg/15mL"
}
],
"inactive_ingredients": [
{
"name": "anhydrous citric acid",
"unii": "XF417D3PSL",
"strength_number": null,
"strength_unit": null
},
{
"name": "D&C Red NO. 33",
"unii": "9DBA0SBB0L",
"strength_number": null,
"strength_unit": null
},
"..."
]
},
"packaging_tree": [
{
"package_ndc_code": "50580-0111-08",
"originator_package_ndc_code": "50580-111-08",
"description": "240 mL LIQUID IN 1 BOTTLE, PLASTIC",
"amount": "240",
"unit": "mL",
"form": "BOTTLE, PLASTIC"
}
]
}
Some packages contain multiple levels, shown in the
packaging_tree
attribute:
{
"package_ndc_code": "75834-0130-84",
"description": "28 in 1 BLISTER PACK",
"amount": "28",
"unit": "1",
"form": "BLISTER PACK",
"for_product": {
"name": "..."
},
"packaging_tree": [
{
"package_ndc_code": "75834-0130-29",
"description": "3 in 1 CARTON",
"amount": "3",
"unit": "1",
"form": "CARTON",
"content": {
"package_ndc_code": "75834-0130-84",
"description": "28 in 1 BLISTER PACK",
"amount": "28",
"unit": "1",
"form": "BLISTER PACK"
}
}
]
}
Some packages are kits containing multiple parts. In this case the returning JSON will contain a
parts
array:
{
"package_ndc_code": "68405-0018-06",
"description": "1 in 1 KIT",
"amount": "1",
"unit": "1",
"form": "KIT",
"for_product": {
"name": "..."
},
"parts": [
{
"number": 1,
"ndc_product_code": "52959-0190",
"name": "NAPROXEN",
"route": "ORAL",
"amount": "60",
"unit": "1",
"dosage_form": "TABLET",
"marketing_category": "ANDA",
"application_number": "ANDA075927",
"packaging_tree": [
{
"package_ndc_code": "52959-0190-30",
"description": "60 in 1 BOTTLE",
"amount": "60",
"unit": "1",
"form": "BOTTLE"
}
],
"active_ingredients": [
{
"name": "NAPROXEN",
"unii": "57Y76R9ATQ",
"strength_number": "250",
"strength_unit": "mg/1"
}
],
"inactive_ingredients": [
{
"name": "CROSCARMELLOSE SODIUM",
"unii": "M28OL1HH48",
"strength_number": null,
"strength_unit": null
},
{
"name": "POVIDONE",
"unii": "FZ989GH94E",
"strength_number": null,
"strength_unit": null
},
{
"name": "MAGNESIUM STEARATE",
"unii": "70097M6I30",
"strength_number": null,
"strength_unit": null
}
]
},
{
"number": 2,
"ndc_product_code": null,
"name": "Theramine",
"route": "ORAL",
"amount": "90",
"unit": "1",
"dosage_form": "CAPSULE",
"marketing_category": "MEDICAL FOOD",
"application_number": null,
"packaging_tree": [
{
"package_ndc_code": null,
"description": "90 in 1 BOTTLE",
"amount": "90",
"unit": "1",
"form": "BOTTLE"
}
],
"active_ingredients": [
{
"name": ".GAMMA.-AMINOBUTYRIC ACID",
"unii": "2ACZ6IPC6I",
"strength_number": "100",
"strength_unit": "mg/1"
}
],
"inactive_ingredients": [
{
"name": "MAGNESIUM STEARATE",
"unii": "70097M6I30",
"strength_number": null,
"strength_unit": null
},
{
"name": "CELLULOSE, MICROCRYSTALLINE",
"unii": "OP1R32D61U",
"strength_number": null,
"strength_unit": null
},
{
"name": "MALTODEXTRIN",
"unii": "7CVR7L4A2D",
"strength_number": null,
"strength_unit": null
},
{
"name": "GELATIN",
"unii": "2G86QN327L",
"strength_number": null,
"strength_unit": null
}
]
}
],
"packaging_tree": [
{
"package_ndc_code": "68405-0018-06",
"description": "1 in 1 KIT",
"amount": "1",
"unit": "1",
"form": "KIT"
}
]
}
A package that is found in kits will have a
part_of
array to reference the kits. Some packages are only found in kits; those packages will have afor_part
attribute in place of thefor_product
attribute:
{
"package_ndc_code": "52959-0190-30",
"description": "60 in 1 BOTTLE",
"amount": "60",
"unit": "1",
"form": "BOTTLE",
"for_part": {
"ndc_product_code": "52959-0190",
"name": "NAPROXEN",
"active_ingredients": [
{
"name": "NAPROXEN",
"unii": "57Y76R9ATQ",
"strength_number": "250",
"strength_unit": "mg/1"
}
],
"inactive_ingredients": [
{
"name": "CROSCARMELLOSE SODIUM",
"unii": "M28OL1HH48",
"strength_number": null,
"strength_unit": null
},
{
"name": "POVIDONE",
"unii": "FZ989GH94E",
"strength_number": null,
"strength_unit": null
},
{
"name": "MAGNESIUM STEARATE",
"unii": "70097M6I30",
"strength_number": null,
"strength_unit": null
}
]
},
"packaging_tree": [
{
"package_ndc_code": "52959-0190-30",
"description": "60 in 1 BOTTLE",
"amount": "60",
"unit": "1",
"form": "BOTTLE"
}
],
"part_of": [
{
"package_ndc_code": "68405-0018-06",
"description": "1 in 1 KIT",
"product": {
"ndc_product_code": "68405-0018",
"name": "Theraproxen-90"
}
},
{
"package_ndc_code": "68405-0016-36",
"description": "1 in 1 KIT",
"product": {
"ndc_product_code": "68405-0016",
"name": "Trepoxen-250"
}
},
{
"package_ndc_code": "68405-0180-06",
"description": "1 in 1 KIT",
"product": {
"ndc_product_code": "68405-0180",
"name": "Theraproxen"
}
}
]
}
This endpoint retrieves a specific package based on NDC ID.
HTTP Request
GET https://api.drugbank.com/v1/us/packages/<NDC_PACKAGE_ID>
URL Parameters
Parameter | Description |
---|---|
ID | The NDC ID of the package to retrieve. |
References
An example of the structure of a reference list:
{
"references": {
"literature_references": [
{
"ref_id": "A463",
"pubmed_id": 15879007,
"citation": "Kis B, Snipes JA, Busija DW: Acetaminophen and the cyclooxygenase-3 puzzle: sorting out facts, fictions, and uncertainties. J Pharmacol Exp Ther. 2005 Oct;315(1):1-7. Epub 2005 May 6."
},
{
"ref_id": "A464",
"pubmed_id": 16413237,
"citation": "Aronoff DM, Oates JA, Boutaud O: New insights into the mechanism of action of acetaminophen: Its clinical pharmacologic characteristics reflect its inhibition of the two prostaglandin H2 synthases. Clin Pharmacol Ther. 2006 Jan;79(1):9-19."
}
],
"textbooks": [
{
"ref_id": "T518",
"isbn": null,
"citation": "Valerie Gerriets; Thomas M. Nappe (2019). Acetaminophen. StatPearls publishing."
}
],
"external_links": [
{
"ref_id": "L5756",
"title": "Acetaminophen tablet, DailyMed",
"url": "https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=c3b408ff-f47b-4fee-ade5-5db6e25f4ee0"
},
{
"ref_id": "L5774",
"title": "Acetaminophen effervescent tablets, Cleveland Clinic",
"url": "https://my.clevelandclinic.org/health/drugs/18282-acetaminophen-effervescent-tablets"
}
],
"attachments": [
{
"ref_id": "F4124",
"title": "Acetaminophen monograph, suppository",
"url": "//s3-us-west-2.amazonaws.com/drugbank-qa/cite_this/attachments/files/000/004/124/original/Acetaminophen_monograph__suppository.pdf?1553636652"
}
]
}
}
Certain fields, such as drug descriptions and drug-drug interaction descriptions, include citations within the text. These citations are in the format:
[<letter><number>]
Where the letter indicates the source type of the citation and the number is the identifier (e.g. [A001]
). The citation source types are listed below:
Letter | Type |
---|---|
A | Literature article |
T | Textbook |
L | External link |
F | File attachment |
The corresponding citation details can be returned within the JSON object by including include_references=true
as a parameter in the URL.
API Versions
Accessing API versions
All previous versions of our API documentation are available:
Version | Link | Released |
---|---|---|
v0 | https://docs.drugbank.com/v0 | July, 2016 |
v1 | https://docs.drugbank.com/v1 | September, 2016 (Current) |
You can access the latest version of the API docs using the base docs url:
This will redirect you to the newest version of the API.
API Upgrades and Changes
Keeping track of changes and upgrades to the DrugBank API
Your API version (e.g. v0, v1) controls the API behavior you see (e.g., what properties you see in responses, what parameters you’re permitted to send in requests, etc.). When we change the API in a backwards-incompatible way, we release a new version, but to avoid breaking your code, we maintain older versions for a reasonable period of time and support users in their migration. Older versions will not be removed without ensuring full migration for all customers, however we encourage customers to keep up to date with newer versions to take advantage of improvements and additions.
Backwards-compatible changes
DrugBank considers the following changes to be backwards-compatible:
- Adding new API resources.
- Adding new optional request parameters to existing API methods.
- Adding new properties to existing API responses.
- Changing the order of properties in existing API responses.
- Changing the length or format of opaque strings, such as error messages and other human-readable strings.
- Improving the relevance or ordering of search results
You can safely assume object IDs will not change in length, and will never exceed 255 characters.
Upgrading your API version
If you’re running an older version of the API, upgrade to the latest version to take advantage of new functionality or to streamline responses so the API is faster for you. Upgrading your API version can affect:
- The parameters you can send and the structure of objects returned.
- The parameters in headers that are required and returned.
- How request tallies are calculated for billing purposes.
- How authentication is performed.
- Whether endpoints are available. Endpoints may be deprecated with major version changes.
To upgrade to the latest version, change the version number in requests sent to the API (e.g. change “v0” to “v1”). You can also use two versions of the API at the same time to upgrade iteratively.
When performing an API upgrade, make sure that you review the change log below, and that your tests pass against the endpoints you are using in your application. You can run your tests against the new version while still using your previous version in production.
Clinical API changelog
The changelog is a list of updates in the clinical API. Minor backwards-compatible additions and improvements (e.g. increasing the performance of an endpoint) may not appear in this list.
February 5, 2021
Allergy details
[
{
"source_name": "Penicillins",
"source_type": "categorical",
"summary": "Hypersensitivity to Amoxicillin (as a Penicillin) can present as: Cutaneous Manifestations of Drug Allergy and Erythema multiforme",
"info": "Penicillin allergy is the most common drug allergy, with incidence ranging between five and 25% by geographical region and population. Data is well-described across case reports, retrospective studies, and extensive review of literature since the first reported case in 1945. It is estimated that more than 90% of patients labelled as having a penicillin allergy could safely receive one or more members of this class; penicillin allergy is not durable, and patients lose sensitivity over time. In the case of moderate to high risk patients, allergy testing and/or desensitization prior to treatment is recommended.[A216991, A217016, A214379] In a large prospective case-control study in Europe, penicillins were frequently associated with a risk of erythema multiforme.[A204278]",
"evidence_type": [
"case_reports",
"review"
],
"hypersensitivity_types": [
"Type IV",
"Unclassified"
],
"presentations": [
"Cutaneous Manifestations of Drug Allergy",
"Erythema multiforme"
]
}
]
Cross-sensitivities
[
{
"summary": "As a Penicillin, Amoxicillin is known to be cross-sensitive with Clavulanic acid",
"description": "An allergy to clavulanic acid may lead to an allergy to other beta-lactams, such as penicillins and cephalosporins, due to similarities in chemical structure. According to prescribing information, clavulanate potassium and amoxicillin (in a single product) should not be administered if a patient is allergic to beta-lactam antibiotics.[L7910] Despite this recommendation, some recent studies indicate that clavulanic acid is unlikely to exhibit cross-reactivity with other beta-lactams because clavulanate lacks a side chain in addition to an oxazolidine ring bound to the beta-lactam ring.[A220863,A220893]",
"incidence": "Theoretical",
"evidence_type": [
"review"
],
"cross_sensitive_drugs": [
{
"name": "Clavulanic acid",
"drugbank_id": "DB00766"
}
]
},
{
"summary": "As a Penicillin, Amoxicillin is known to be cross-sensitive with Carbapenems",
"description": "The risk of cross-reactivity between penicillins and carbapenems is less than 1% in patients with a positive penicillin skin test.[A218896] Prospective studies in adults and children with IgE-mediated allergy to penicillin showed that the rate of cross-reactivity with carbapenems (imipenem-cilastatin and meropenem) was 0.9%, after positive skin test results for the two carbapenems. The rate of cross-reactivity with penicillins leading to delayed reactions to carbapenems was 5.5%, based on patients with cell-mediated hypersensitivity to penicillins and positive skin patch tests to at least one penicillin and imipenem-cilastatin.[A220883]",
"incidence": "0.9-5.5%",
"evidence_type": [
"post_marketing",
"review"
],
"cross_sensitive_drugs": [
{
"name": "Biapenem",
"drugbank_id": "DB13028"
},
{
"name": "Doripenem",
"drugbank_id": "DB06211"
},
{
"name": "Ertapenem",
"drugbank_id": "DB00303"
},
{
"name": "Imipenem",
"drugbank_id": "DB01598"
},
{
"name": "Meropenem",
"drugbank_id": "DB00760"
}
]
},
{
"summary": "As a Penicillin, Amoxicillin is known to be cross-sensitive with Cephalosporins",
"description": "Recent studies suggest that cross-sensitivity between penicillins and cephalosporins arise from the similarity between the R1 side chain of earlier generation cephalosporins and penicillins, rather than the ß-lactam structure that they share.[A220508, A220513, A220518] This indicates that cross-sensitivity in a penicillin-allergic patient is not necessarily a class effect; thus, other cephalosporin drugs with dissimilar side chains may be safely considered (for example, a negative skin test result to penicillin determinants).[A214902] Earlier studies report high cross-sensitivity rates between cephalosporins and penicillins that can be as high as 25%.[A220883, A220898] However, more recent studies argue that the cross-sensitivity risk is much lower, with the rate ranging from 0.17% and 0.7%, and 6% in patients with a positive penicillin skin test.[L16458] It is argued that these high rates from earlier reports reflect contamination of manufactured cephalosporin products, cross-reactivity rates based upon non-consecutive case reports, and the fact that aminopenicillins and aminocephalosporins share a common R1 side chain.[A220898] The degree of cross-sensitivity between cephalosporins and penicillins is higher with earlier generation cephalosporins. The risk of cross-sensitivity between penicillins and later (third and fourth) generation cephalosporin is generally low. These newer agents contain less bulky side chains in their structure, resulting in decreased immunogenicity risk.[A214902] The incidence of cross-sensitivity between penicillins and later (third and fourth) generation cephalosporins may be lower than the cross-sensitivity between penicillins and unrelated antibiotics.[A220513]",
"incidence": "\u003c10%",
"evidence_type": [
"uncontrolled_trial",
"review"
],
"cross_sensitive_drugs": [
{
"name": "Cefacetrile",
"drugbank_id": "DB01414"
},
{
"name": "Cefaclor",
"drugbank_id": "DB00833"
},
{
"name": "Cefadroxil",
"drugbank_id": "DB01140"
},
{
"name": "Cefaloridine",
"drugbank_id": "DB09008"
},
{
"name": "Cefalotin",
"drugbank_id": "DB00456"
},
{
"name": "Cefamandole",
"drugbank_id": "DB01326"
},
{
"name": "Cefamandole nafate",
"drugbank_id": "DB14725"
},
{
"name": "Cefapirin",
"drugbank_id": "DB01139"
},
{
"name": "Cefatrizine",
"drugbank_id": "DB13266"
},
{
"name": "Cefazedone",
"drugbank_id": "DB13778"
},
{
"name": "Cefazolin",
"drugbank_id": "DB01327"
},
{
"name": "Cefbuperazone",
"drugbank_id": "DB13638"
},
{
"name": "Cefcapene",
"drugbank_id": "DB13461"
},
{
"name": "Cefetamet",
"drugbank_id": "DB13504"
},
{
"name": "Cefiderocol",
"drugbank_id": "DB14879"
},
{
"name": "Cefmetazole",
"drugbank_id": "DB00274"
},
{
"name": "Cefminox",
"drugbank_id": "DB09062"
},
{
"name": "Cefodizime",
"drugbank_id": "DB13470"
},
{
"name": "Cefonicid",
"drugbank_id": "DB01328"
},
{
"name": "Ceforanide",
"drugbank_id": "DB00923"
},
{
"name": "Cefotetan",
"drugbank_id": "DB01330"
},
{
"name": "Cefotiam",
"drugbank_id": "DB00229"
},
{
"name": "Cefoxitin",
"drugbank_id": "DB01331"
},
{
"name": "Cefpodoxime",
"drugbank_id": "DB01416"
},
{
"name": "Cefprozil",
"drugbank_id": "DB01150"
},
{
"name": "Cefradine",
"drugbank_id": "DB01333"
},
{
"name": "Cefroxadine",
"drugbank_id": "DB11367"
},
{
"name": "Cefsulodin",
"drugbank_id": "DB13499"
},
{
"name": "Ceftaroline fosamil",
"drugbank_id": "DB06590"
},
{
"name": "Ceftezole",
"drugbank_id": "DB13821"
},
{
"name": "Ceftibuten",
"drugbank_id": "DB01415"
},
{
"name": "Ceftobiprole",
"drugbank_id": "DB04918"
},
{
"name": "Ceftolozane",
"drugbank_id": "DB09050"
},
{
"name": "Cefuroxime",
"drugbank_id": "DB01112"
},
{
"name": "Cephalexin",
"drugbank_id": "DB00567"
},
{
"name": "Cephaloglycin",
"drugbank_id": "DB00689"
},
{
"name": "Flomoxef",
"drugbank_id": "DB11935"
},
{
"name": "Latamoxef",
"drugbank_id": "DB04570"
},
{
"name": "Loracarbef",
"drugbank_id": "DB00447"
}
]
},
{
"summary": "As a Beta Lactam R1A, Amoxicillin is known to be cross-sensitive with Beta Lactam R1A",
"description": "Theoretical evidence suggests that beta-lactams sharing the same R1 side chains are likely to result in hypersensitivity reactions caused by cross-reactivity. The R1 side chain is the primary driver of beta-lactam allergy.[A214343] In one study, 12-38% of patients proven to be selectively allergic to amoxicillin, and were tolerant to penicillin, also reacted to cefadroxil.[A214337]",
"incidence": "Theoretical",
"evidence_type": [
"varying_reports",
"review"
],
"cross_sensitive_drugs": [
{
"name": "Cefadroxil",
"drugbank_id": "DB01140"
},
{
"name": "Cefatrizine",
"drugbank_id": "DB13266"
},
{
"name": "Cefprozil",
"drugbank_id": "DB01150"
}
]
}
]
- New Added endpoints for getting allergy details for a given drug, product, or product concept.
- New Added endpoints for getting cross-sensitivities for a given drug, product, or product concept.
November 20, 2020
New fields on product results
{
"allergenic": false,
"cosmetic": true,
"vaccine": false
}
- New Added allergenic, cosmetic, and vaccine booleans to products and drug products endpoints.
November 16, 2020
An example response for
product_concept_id=DBPC0037190,DBPC0005793
:
{
"duplicate_ingredients": [
{
"drug": {
"name": "Acetylsalicylic acid",
"drugbank_id": "DB00945"
},
"product_concepts": [
{
"name": "Acetylsalicylic acid / Citric acid / Sodium bicarbonate Tablet, effervescent",
"display_name": null,
"drugbank_pcid": "DBPC0037190",
"brand": null,
"level": 2,
"route": null,
"form": "Tablet, effervescent",
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1977-12-31",
"regions": {
"us": true,
"canada": true,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Sodium bicarbonate",
"drug": {
"name": "Sodium bicarbonate",
"drugbank_id": "DB01390"
}
},
{
"name": "Citric acid",
"drug": {
"name": "Citric acid",
"drugbank_id": "DB04272"
}
},
{
"name": "Acetylsalicylic acid",
"drug": {
"name": "Acetylsalicylic acid",
"drugbank_id": "DB00945"
}
}
]
},
{
"name": "Acetylsalicylic acid",
"display_name": null,
"drugbank_pcid": "DBPC0005793",
"brand": null,
"level": 1,
"route": null,
"form": null,
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1950-12-31",
"regions": {
"us": true,
"canada": true,
"eu": false
},
"rxnorm_concepts": [
{
"name": "acetyl salicylate",
"RXCUI": "91101"
},
{
"name": "aspirin",
"RXCUI": "1191"
}
],
"ingredients": [
{
"name": "Acetylsalicylic acid",
"drug": {
"name": "Acetylsalicylic acid",
"drugbank_id": "DB00945"
}
}
]
}
]
}
],
"duplicate_therapies": [
{
"condition": {
"title": "Headache",
"drugbank_id": "DBCOND0017979"
},
"kind": "management_of",
"duplicates": [
{
"product_concept": {
"name": "Acetylsalicylic acid",
"display_name": null,
"drugbank_pcid": "DBPC0005793",
"brand": null,
"level": 1,
"route": null,
"form": null,
"strengths": null,
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1950-12-31",
"regions": {
"us": true,
"canada": true,
"eu": false
},
"rxnorm_concepts": [
{
"name": "acetyl salicylate",
"RXCUI": "91101"
},
{
"name": "aspirin",
"RXCUI": "1191"
}
],
"ingredients": [
{
"name": "Acetylsalicylic acid",
"drug": {
"name": "Acetylsalicylic acid",
"drugbank_id": "DB00945"
}
}
]
},
"indication": {
"kind": "used_in_combination_to_manage",
"off_label": true,
"otc_use": false,
"combination_type": "regimen",
"drug": {
"name": "Acetylsalicylic acid",
"drugbank_id": "DB00945"
},
"condition": {
"name": "Headache",
"drugbank_id": "DBCOND0017979",
"meddra_id": "hlt/10019233",
"snomed_id": "c/206946005",
"icd10_id": "c/R51"
},
"combination_drugs": [
{
"name": "Dextropropoxyphene",
"drugbank_id": "DB00647"
}
]
}
},
{
"product_concept": {
"name": "Acetylsalicylic acid / Citric acid / Sodium bicarbonate Tablet, effervescent",
"drugbank_pcid": "DBPC0037190",
"level": 2,
"form": "Tablet, effervescent",
"standing": "active",
"standing_updated_at": "2018-09-12",
"standing_active_since": "1977-12-31",
"regions": {
"us": true,
"canada": true,
"eu": false
},
"rxnorm_concepts": [],
"ingredients": [
{
"name": "Sodium bicarbonate",
"drug": {
"name": "Sodium bicarbonate",
"drugbank_id": "DB01390"
}
},
{
"name": "Citric acid",
"drug": {
"name": "Citric acid",
"drugbank_id": "DB04272"
}
},
{
"name": "Acetylsalicylic acid",
"drug": {
"name": "Acetylsalicylic acid",
"drugbank_id": "DB00945"
}
}
]
},
"indication": {
"kind": "used_in_combination_to_manage",
"off_label": false,
"otc_use": true,
"combination_type": "product",
"drug": {
"name": "Citric acid",
"drugbank_id": "DB04272"
},
"regions": "US",
"condition": {
"name": "Headache",
"drugbank_id": "DBCOND0017979",
"meddra_id": "hlt/10019233",
"snomed_id": "c/206946005",
"icd10_id": "c/R51"
},
"combination_drugs": [
{
"name": "Acetylsalicylic acid",
"drugbank_id": "DB00945"
},
{
"name": "Sodium bicarbonate",
"drugbank_id": "DB01390"
}
]
}
}
]
}
]
}
- New Added
/product_concepts/duplicate_therapies
endpoint to check whether given product concept ids contain duplicate ingredients or address similar conditions.
November 2, 2020
- New Added generic product filter to the drug products endpoint.
- New Added endpoint for finding generic products, given a starting product.
- New Added endpoints for finding product concepts with similar indications to a given product concept or a product.
September 23, 2020
- New Added
ema_ma_numbers
to Drug Names search results.
September 17, 2020
- New Added Product Concept indication filtering option
When querying indications for a product or product concept, you can now set an adjunct_use
flag to true
or false
. If set to false
, only directly related indications (those involving the main drug) of the product will be returned. If set to true
, only indirect indications (those that don’t involve the main drug) will be returned. If left unset, both direct and indirect indications will be returned, the same behaviour as prior to this update.
August 24, 2020
- New Product Concept indication queries will now return more complete results.
Indication query results for certain product concepts have been improved. In particular, product concepts like Acyclovir 5% (DBPC0119485)
would previously omit certain indications, such as an indication for Topical Acyclovir, from their indication query results. All product concept indication queries will now return all relevant results.
August 21, 2020
An example response including the ATC combination code:
[
{
"code": "N07BC02",
"title": "methadone",
"combination": false
},
{
"code": "N02AC52",
"title": "methadone, combinations excl. psycholeptics",
"combination": true
}
]
- New Drug to ATC mappings will now indicate if the ATC code is a combination code (i.e. more than one drug), or a single drug code.
August 6, 2020
An example response including the NDC full package description:
{
"package_ndc_code": "11523-4329-01",
"originator_package_ndc_code": "11523-4329-1",
"description": "2 CARTON IN 1 PACKAGE, COMBINATION",
"full_description": "2 CARTON IN 1 PACKAGE, COMBINATION > 3 BLISTER PACK IN 1 CARTON > 10 TABLET, ORALLY DISINTEGRATING IN 1 BLISTER PACK"
}
- New The NDC Package API endpoint now includes the full package description in the same format used by the FDA/NDC. Regardless of what level of package your are accessing, the full description, including the outer packaging, will be present.