{"uid":"cap_RrPUCQha4lmImBPFnOWne","slug":"medapi-compare-drugs-ebf91779","name":"MedAPI Compare Drugs","description":"Drug data, adverse events, clinical trials, PubMed. AI-powered medical analysis. 17 endpoints. x402 on Base.","url":"https://mamujamedapi.vercel.app/api/compare-drugs","method":"POST","headers":{},"bodySchema":{"type":"object","required":["drugs"],"properties":{"drugs":{"type":"array","description":"drugs"}}},"responseSchema":{"type":"object","required":["success"],"properties":{"data":{"type":"object","properties":{"drugs":{"type":"array","items":{"type":"object"}},"comparison":{"type":"object"}}},"success":{"type":"boolean"},"analysis":{"type":"object","description":"LLM comparative analysis"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.35","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"registry","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.35/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.35","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_AsPag9Bx-13JTuMrPeOjk","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.35","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Compares two or more drugs side-by-side using FDA adverse event data, clinical trial data, and AI-powered analysis","exampleAgentPrompt":"Can you compare metformin and glipizide for me — I want to see their side-by-side safety profiles, adverse events, and an AI analysis of the key differences between the two?","exampleUseCases":[{"title":"Patient medication safety review","prompt":"My doctor is deciding between lisinopril and losartan for my blood pressure — can you compare them and give me an AI breakdown of which has a better safety profile?"},{"title":"Pharmacist drug substitution check","prompt":"Compare ibuprofen and naproxen side by side — I need to know their adverse event profiles and any meaningful differences the AI analysis highlights before recommending a substitution."},{"title":"Researcher comparing trial drug candidates","prompt":"I'm looking at methotrexate versus hydroxychloroquine for rheumatoid arthritis — run a full comparison on their adverse events and give me the AI-powered analysis of the two."}],"resultDescription":"Returns a JSON object containing individual drug data for each submitted drug, a structured comparison object summarizing key differences, and an LLM-generated comparative analysis covering safety, adverse events, and clinical relevance. The 'success' boolean confirms whether the request was processed correctly.","failureModes":["Invalid or unrecognized drug names return empty or partial drug data","Fewer than two drugs provided may result in a meaningless comparison","LLM analysis may time out or return null for ambiguous drug names","API returns success: false if the drugs array is missing or malformed","Rate limiting or payment failure via x402 on Base blockchain could block the request"],"whenToPreferThis":"Use this endpoint when you need a structured, AI-interpreted side-by-side comparison of two or more drugs rather than a single drug lookup. It combines FDA adverse event data, clinical trial data, and PubMed literature into one synthesized analysis — prefer this over single-drug endpoints when the user's question is inherently comparative (e.g. 'which drug is safer', 'what are the differences between X and Y').","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T06:41:04.142Z","isFirstParty":false}