Drug Interaction API
getInteractionSources
- Information returned
- Sources of the interactions
- Service domain
- https://rxnav.nlm.nih.gov
- HTTP request
- GETÂ /REST/interaction/sources.xml
Description
Get all of the sources of the interactions.
The Drug-Drug Interaction API will be discontinued on or about January 2, 2024. RxNav's Interactions tab will also be removed.
Parameters
Parameter | Location | Use | Description | Default |
---|---|---|---|---|
format | Path | Optional | Notation for results One of:
| .xml |
Note that HTTP requires that query parameters be "URL encoded". For full information on URL encoding, please refer to IETF RFC 3986, "Uniform Resource Identifier".
Output structure
Results are available as either XML or JSON.
The XML result has the root element interactiondata. It is described in the XML Schema for the Drug Interaction API; the relevant element structure is summarized below. Elements that would be empty might be left out.
The JSON result is an object {...}, analogous to the content of the XML interactiondata. Fields that might occur multiple times in the XML are expressed as an array. Fields that would be empty might be null or left out. Numbers are expressed as strings.
Both XML and JSON results follow the same outline:
- interactiondata
- Root element in XML, or anonymous object in JSON
- nlmDisclaimer
- sourceList
- Collection of interaction sources
- source (array)
- Source of interaction information
Example: Interaction sources
XML: https://rxnav.nlm.nih.gov/REST/interaction/sources
JSON: https://rxnav.nlm.nih.gov/REST/interaction/sources.json
An XML result is shown below.
<interactiondata> <nlmDisclaimer>It is not the intention of NLM to provide specific medical advice, but rather to provide users with information to better understand their health and their medications. NLM urges you to consult with a qualified physician for advice about medications.</nlmDisclaimer> <sourceList> <source>DrugBank</source> <source>ONCHigh</source> </sourceList> </interactiondata>