Application Development Support: Web Services: RESTful Resources

"/drugnames"

Returns a list of all drug names.
API Version: 2

Query Parameters

Filters

  • drug_name - Generic or brand name of drug. This parameter is optional.
  • name_type - Used with drug_name to specify whether the given name is a generic name or brand name. This parameter is optional. Acceptable values are listed below.
    • g or generic - Generic name.
    • b or brand - Brand name.
    • both - Either generic or brand name. (Default value)
  • manufacturer - Name of manufacturer for the drug. This parameter is optional.

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/drugnames.xml?pagesize=5&page=3

    Returns

    <?xml version="1.0" encoding="UTF-8"?>
    <drug_names>
    	<metadata>
    		<total_elements>43490</total_elements>
    		<elements_per_page>5</elements_per_page>
    		<total_pages>8698</total_pages>
    		<current_page>3</current_page>
    		<current_url>
    			https://dailymed.nlm.nih.gov/dailymed/services/v2/drugnames.xml?pagesize=5&page=3
    		</current_url>
    		<previous_page>2</previous_page>
    		<previous_page_url>
    			https://dailymed.nlm.nih.gov/dailymed/services/v2/drugnames.xml?pagesize=5&page=2
    		</previous_page_url>
    		<next_page>4</next_page>
    		<next_page_url>
    			https://dailymed.nlm.nih.gov/dailymed/services/v2/drugnames.xml?pagesize=5&page=4
    		</next_page_url>
    	</metadata>
    	<drug_name type="G">
    		.ALPHA.-KETOGLUTARIC ACID - AMBERGRIS - ANAMIRTA COCCULUS SEED - CONIUM MACULATUM FLOWERING TOP - EPINEPHRINE - FUMARIC ACID - MALIC ACID - MELATONIN - MINERAL OIL - PTERIDIUM AQUILINUM ROOT - PYRIDOXINE HYDROCHLORIDE - QUINHYDRONE - QUININE - SUS SCROFA ARTERY - SUS SCROFA CEREBELLUM - SUS SCROFA PLACENTA - THIAMINE HYDROCHLORIDE - TOBACCO LEAF -
    	</drug_name>
    	<drug_name type="G">
    		.ALPHA.-KETOGLUTARIC ACID - CHASTE TREE - CONIUM MACULATUM FLOWERING TOP - CORTICOTROPIN - DOPAMINE - FOLLITROPIN - GOLD - INTERLEUKIN-10 - LUTRELIN - LUTROPIN ALFA - LYCOPODIUM CLAVATUM SPORE - MALIC ACID - OVEMOTIDE - POTASSIUM IODATE - PRASTERONE - PYRUVIC ACID - RINFABATE - SEROTONIN - SUS SCROFA HYPOTHALAMUS - SUS SCROFA PITUITARY GLAND - SUS SCROFA SPLEEN - SUS SCROFA TESTICLE - SUS SCROFA URETHRA - SUS SCROFA VEIN - TURNERA DIFFUSA LEAFY TWIG - ZINC -
    	</drug_name>
    	<drug_name type="G">
    		.ALPHA.-LIPOIC ACID AND AVENA SATIVA FLOWERING TOP AND RICINUS COMMUNIS SEED AND SOLIDAGO VIRGAUREA FLOWERING TOP AND VIOLA TRICOLOR AND BERBERIS VULGARIS ROOT BARK AND CAFFEINE AND JUGLANS REGIA FLOWERING TOP AND FRANGULA PURSHIANA BARK AND URTICA URENS AND CHOLESTEROL AND INFLUENZA A VIRUS A/SINGAPORE/6/86 (H1N1) ANTIGEN (HEAT INACTIVATED) AND KEROSENE AND TOBACCO LEAF AND ALCOHOL, X-RAY EXPOSED (1000 RAD) AND STRYCHNOS NUX-VOMICA SEED
    	</drug_name>
    	<drug_name type="G">
    		.ALPHA.-LIPOIC ACID, ARNICA MONTANA ROOT, SUS SCROFA CARTILAGE, COENZYME A, SOLANUM DULCAMARA TOP, SUS SCROFA EMBRYO, SUS SCROFA UMBILICAL CORD, NADIDE, SODIUM DIETHYL OXALACETATE, SUS SCROFA PLACENTA, TOXICODENDRON PUBESCENS LEAF, SANGUINARIA CANADENSIS ROOT, SILICON DIOXIDE, SULFUR AND COMFREY ROOT
    	</drug_name>
    	<drug_name type="G">
    		.ALPHA.-LIPOIC ACID, TURMERIC, OCIMUM TENUIFLORUM TOP, INDIAN FRANKINCENSE, ROSEMARY, SALIX ALBA BARK, AND GINGER
    	</drug_name>
    </drug_names>
    													
    Close
  • JSON: https://dailymed.nlm.nih.gov/dailymed/services/v2/drugnames.json?pagesize=5&page=3

    Returns

    {
    	"metadata": {
    		"elements_per_page": "5",
    		"next_page_url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/services\/v2\/drugnames.json?pagesize=5&page=4",
    		"total_pages": "8698",
    		"total_elements": "43490",
    		"current_url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/services\/v2\/drugnames.json?pagesize=5&page=3",
    		"next_page": "4",
    		"previous_page": "2",
    		"previous_page_url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/services\/v2\/drugnames.json?pagesize=5&page=2",
    		"current_page": "3"
    	},
    	"data": [{
    		"name_type": "G",
    		"drug_name": ".ALPHA.-KETOGLUTARIC ACID - AMBERGRIS - ANAMIRTA COCCULUS SEED - CONIUM MACULATUM FLOWERING TOP - EPINEPHRINE - FUMARIC ACID - MALIC ACID - MELATONIN - MINERAL OIL - PTERIDIUM AQUILINUM ROOT - PYRIDOXINE HYDROCHLORIDE - QUINHYDRONE - QUININE - SUS SCROFA ARTERY - SUS SCROFA CEREBELLUM - SUS SCROFA PLACENTA - THIAMINE HYDROCHLORIDE - TOBACCO LEAF -"
    	}, {
    		"name_type": "G",
    		"drug_name": ".ALPHA.-KETOGLUTARIC ACID - CHASTE TREE - CONIUM MACULATUM FLOWERING TOP - CORTICOTROPIN - DOPAMINE - FOLLITROPIN - GOLD - INTERLEUKIN-10 - LUTRELIN - LUTROPIN ALFA - LYCOPODIUM CLAVATUM SPORE - MALIC ACID - OVEMOTIDE - POTASSIUM IODATE - PRASTERONE - PYRUVIC ACID - RINFABATE - SEROTONIN - SUS SCROFA HYPOTHALAMUS - SUS SCROFA PITUITARY GLAND - SUS SCROFA SPLEEN - SUS SCROFA TESTICLE - SUS SCROFA URETHRA - SUS SCROFA VEIN - TURNERA DIFFUSA LEAFY TWIG - ZINC -"
    	}, {
    		"name_type": "G",
    		"drug_name": ".ALPHA.-LIPOIC ACID AND AVENA SATIVA FLOWERING TOP AND RICINUS COMMUNIS SEED AND SOLIDAGO VIRGAUREA FLOWERING TOP AND VIOLA TRICOLOR AND BERBERIS VULGARIS ROOT BARK AND CAFFEINE AND JUGLANS REGIA FLOWERING TOP AND FRANGULA PURSHIANA BARK AND URTICA URENS AND CHOLESTEROL AND INFLUENZA A VIRUS A/SINGAPORE/6/86 (H1N1) ANTIGEN (HEAT INACTIVATED) AND KEROSENE AND TOBACCO LEAF AND ALCOHOL, X-RAY EXPOSED (1000 RAD) AND STRYCHNOS NUX-VOMICA SEED"
    	}, {
    		"name_type": "G",
    		"drug_name": ".ALPHA.-LIPOIC ACID, ARNICA MONTANA ROOT, SUS SCROFA CARTILAGE, COENZYME A, SOLANUM DULCAMARA TOP, SUS SCROFA EMBRYO, SUS SCROFA UMBILICAL CORD, NADIDE, SODIUM DIETHYL OXALACETATE, SUS SCROFA PLACENTA, TOXICODENDRON PUBESCENS LEAF, SANGUINARIA CANADENSIS ROOT, SILICON DIOXIDE, SULFUR AND COMFREY ROOT"
    	}, {
    		"name_type": "G",
    		"drug_name": ".ALPHA.-LIPOIC ACID, TURMERIC, OCIMUM TENUIFLORUM TOP, INDIAN FRANKINCENSE, ROSEMARY, SALIX ALBA BARK, AND GINGER"
    	}]
    }
    													
    Close

RETURN TO WEB SERVICES