Health
Drugs.com logo

Drugs.com API

drugs.com

Drugs.com — search drugs, get detailed drug info, side effects, interactions, patient reviews, pharmacy prices, and condition-based drug lists.

Actions
8
Category
Health
Login
Not required
Output
JSON

Call the Drugs.com API

Submit a task, then poll the job until it settles. This example runs dc_condition_drugs.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "dc_condition_drugs",
    "params": {
      "condition": "<condition>"
    }
  }'

8 actions on drugs.com

Read

  • Condition Drugs

    dc_condition_drugsread1 credit / call

    List drugs used to treat a medical condition. Use medical terminology for condition names (e.g. 'hypertension' not 'high blood pressure'). Use dc_list_conditions to discover valid condition slugs.

    condition
    string · required
  • Drug Details

    dc_drug_detailsread1 credit / call

    Full drug information page including uses, warnings, dosage, side effects summary, interactions summary, availability, related drugs, and conditions treated.

    drug
    string · required
  • Drug Interactions

    dc_drug_interactionsread1 credit / call

    Most frequently checked drug interactions with severity level (major, moderate, minor).

    drug
    string · required
  • Drug Prices

    dc_drug_pricesread1 credit / call

    Pharmacy prices for a drug grouped by dosage form (oral tablet, capsule, suspension, etc.) with quantity, per-unit cost, and total price.

    drug
    string · required
  • Drug Reviews

    dc_drug_reviewsread1 credit / call

    Patient reviews for a drug with overall rating, condition treated, individual rating, and full review text. Supports pagination.

    drug
    string · required
    page
    integer
  • Drug Side Effects

    dc_drug_side_effectsread1 credit / call

    Detailed side effects grouped by severity: serious (more common, less common, rare) and other side effects.

    drug
    string · required
  • List Conditions

    dc_list_conditionsread1 credit / call

    List all medical conditions on Drugs.com with their slugs. Filter by letter or get all A-Z. Use returned slugs with dc_condition_drugs.

    letter
    string
  • Search Drugs

    dc_search_drugsread1 credit / call

    Search for drugs by name or condition keyword. Returns name, description, rating, review count, and featured status.

    query
    string · required
    page
    integer

Drugs.com API questions

Is there an API for Drugs.com?
Drugs.com does not offer a public data API for this, but Anakin Wire provides 8 maintained endpoints for drugs.com. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape Drugs.com data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when drugs.com changes its markup, Anakin updates the action.
Do I need a Drugs.com account?
No. Every Drugs.com action listed here runs anonymously — no account and no credentials required.
What does the Drugs.com API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.