Application Development Support: Web Services: RESTful Resources

"/spls/{SETID}/media"

Returns links to all media for the specified SET ID.
API Version: 2

Path Parameters

  • SETID - The SET ID of a specific SPL. This parameter is required.

Query Parameters

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/spls/1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8/media.xml

    Returns

    <?xml version="1.0" encoding="UTF-8" ?>
    <spl>
    	<metadata>
    		<total_elements>3</total_elements>
    		<elements_per_page>100</elements_per_page>
    		<total_pages>1</total_pages>
    		<current_page>1</current_page>
    		<current_url>https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8/media.xml</current_url>
    		<previous_page>null</previous_page>
    		<previous_page_url>null</previous_page_url>
    		<next_page>null</next_page>
    		<next_page_url>null</next_page_url>
    	</metadata>
    	<setid>1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8</setid>
    	<spl_version>1</spl_version>
    	<title>EDECRIN (ETHACRYNIC ACID) TABLET [ATON PHARMA, INC.]</title>
    	<published_date>Mar 12, 2012</published_date>
    	<media>
    		<file>
    			<name>edecrin-01.jpg</name>
    			<mime_type>image/jpeg</mime_type>
    			<url>https://dailymed.nlm.nih.gov/dailymed/image.cfm?setid=1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8&name=edecrin-01.jpg</url>
    		</file>
    		<file>
    			<name>edecrin-02.jpg</name>
    			<mime_type>image/jpeg</mime_type>
    			<url>https://dailymed.nlm.nih.gov/dailymed/image.cfm?setid=1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8&name=edecrin-02.jpg</url>
    		</file>
    		<file>
    			<name>edecrin-03.jpg</name>
    			<mime_type>image/jpeg</mime_type>
    			<url>https://dailymed.nlm.nih.gov/dailymed/image.cfm?setid=1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8&name=edecrin-03.jpg</url>
    		</file>
    	</media>
    </spl>
    													
    Close
  • JSON: https://dailymed.nlm.nih.gov/dailymed/services/v2/spls/1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8/media.json

    Returns

    {
    	"metadata": {
    		"elements_per_page": "100",
    		"next_page_url": "null",
    		"total_pages": "1",
    		"total_elements": "3",
    		"current_url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/services\/v2\/spls\/1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8\/media.json",
    		"next_page": "null",
    		"previous_page": "null",
    		"previous_page_url": "null",
    		"current_page": "1"
    	},
    	"data": {
    		"spl_version": "1",
    		"media": [{
    			"mime_type": "image\/jpeg",
    			"name": "edecrin-01.jpg",
    			"url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/image.cfm?setid=1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8&name=edecrin-01.jpg"
    		}, {
    			"mime_type": "image\/jpeg",
    			"name": "edecrin-02.jpg",
    			"url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/image.cfm?setid=1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8&name=edecrin-02.jpg"
    		}, {
    			"mime_type": "image\/jpeg",
    			"name": "edecrin-03.jpg",
    			"url": "https:\/\/dailymed.nlm.nih.gov\/dailymed\/image.cfm?setid=1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8&name=edecrin-03.jpg"
    		}],
    		"published_date": "Mar 12, 2012",
    		"setid": "1efe378e-fee1-4ae9-8ea5-0fe2265fe2d8",
    		"title": "EDECRIN (ETHACRYNIC ACID) TABLET [ATON PHARMA, INC.]"
    	}
    }
    													
    Close

RETURN TO WEB SERVICES