Get a Specific Drug
Retrieve detailed information about a specific drug using its BriteLink ID.
HTTP Request:
GET https://www.britelink.io/api/v1/drugs/<ID>
Example Request:
curl -L 'https://www.britelink.io/api/v1/drugs/${ID}' \
-H 'Authorization: Bearer BRITE_API_KEY'
Example Request With References:
curl -L 'https://www.britelink.io/api/v1/drugs/clrw9ar1w0000jq081pukhhhu' \
-H 'Authorization: Bearer BRITE_API_KEY'
URL Parameters
Parameter | Description |
---|---|
ID | The BriteLink ID of the drug to retrieve. |
Query Parameters
Parameter | Default | Description |
---|---|---|
r | false | If true, includes the list of references for this drug. |
Example Response
{
"id": "clrw9ar1w0000jq081pukhhhu",
"tradeName": "ROCEPHIN",
"genericName": "CEFTRIAXONE",
"registrationNo": "84/20.1.1/1401",
"dateRegistered": "1984-10-25T00:00:00.000Z",
"description": "<p><br></p><p><img src=\"https://pubchem.ncbi.nlm.nih.gov/image/imgsrv.fcgi?cid=5479530&t=l\" width=\"300\" height=\"300\" alt=\"Ceftriaxone.png\"></p><p><br></p><p>Ceftriaxone is a broad-spectrum, third-generation cephalosporin antibiotic. Chemically, it is known as (6R,7R)-7-[(2Z)-2-(2-amino-1,3-thiazol-4-yl)-2-(methoxyimino)acetamido]-3-{[(2-methyl-5,6-dioxo-1,2,5,6-tetrahydro-1,2,4-triazin-3-yl)sulfanyl]methyl}-8-oxo-5-thia-1-azabicyclo[4.2.0]oct-2-ene-2-carboxylic acid. Its molecular formula is C18H18N8O7S3, and it has a molecular weight of 554.58 g/mol.</p><p>Ceftriaxone ]e, it can be administered once or twice daily, which can be beneficial for patient compliance.</p>",
"simpleDescription": "Ceftriaxone is a broad-spectrum third-generation cephalosporin antibiotic. It has a very long half-life compared to other cephalosporins and is highly penetrable into the meninges, eyes, and inner ear. Ceftriaxone has broader and stronger gram-negative coverage than first or second-generation cephalosporins, but worse activity against methicillin-susceptible S.aureus. Ceftriaxone is a commonly used antimicrobial due to its good activity against multi-drug resistant Enterobacteriaceae, its relatively safe adverse effect profile, and its long half-life which allows for the convenience of daily or twice-daily dosing.",
"clinicalDescription": "<p><br></p><ul><li><span style=\"color: var(--tw-prose-bold);\">Indications and ...."
}
Handling HTML Content in Response
Some fields in the API response, such as description
and clinicalDescription
, are returned in HTML format. If your application requires plain text data, you can use the stripServerHtml
utility function to remove HTML tags from these fields. This functionality is especially useful for applications that process or display content in non-HTML environments. For implementation details and usage, please refer to our Handling HTML Content documentation.