Drug Classifications by ID
This endpoint retrieves a specific classification based on the provided classification ID.
Request Parameters
r
(optional): Indicates whether to include related data, such as alternative parents, substituents, and drugs.
Example Request
GET /api/v1/classifications/abcdef1234567890?r=true HTTP/1.1
Host: www.britelink.io
Response
- 200 OK: Returns the classification with the specified ID.
- 404 Not Found: If no classification is found with the provided ID.
- 500 Internal Server Error: If an error occurs while fetching the classification.
Response Format
{
"id": "abcdef1234567890",
"description": "This compound belongs to the class of organic compounds known as dimethoxybenzenes.",
"directParent": "Dimethoxybenzenes",
"kingdom": "Organic compounds",
"superclass": "Benzenoids",
"class": "Benzene and substituted derivatives",
"subclass": "Methoxybenzenes",
"drugs": [
{
"id": "clslvydmx00d313zpjs4l48k4",
"tradeName": "Methoxamine",
"genericName": "Methoxamine"
}
]
}
Use Cases
- Data Retrieval: Retrieve detailed information about a specific chemical classification.
- Integration: Integrate classification data into various applications, such as research tools or educational platforms.
- Quality Assurance: Validate the accuracy and completeness of classification data to ensure data quality.
- Data Analysis: Analyze classification data to identify patterns or relationships between drugs and chemical properties.
- Research: Support scientific research by providing access to detailed chemical classification information for analysis and experimentation.
Endpoint URL: https://www.britelink.io/api/v1/classifications/${classificationId}