Discover/Drugs API
live

Drugs APIdrugs.com

Access FDA approvals, drug interactions, pill identification, drug details by condition, and more from Drugs.com via a structured JSON API.

Endpoint health
verified 4h ago
get_drug_details
get_drug_interactions
pill_identifier_search
get_pill_detail
get_new_drug_approvals
8/8 passing latest checkself-healing
Endpoints
8
Updated
1d ago

What is the Drugs API?

The Drugs.com API exposes 8 endpoints covering FDA drug approvals, drug detail pages, interaction checks, and pill identification. You can call get_drug_interactions to check severity and descriptions for two-drug pairs using interaction IDs, search drugs by keyword, or look up pills by imprint code, color, and shape — all returning structured JSON with fields ready for clinical tools, formulary apps, or consumer health products.

Try it

No input parameters required.

api.parse.bot/scraper/da04495a-c550-40b2-91b6-6a686616952d/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/da04495a-c550-40b2-91b6-6a686616952d/get_new_drug_approvals' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace drugs-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

from parse_apis.drugs.com_scraper_api import Drugs, PillColor, PillShape, AlphabetLetter

drugs = Drugs()

# Search for drugs by keyword
for summary in drugs.drugsummaries.search(query="metformin"):
    print(summary.name, summary.url)

# Get detailed drug information
abilify = drugs.drugs.get(url="/abilify.html")
print(abilify.name, abilify.generic_name, abilify.drug_class)

# Check drug interactions
for interaction in abilify.interactions():
    print(interaction.severity, interaction.pair, interaction.description)

# Search pill identifier with color enum
for pill in drugs.pills.search(imprint="L484", color=PillColor.WHITE):
    print(pill.name, pill.url, pill.details.strength, pill.details.shape)

# Get pill detail
detail = drugs.pilldetails.get(url="/imprints/l484-10944.html")
print(detail.imprint, detail.strength, detail.color, detail.drug_class)

# List drugs for a condition
for drug in drugs.conditiondrugs.list(condition="depression"):
    print(drug.name, drug.rating, drug.rx_otc)

# List drugs alphabetically
for entry in drugs.drugentries.list(letter=AlphabetLetter.B):
    print(entry.name, entry.url)

# Get latest FDA approvals
for approval in drugs.approvals.list():
    print(approval.name, approval.approval_date, approval.treatment)
All endpoints · 8 totalmissing one? ·

Retrieve the latest FDA drug approvals listed on Drugs.com. Returns a single page of the most recent approvals including drug name, manufacturer, approval date, treatment indication, and description. No pagination; the response reflects the site's current listing (typically 15-25 recent approvals).

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "approvals": "array of approval objects each containing name, url, company, approval_date, treatment, and description"
  },
  "sample": {
    "data": {
      "approvals": [
        {
          "url": "https://www.drugs.com/xocova.html",
          "name": "Xocova",
          "company": "",
          "treatment": "Post-Exposure Prophylaxis of COVID-19",
          "description": "Xocova (ensitrelvir) is a 3CL protease inhibitor for post-exposure prophylaxis of COVID‑19.",
          "approval_date": "May 29, 2026"
        }
      ]
    },
    "status": "success"
  }
}

About the Drugs API

Drug Search and Detail

The search_drugs endpoint accepts a keyword query and returns matching drug name, url, and description fields from the Drugs.com index. From there, get_drug_details takes a drug page path (e.g. /lisinopril.html) and returns the drug's generic_name, drug_class, a sections object mapping content headings to full text (covering areas like dosage, side effects, and warnings), and an interaction_id for use in downstream interaction lookups.

Drug Interactions and FDA Approvals

get_drug_interactions accepts a comma-separated pair of interaction IDs and returns an interactions array where each object carries severity, pair (the drug combination name), and a plain-text description. Interaction IDs come from the interaction_id field returned by get_drug_details. The get_new_drug_approvals endpoint requires no inputs and returns an approvals array with name, company, approval_date, treatment, and description for each recently approved drug.

Pill Identification

pill_identifier_search filters by any combination of imprint, color, and shape, returning a pills array with name, URL, and summary details. get_pill_detail drills into a specific pill page and returns physical metadata: size (in mm), color, shape, imprint, strength, drug_class, and availability (Rx, OTC, or both). No image URLs are currently returned by these endpoints.

Condition-Based and Alphabetical Listings

get_drugs_by_condition accepts a condition slug (e.g. depression, insomnia) and returns drugs sorted by popularity, each with rating, reviews, rx_otc, pregnancy, csa, and alcohol fields — enough to build a basic comparison view per condition. get_drug_by_letter returns all drug name and url pairs beginning with a given letter, useful for building browseable drug directories.

Reliability & maintenanceVerified

The Drugs API is a managed, monitored endpoint for drugs.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when drugs.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official drugs.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4h ago
Latest check
8/8 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a drug interaction checker using get_drug_interactions severity and description fields
  • Display FDA approval feeds in a clinical news dashboard using get_new_drug_approvals
  • Identify unknown pills by imprint and color using pill_identifier_search and get_pill_detail
  • Populate a condition-specific medication comparison page using get_drugs_by_condition ratings and reviews
  • Enrich a pharmacy product catalog with drug_class and generic_name from get_drug_details
  • Generate a browseable drug A–Z index using get_drug_by_letter
  • Alert users to potential drug-drug interactions in a medication tracking app by chaining get_drug_details and get_drug_interactions
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does Drugs.com have an official developer API?+
Drugs.com does not offer a public developer API. There is no documented REST or GraphQL interface available for third-party use on their site.
How do I get an interaction_id to use with get_drug_interactions?+
Call get_drug_details with a drug's page path. The response includes an interaction_id field. Collect one ID for each drug in the pair, then pass both as a comma-separated string to get_drug_interactions (e.g. '233-109,11-0'). If a drug has no interaction data on Drugs.com, interaction_id returns null.
What does get_drugs_by_condition return, and what happens if the condition slug is wrong?+
It returns a drugs array sorted by popularity, with each entry including name, url, rating, reviews, rx_otc status, pregnancy category, csa schedule, and alcohol interaction flag. If the condition slug does not match a valid Drugs.com condition page, the endpoint returns a 404 response. Use exact slugs like 'pain', 'anxiety', or 'acne' as they appear in Drugs.com URLs.
Does the API return pill images from the pill identifier?+
Not currently. pill_identifier_search and get_pill_detail return text fields — name, imprint, color, shape, size, strength, drug_class, and availability — but no image URLs. You can fork this API on Parse and revise it to add an image URL field if the source page exposes one.
Does the API cover drug pricing or pharmacy availability?+
Not currently. The endpoints cover drug details, interactions, FDA approvals, pill identification, and condition-based listings, but no pricing, coupon, or pharmacy stock data is returned. You can fork this API on Parse and revise it to add a pricing or pharmacy-lookup endpoint.
Page content last updated . Spec covers 8 endpoints from drugs.com.
Related APIs in HealthcareSee all →
blinkhealth.com API
Find affordable medications by comparing prices across pharmacies, viewing available formulations, and locating nearby participating locations. Search drugs, discover generic alternatives, and check preferred drug lists to save money on prescriptions.
pharmdata.co.uk API
Search UK pharmacies, access NHS service statistics, and retrieve pharmacy dispensing data to compare performance across regions. Monitor MHRA drug safety alerts and view LPC rankings to make informed decisions about pharmacy services and medications.
1mg.com API
1mg.com API
examine.com API
Search and explore evidence-based information about supplements, health conditions, and outcomes with detailed supplement profiles, study summaries, and categorized health data. Get comprehensive overviews of how specific supplements affect various health conditions backed by scientific research.
altibbi.com API
Search and browse comprehensive medicine and disease information from Altibbi's medical encyclopedia using commercial or scientific names. Get detailed profiles including dosage, uses, side effects, and disease descriptions to support healthcare decisions and medical research.
medex.com.bd API
Access data from medex.com.bd.
apollo247.com API
Search and compare medicines, view detailed product information, discover lab tests, and locate nearby Apollo 24|7 pharmacy stores. Browse medical specialties and popular diagnostic services to plan your healthcare needs in one convenient platform.
clinicaltrials.gov API
Search and retrieve comprehensive information about clinical trials worldwide, including study details, eligibility criteria, locations, and outcomes data. Access structured metadata and statistics to find relevant research studies matching your specific medical conditions or research interests.