Application Development Support: Web Services: RESTful Resources

"/drugclasses"

Returns a list of all drug classes associated with at least one SPL in the Pharmacologic Class Indexing Files.
API Version: 2

Query Parameters

Filters

  • drug_class_code - Code representing a pharmacologic drug class. This parameter is optional. See the FDA documentation for Pharmacologic Classes for more information.
  • drug_class_coding_system - Used with drug_class_code to specify the coding system of the drug class code. This parameter is optional. See the FDA documentation for Pharmacologic Classes for more information. Acceptable values are listed below.
    • 2.16.840.1.113883.3.26.1.5 - National Drug File Reference Terminology. (Default value)
  • class_code_type - Type of pharmacologic drug class. This parameter is optional. See the FDA documentation for Pharmacologic Classes for more information. Acceptable values are listed below.
    • all - All types of Drug Classes. (Default value)
    • epc - FDA Established Pharmacologic Class.
    • moa - Mechanism of Action.
    • pe - Physiologic Effect.
    • ci or chemical/ingredient - Chemical/Ingredient.
  • class_name - Name of the drug class. This parameter is optional.
  • unii_code - Unique Ingredient Identifier (UNII) code. This parameter is optional. See the documentation for resource /uniis for more information.

Output Controls

  • pagesize - The number of records returned per page. This parameter is optional (Default 100, Maximum 100).
  • page - The page returned. This parameter is optional (Default 1).

Return Formats

RETURN FORMATS EXAMPLES

  • XML: https://dailymed.nlm.nih.gov/dailymed/services/v2/drugclasses.xml?pagesize=5&page=2

    Returns

    <?xml version="1.0" encoding="UTF-8"?>
    <drugclasses>
    	<metadata>
    		<total_elements>777</total_elements>
    		<elements_per_page>5</elements_per_page>
    		<total_pages>156</total_pages>
    		<current_page>2</current_page>
    		<current_url>https://dailymed.nlm.nih.gov/dailymed/services/v2/drugclasses.xml?pagesize=5&page=2</current_url>
    		<previous_page>1</previous_page>
    		<previous_page_url>https://dailymed.nlm.nih.gov/dailymed/services/v2/drugclasses.xml?pagesize=5&page=1</previous_page_url>
    		<next_page>3</next_page>
    		<next_page_url>https://dailymed.nlm.nih.gov/dailymed/services/v2/drugclasses.xml?pagesize=5&page=3</next_page_url>
    	</metadata>
    	<drugclass>
    		<name type="EPC">Adenosine Receptor Agonist</name>
    		<code codingSystem="2.16.840.1.113883.3.26.1.5">N0000178375</code>
    	</drugclass>
    	<drugclass>
    		<name type="EPC">Adrenal Steroid Synthesis Inhibitor</name>
    		<code codingSystem="2.16.840.1.113883.3.26.1.5">N0000175928</code>
    	</drugclass>
    	<drugclass>
    		<name type="EPC">Adrenergic Receptor Agonist</name>
    		<code codingSystem="2.16.840.1.113883.3.26.1.5">N0000175883</code>
    	</drugclass>
    	<drugclass>
    		<name type="EPC">Adrenocorticotropic Hormone</name>
    		<code codingSystem="2.16.840.1.113883.3.26.1.5">N0000175941</code>
    	</drugclass>
    	<drugclass>
    		<name type="EPC">Aldehyde Dehydrogenase Inhibitor</name>
    		<code codingSystem="2.16.840.1.113883.3.26.1.5">N0000175679</code>
    	</drugclass>
    </drugclasses>
    													
    Close
  • JSON: https://dailymed.nlm.nih.gov/dailymed/services/v2/drugclasses.json?pagesize=5&page=2

    Returns

    {
    	"metadata": {
    		"elements_per_page": "5",
    		"next_page_url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/services\/v2\/drugclasses.json?pagesize=5&page=3",
    		"total_pages": "156",
    		"total_elements": "777",
    		"current_url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/services\/v2\/drugclasses.json?pagesize=5&page=2",
    		"next_page": "3",
    		"previous_page": "1",
    		"previous_page_url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/services\/v2\/drugclasses.json?pagesize=5&page=1",
    		"current_page": "2"
    	},
    	"data": [{
    		"codingSystem": "2.16.840.1.113883.3.26.1.5",
    		"name": "Adenosine Receptor Agonist",
    		"type": "EPC",
    		"code": "N0000178375"
    	}, {
    		"codingSystem": "2.16.840.1.113883.3.26.1.5",
    		"name": "Adrenal Steroid Synthesis Inhibitor",
    		"type": "EPC",
    		"code": "N0000175928"
    	}, {
    		"codingSystem": "2.16.840.1.113883.3.26.1.5",
    		"name": "Adrenergic Receptor Agonist",
    		"type": "EPC",
    		"code": "N0000175883"
    	}, {
    		"codingSystem": "2.16.840.1.113883.3.26.1.5",
    		"name": "Adrenocorticotropic Hormone",
    		"type": "EPC",
    		"code": "N0000175941"
    	}, {
    		"codingSystem": "2.16.840.1.113883.3.26.1.5",
    		"name": "Aldehyde Dehydrogenase Inhibitor",
    		"type": "EPC",
    		"code": "N0000175679"
    	}]
    }
    													
    Close

RETURN TO WEB SERVICES