Drugs.com Scraper avatar

Drugs.com Scraper

Pricing

from $5.00 / 1,000 results

Go to Apify Store
Drugs.com Scraper

Drugs.com Scraper

Scrape Drugs.com by search, medical condition, or drug class — or paste an input_url. Returns drug names, ratings, Rx/OTC, pregnancy/CSA flags, and optional full monograph details.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

Marco Rodrigues

Marco Rodrigues

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 days ago

Last modified

Categories

Share

💊 Drugs.com Scraper

Want drug listings and monographs from Drugs.com without paging through search results by hand? This scraper makes it easy.

Use the search bar, pick a medical condition or drug class from the full site catalogues — better for AI agents — or paste an input_url. You get clean CSV/JSON with ratings, Rx/OTC flags, pregnancy/CSA info, and full monograph details (description, warnings, side effects, related links).

💡 Perfect for...

  • Researchers & students: Compare treatments for a condition or drug class.
  • Health-tech builders: Structure Drugs.com pages for apps and datasets.
  • 🤖 AI Agents: Structured filters (search_input, condition, drug_class) beat brittle URL crafting.
  • 📚 RAG Systems: Feed descriptions, warnings, and side-effect blurbs into retrieval pipelines.
  • 🔗 AI Workflows: Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

✨ Why you'll love this scraper

  • 🔗 Input URL or Filters: Paste a search, condition, class, or drug page (input_url), or use structured filters.
  • 🎯 Full catalogues: Dropdowns for ~2,100 medical conditions and ~490 drug classes — same coverage as the site A–Z / class indexes.
  • 🔍 Search bar parity: search_input maps to the Drugs.com search box.
  • ↕️ Sort: Popularity, drug name, rating, or reviews (condition & class listings).
  • 🧾 Full details by default: Every result is enriched from the drug page — generic/brand names, availability, description, warnings, side effects, and related links.

📦 What's inside the data?

For every drug / result, you will get:

  • Core: name, url, generic_name, brand_names, drug_class, result_type, source
  • Listing signals: rating, reviews_count, activity_pct, rx_otc, pregnancy, csa, alcohol
  • Monograph: pronunciation, dosage_forms, availability, pregnancy_lactation, csa_schedule, description, warnings, side_effects
  • Extras: ratings, related_links, snippet (search), condition / drug_class_slug / sort when applicable

🚀 Quick start

Option A — Search

  1. Set search_input (e.g. ibuprofen).
  2. Set max_items and click Start.

Option B — Condition or drug class

  1. Pick a condition (e.g. Sinusitis) or drug_class (e.g. NSAIDs).
  2. Optionally set sort (popularity / rating / reviews / drug name).
  3. Start the run.

Option C — Input URL

  1. Open a Drugs.com search, condition, class, or drug page.
  2. Paste the URL into input_url.
  3. Start.

Export CSV, Excel, or JSON when done.


Tech details for developers 🧑‍💻

Inputs

FieldDescription
input_urlOptional Drugs.com search / condition / class / drug URL
search_inputFree-text search (site search bar)
conditionMedical condition slug (full dropdown)
drug_classPharmacological class slug (full dropdown)
sortpopularity | drug | rating | reviews
max_itemsCap results (1–2000, default 50)

Priority: input_urlsearch_inputconditiondrug_class.

Input Example (search):

{
"search_input": "ibuprofen",
"max_items": 50
}

Input Example (condition + sort):

{
"condition": "sinusitis",
"sort": "rating",
"max_items": 100
}

Input Example (drug class):

{
"drug_class": "nonsteroidal-anti-inflammatory-agents",
"sort": "reviews",
"max_items": 50
}

Input Example (drug URL):

{
"input_url": "https://www.drugs.com/ibuprofen.html"
}

Output Example:

{
"name": "Ibuprofen",
"url": "https://www.drugs.com/ibuprofen.html",
"rating": 7.3,
"reviews_count": 246,
"rx_otc": "Rx/OTC",
"pregnancy": "C",
"csa": "N",
"generic_name": "ibuprofen",
"brand_names": "Advil, Genpril, IBU, Midol IB, Motrin IB",
"drug_class": "Nonsteroidal anti-inflammatories (NSAIDs)",
"availability": "Rx and/or OTC",
"description": "Ibuprofen is a nonsteroidal anti-inflammatory drug (NSAID). It works by reducing hormones that cause inflammation and pain in the body.",
"warnings": "Ibuprofen can increase your risk of fatal heart attack or stroke...",
"side_effects": "Get emergency medical help if you have signs of an allergic reaction...",
"related_links": [
{ "label": "Side Effects", "url": "https://www.drugs.com/sfx/ibuprofen-side-effects.html" },
{ "label": "Pregnancy", "url": "https://www.drugs.com/pregnancy/ibuprofen.html" }
],
"result_type": "condition_drug",
"condition": "pain",
"source": "drugs.com"
}