+WebMD API
Pull WebMD drug information, patient reviews and health reference articles as clean JSON.
The API.SH WebMD API turns public WebMD pages into structured JSON. Search drugs and supplements, then get a drug's monograph with generic and brand names, drug class, availability, rating and every section (uses, side effects, warnings and precautions, interactions, overdose and missed dose). Read patient reviews with effectiveness, ease of use and satisfaction ratings, filtered by condition and sorted, browse the A-Z drug and health topic indexes, and pull any health reference article with its sections, author, medical reviewer and dates.
- 6 endpoints
- from $1 / 1,000 calls
- 1,000 free credits / month
- failed calls free
GET https://api.api.sh/webmd/v1/ search
{"query": "metformin","type": "all","total": 13,"count": 13,"results": [{"type": "drug","name": "Metformin (Glucophage, Glumetza, and others)","url": "https://www.webmd.com/drugs/metformin-glucophage-glumetza","slug": "metformin-glucophage-glumetza"},{"type": "drug","name": "Alogliptin/ Metformin (Kazano)","url": "https://www.webmd.com/drugs/alogliptin-metformin-kazano","slug": "alogliptin-metformin-kazano"},"… 11 more"],"cached": false,"credits_used": 1} What you can build with the WebMD API
Patient review analysis
Collect WebMD reviews for a drug by condition, with effectiveness, ease of use and satisfaction scores, age range and time on the drug.
Drug information apps
Show uses, side effects, warnings and interactions for a drug from its WebMD monograph, found by name with search.
Health content research
Pull a health reference article's sections, sources, author and medical reviewer to study coverage of a condition.
Drug catalog building
Walk the A-Z drug index letter by letter to list drugs and supplements with Rx/OTC status and links to their pages and reviews.
Pharma and market research
Compare ratings and review volumes across drugs in a class to see how patients rate competing treatments.
WebMD data you get
Field names from real responses. Numbers come parsed, URLs absolute, dates in ISO 8601.
WebMD API endpoints and prices
WebMD endpoints cost 1 to 2 credits per call: credits are $1 per 1,000 on a monthly plan, $2 pay-as-you-go. Pricing
| WebMD A-Z health topics /webmd/ | $1 · $2 PAYG 1 credit |
| WebMD drug and vitamin search /webmd/ | $1 · $2 PAYG 1 credit |
| WebMD drug reviews /webmd/ | $2 · $4 PAYG 2 credits |
| WebMD health article /webmd/ | $1 · $2 PAYG 1 credit |
| WebMD drug monograph /webmd/ | $1 · $2 PAYG 1 credit |
| WebMD A-Z drug index /webmd/ | $1 · $2 PAYG 1 credit |
Call the WebMD API
WebMD drug and vitamin search: GET https://api.api.sh/webmd/
curl "https://api.api.sh/webmd/v1/search?q=metformin" \
-H "x-api-key: $APISH_KEY" import os, requests
res = requests.get(
"https://api.api.sh/webmd/v1/search",
params={"q": "metformin"},
headers={"x-api-key": os.environ["APISH_KEY"]},
timeout=120,
)
res.raise_for_status()
data = res.json() const url = new URL("https://api.api.sh/webmd/v1/search");
url.searchParams.set("q", "metformin");
const res = await fetch(url, { headers: { "x-api-key": process.env.APISH_KEY } });
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const data = await res.json(); # Google Sheets (API.SH add-on)
=APISH("/webmd/v1/search", "q", "metformin")
# Zapier, Make, n8n (verified node): pick the API.SH app,
# choose "WebMD" and "WebMD drug and vitamin search".
# AI agents (Claude, ChatGPT, Cursor): add the
# API.SH MCP server https://api.sh/mcp - Create a free accountConfirm your email and get 1,000 free credits every month. No card needed.
- Create an API keyOne key works for all 921 platforms.
- Send the requestJSON back in one call. Add
output=csvoroutput=ndjsonfor files.
Why API.SH for WebMD data
- Public data only: no WebMD login, cookies or account needed
- One key and one response shape for WebMD and 920 other platforms
- Built and maintained by API.SH, not third-party publishers
- Pay per call; errors on our side cost nothing
- No rate limits: run as many calls in parallel as you need
- Live status for every endpoint
API.SH vs the official WebMD API
WebMD does not offer a public API for its drug and health content; its developer services are for partner and employer products. API.SH reads the public pages and returns drug monographs, reviews and articles as JSON, with no partner agreement.
Skip building a WebMD scraper or relying on an old static review dataset: API.SH returns the live pages with one key and a fixed price per call.
WebMD API questions
What WebMD data can I get?+
Drug and supplement search (/webmd/v1/search), drug monographs (/webmd/v1/drug), patient drug reviews (/webmd/v1/drug-reviews), the A-Z drug index (/webmd/v1/drugs-a-z), the A-Z health topics index (/webmd/v1/health-topics) and health reference articles (/webmd/v1/article).
How much does the WebMD API cost?+
Most WebMD endpoints cost 1 credit per call; /webmd/v1/drug-reviews costs 2 credits. On a monthly plan 1,000 credits cost $1 (Starter is $50/month for 50,000 credits). Pay-as-you-go is $2 per 1,000 credits, with top-ups from $15 that never expire.
Is there a free trial?+
Yes. Every account gets 1,000 free credits every month. That is 1,000 calls to /webmd/v1/article at 1 credit each.
Is there an official WebMD API?+
Not for its public content. WebMD's developer services are for partners and employers. API.SH returns the public drug, review and article pages as JSON without a partner agreement.
Do I need a WebMD account or login?+
No. API.SH reads public WebMD pages only. No endpoint uses a login or anyone's account.
How do I get a drug's reviews?+
Call /webmd/v1/drug and pass its reviews_slug to /webmd/v1/drug-reviews, or pass the drug slug directly. Filter with condition_id and sort by most recent, most helpful, highest rating or satisfaction; pass next_page back as page.
Is scraping WebMD legal?+
API.SH reads publicly visible pages and returns only what any visitor can see. How you use the data is up to you: follow WebMD's terms and the laws that apply to you, especially for health content.
How do I get started?+
1. Sign up at api.sh. 2. Copy your API key. 3. Call /webmd/v1/drug with drug=lisinopril-prinivil-zestril. Every parameter and a request example are in the docs at https://api.sh/docs. You can also use the JS or Python SDK, Google Sheets, Zapier, Make, n8n or the MCP server at https://api.sh/mcp.
Does the WebMD API have a rate limit?+
No. API.SH puts no rate limit on your key: send as many WebMD calls in parallel as you need and pay only for the calls that run. If WebMD itself slows down, the call returns 503 with a retry-after header and is not charged.