Drugs By Indications
Overview
This endpoint retrieves a list of drugs based on specified conditions and their related indications. It is particularly useful for professionals seeking medication options for specific health conditions, such as arthritis, diabetes, etc.
HTTP Request
GET https://www.britelink.io/api/v1/indications/drugs
URL Parameters
q
: (String) The text used to search conditions by name. This parameter is required.more
: (Boolean, optional) Determines how to broaden the condition search results. By default, it is set tofalse
. Setting it totrue
will return more comprehensive results.off_label
: (Boolean, optional) Limits results to drugs used off-label for the specified conditions.otc_use
: (Boolean, optional) Filters results to drugs available over-the-counter.kind
: (String, optional) Specifies the kind of indication to filter the search results.
Headers
Authorization
: Your API key is required for authorization.
Example Request
curl -L 'https://www.britelink.io/api/v1/indications/drugs?q=arthritis' \
-H 'Authorization:Bear myapikey'
Response Structure
The response is a JSON array containing drug objects. Each object includes comprehensive details about the drug, its pharmacological profile, interactions, and relevant therapeutic categories.
Sample response structure (abbreviated for brevity):
[
{
"id": "1234",
"tradeName": "Drug name",
"genericName": "Generic Name",
"simpleDescription": "Short description",
"chemicalStructure": "Chemical structure details",
"pharmacology": {
"mechanismOfAction": "Mechanism of action",
"pharmacodynamics": "Pharmacodynamics details",
"pharmacokinetics": "Pharmacokinetics details"
// Additional pharmacology details
},
"therapeuticCategories": [
{
"name": "Category Name",
"description": "Category description"
// Other category details
}
]
// Other drug details
}
]
Error Handling
400 Bad Request
: Occurs if the required parameters are not provided or malformed.401 Unauthorized
: Returned if the API key is missing or invalid.404 Not Found
: Returned if no drugs are found for the specified indications.500 Internal Server Error
: Indicates a server-side error.
Usage Notes
- The endpoint supports pagination for large result sets.
- The response includes detailed drug information, making it a comprehensive resource for medical professionals and researchers.
- The endpoint is optimized for efficient and precise retrieval of drug information based on medical conditions and indications.
Security and Privacy
- Ensure secure storage and transmission of API keys.
- The endpoint adheres to data privacy regulations for medical data handling.