Details of the JSON output and object description table of drug classification API made by Drugbank

In this article, I will clarify the object table and JSON output of Drugbank's drug classification API. As a programmer, you may have encountered APIs that provide data in a variety of formats, including XML, CSV, and JSON. Drugbank's API provides data in JSON format, which is a lightweight and easy-to-read format that is widely used in web development. The API's JSON output includes an object table, which is a table-like structure that contains data in a key-value format. Understanding the object table and JSON output of Drugbank's API can help you efficiently extract the drug classification data you need for your programming projects.

Object and Description of API Output

ObjectsDescription
classification
description
direct_parent
kingdom
superclass_nameSuperclass name.
class_nameClass name.
subclass_nameSubclass name.
alternative_parents
substituents
  • classification: This object refers to the classification of the drug according to the WHO's Anatomical Therapeutic Chemical (ATC) classification system. The ATC system divides drugs into different groups according to the organ or system on which they act and their therapeutic, pharmacological, and chemical properties.

  • description: This object refers to a general description of the drug and its properties. It may include information about the drug's chemical structure, mechanism of action, indications, contraindications, and side effects.

  • direct_parent: This object refers to the direct parent of the drug in the ATC classification system. The direct parent is the immediate higher-level category to which the drug belongs.

  • kingdom: This object refers to the kingdom of life to which the drug belongs. Drugs can belong to different kingdoms, including Animalia, Plantae, Fungi, and Bacteria.

  • superclass_name: This object refers to the name of the superclass to which the drug belongs in the ATC classification system. The superclass is the highest-level category in the classification system.

  • class_name: This object refers to the name of the class to which the drug belongs in the ATC classification system. The class is a more specific category than the superclass.

  • subclass_name: This object refers to the name of the subclass to which the drug belongs in the ATC classification system. The subclass is a more specific category than the class.

  • alternative_parents: This object refers to alternative parents of the drug in the ATC classification system. Alternative parents are higher-level categories to which the drug may also belong.

  • substituents: This object refers to the substituents present in the drug's chemical structure. A substituent is an atom or group of atoms that can be substituted for another atom or group of atoms in a molecule.

The information presented in the table is useful for understanding the classification and properties of drugs according to the WHO's Anatomical Therapeutic Chemical (ATC) system. Knowing the drug's classification and its higher-level categories, such as superclass, class, and subclass, can help healthcare professionals and researchers better understand the drug's therapeutic properties and potential uses. Additionally, having access to information about the drug's chemical structure, mechanism of action, indications, contraindications, and side effects can aid in the development of new drugs or the optimization of existing treatments. Overall, having this information available can enhance our knowledge of drugs and ultimately lead to better patient outcomes.

JSON Output

The given JSON output represents the classification of a chemical compound. The classification object contains several key-value pairs that describe the compound's classification in the Anatomical Therapeutic Chemical (ATC) system. The description key provides a brief description of the compound's chemical structure, specifically that it belongs to the class of organic compounds known as pentacarboxylic acids and derivatives. The direct_parent key provides the immediate higher-level category to which the compound belongs in the ATC classification system. The kingdom, superclass_name, class_name, and subclass_name keys provide additional levels of classification for the compound. The alternative_parents key is an array that lists alternative higher-level categories to which the compound may also belong. Finally, the substituents key lists the substituents present in the compound's chemical structure, specifically, tertiary aliphatic amine and tertiary amine. Overall, this information can be useful in understanding the chemical properties and potential uses of the compound.

{
"classification": {
"description": "This compound belongs to the class of organic compounds known as pentacarboxylic acids and derivatives. These are carboxylic acids containing exactly five carboxyl groups.",
"direct_parent": "Pentacarboxylic acids and derivatives",
"kingdom": "Organic compounds",
"superclass_name": "Organic acids and derivatives",
"class_name": "Carboxylic acids and derivatives",
"subclass_name": "Pentacarboxylic acids and derivatives",
"alternative_parents": [
"Alpha amino acids",
"Amino acids",
"Benzylethers",
],
"substituents": [
"Tertiary aliphatic amine",
"Tertiary amine"
]
}
}

Conclusion

We discussed the object table and JSON output of the Drugbank drug classification API. We first introduced the topic by providing a brief overview of the API and the importance of understanding its output format. We then converted an HTML table into a readable format and described each of the objects in detail. Finally, we analyzed a sample JSON output from the API and highlighted its key features. By understanding the object table and JSON output of the Drugbank API, programmers can extract drug classification data more efficiently and ultimately improve their programming projects.

Reference

To clarify, you can request access to the Drugbank drug classification API through the third-party data marketplace of Worldindata. Worldindata provides access to various high-quality data sources, including the Drugbank database, which contains extensive information on drugs and their therapeutic properties. Worldindata offers an easy-to-use platform to request access to the Drugbank API, allowing programmers to extract relevant drug classification data for their programming projects. With access to this data, programmers can obtain valuable insights into drug properties, which can be useful in research, drug development, and patient care.