POST /v1/interactions/check
Check drug interactions for a list of drug names. Returns severity-scored interaction pairs with mechanisms, recommendations, evidence snippets and the FDA label's SPL Set ID.
Request
POST /v1/interactions/check
Content-Type: application/json
x-api-key: rxlg_your_api_keyParameters
| Name | Type | Required | Description |
|---|---|---|---|
| drugs | string[] | required | Array of 1-10 drugs. Accepts generic names, brand names (misspellings are matched through RxNorm) or RxCUIs. NDC codes are not supported; map them to RxCUIs first. |
| format | string | optional | "structured" (default), "summary", or "conversational". |
Examples
cURL
curl -X POST "https://api.rxlabelguard.com/v1/interactions/check" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{"drugs": ["warfarin", "aspirin"]}'JavaScript
const response = await fetch("https://api.rxlabelguard.com/v1/interactions/check", {
method: "POST",
headers: {
"Content-Type": "application/json",
"x-api-key": "YOUR_API_KEY",
},
body: JSON.stringify({
drugs: ["warfarin", "aspirin"],
format: "summary",
}),
});
const data = await response.json();
console.log(data.pairs); // Interaction pairs with severity
console.log(data.summary); // AI-generated summaryPython
import requests
response = requests.post(
"https://api.rxlabelguard.com/v1/interactions/check",
headers={"x-api-key": "YOUR_API_KEY"},
json={"drugs": ["warfarin", "aspirin"]},
)
data = response.json()
for pair in data["pairs"]:
print(f"{pair['drugA']} + {pair['drugB']}: {pair['maxSeverity']}")Response Schema
{
"resolutions": [
{
"inputName": "warfarin",
"rxcui": "11289",
"genericName": "warfarin",
"brandNames": ["COUMADIN"],
"splSetId": "abc-123",
"labelUrl": "https://dailymed.nlm.nih.gov/dailymed/drugInfo.cfm?setid=abc-123",
"resolved": true
}
],
"pairs": [
{
"drugA": "warfarin",
"drugB": "aspirin",
"maxSeverity": "major",
"interactions": [
{
"source": "PAIRWISE",
"targetName": "aspirin",
"severity": "major",
"mechanism": "Increased anticoagulant effect and bleeding risk",
"recommendation": "Monitor INR closely if coadministered",
"evidenceSnippet": "Aspirin increases bleeding risk.",
"labelSection": "drug_interactions",
"splSetId": "abc-123"
}
]
}
],
"disclaimer": "This information is derived from FDA...",
"errors": [],
"summary": null
}source: the rule type that produced the finding:PAIRWISE,CLASS_INTERACTION,COMBINATION,DUPLICATE_THERAPYorPATHWAY_AMPLIFICATION.evidenceSnippet: the evidence text stored with that rule (FDA label text, a DrugCentral description or a curated rationale). It can be empty for inferred rules.splSetId: the SPL Set ID of the FDA label for the first drug in the finding that has one, or an empty string. Use it to open the label on DailyMed.labelSection: currently always"drug_interactions". It does not identify which label section the evidence came from.
The summary field is populated when format is "summary" or "conversational".