# Cost Plus Drugs API

> Cost Plus Drugs returns medicine prices, strengths, and forms as a workflow and API.

Cost Plus Drugs, also known as MCCPDC, returns listed medicine prices and price breakdowns through Get drug price. Get drug price needs a medicine name and can use a requested strength, form, or quantity; those options default to the first listed choices.

- Page: https://fous.com/tools/cost-plus-drugs
- Handle: `@cost-plus-drugs`
- Category: [Health](https://fous.com/tools/category/health)
- Source website: https://costplusdrugs.com
- Last verified: Sep 29, 2026

## Methods

### Get drug price

Operation `get_drug_price`, version 1. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.

Get the listed price, breakdown, strengths and forms for a medicine sold by Cost Plus Drugs. The displayed drug price excludes shipping and any taxes; standard shipping is shown separately and final charges may vary at checkout.

**Input**

| Field | Type | Required | Example | Description |
|---|---|---|---|---|
| `form` | string | no |  | Requested dosage form, for example Tablet. Defaults to the first listed form. |
| `medicine` | string | yes | `"Lipitor"` | Generic or brand name of the medicine, for example atorvastatin or Lipitor. |
| `quantity` | integer | no | `60` | Number of units, for example 30. Defaults to the first quantity listed for the medicine. |
| `strength` | string | no | `"20 mg"` | Requested strength, for example 20 mg. Defaults to the first listed strength. |

**Input schema**

```json
{
  "type": "object",
  "required": [
    "medicine"
  ],
  "properties": {
    "form": {
      "type": "string",
      "description": "Requested dosage form, for example Tablet. Defaults to the first listed form."
    },
    "medicine": {
      "type": "string",
      "description": "Generic or brand name of the medicine, for example atorvastatin or Lipitor.",
      "examples": [
        "Lipitor",
        "atorvastatin",
        "metformin"
      ]
    },
    "quantity": {
      "type": "integer",
      "minimum": 1,
      "description": "Number of units, for example 30. Defaults to the first quantity listed for the medicine.",
      "examples": [
        60
      ]
    },
    "strength": {
      "type": "string",
      "description": "Requested strength, for example 20 mg. Defaults to the first listed strength.",
      "examples": [
        "20 mg"
      ]
    }
  },
  "additionalProperties": false,
  "examples": [
    {
      "medicine": "Lipitor",
      "quantity": 60,
      "strength": "20 mg"
    },
    {
      "medicine": "atorvastatin"
    },
    {
      "medicine": "metformin"
    }
  ]
}
```

**Output**

| Field | Type | Example | Description |
|---|---|---|---|
| `form` | string | `"Tablet"` |  |
| `quantity` | integer | `60` |  |
| `strength` | string | `"20mg"` |  |
| `page_link` | string | `"https://www.costplusdrugs.com/medications/atorvastatin-20mg-tablet/"` |  |
| `markup_usd` | number | `0.11` |  |
| `shipping_usd` | number | `5.25` | Standard shipping shown separately, additional at checkout. |
| `medicine_name` | string | `"Atorvastatin"` |  |
| `available_forms` | array |  |  |
| `total_price_usd` | number | `5.82` | Displayed drug price before shipping and taxes. |
| `brand_equivalent` | string or null | `"Lipitor"` |  |
| `pharmacy_fee_usd` | number | `5` |  |
| `retail_price_usd` | number or null | `137.4` |  |
| `medicine_cost_usd` | number | `0.71` |  |
| `price_per_unit_usd` | number | `0.097` |  |
| `available_strengths` | array |  |  |

**Example input**

```json
{
  "medicine": "Lipitor",
  "quantity": 60,
  "strength": "20 mg"
}
```

**Example output**

```json
{
  "form": "Tablet",
  "quantity": 60,
  "strength": "20mg",
  "page_link": "https://www.costplusdrugs.com/medications/atorvastatin-20mg-tablet/",
  "markup_usd": 0.11,
  "shipping_usd": 5.25,
  "medicine_name": "Atorvastatin",
  "available_forms": [
    "Tablet"
  ],
  "total_price_usd": 5.82,
  "brand_equivalent": "Lipitor",
  "pharmacy_fee_usd": 5,
  "retail_price_usd": 137.4,
  "medicine_cost_usd": 0.71,
  "price_per_unit_usd": 0.097,
  "available_strengths": [
    "10mg",
    "20mg",
    "40mg"
  ]
}
```

## Quick start

Replace `YOUR_API_KEY` with a Fous API key. To create one, open Developers at the bottom of Fous Studio, turn on Developer mode, then go to API keys (https://app.fous.com/keys). Change the values in `input` to run the same tool on new data.

```bash
curl 'https://api.fous.com/v1/query' \
  --fail-with-body --silent --show-error --max-time 180 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "api": "@cost-plus-drugs",
  "visibility": "public",
  "operation": "get_drug_price",
  "version": 1,
  "input": {
    "medicine": "Lipitor",
    "quantity": 60,
    "strength": "20 mg"
  },
  "response": {
    "format": "json"
  }
}'
```

```python
# Save as fous.py and run with python3 fous.py. No packages needed.
import json
import urllib.error
import urllib.request

api_key = "YOUR_API_KEY"

body = json.loads("{\n  \"api\": \"@cost-plus-drugs\",\n  \"visibility\": \"public\",\n  \"operation\": \"get_drug_price\",\n  \"version\": 1,\n  \"input\": {\n    \"medicine\": \"Lipitor\",\n    \"quantity\": 60,\n    \"strength\": \"20 mg\"\n  },\n  \"response\": {\n    \"format\": \"json\"\n  }\n}")
request = urllib.request.Request(
    "https://api.fous.com/v1/query",
    data=json.dumps(body).encode("utf-8"),
    headers={
        "Authorization": f"Bearer {api_key}",
        "Content-Type": "application/json",
    },
    method="POST",
)
try:
    with urllib.request.urlopen(request, timeout=180) as response:
        result = json.load(response)
except urllib.error.HTTPError as error:
    raise RuntimeError(f"HTTP {error.code}: {error.read().decode('utf-8', errors='replace')}") from error
if result.get("success") is False:
    raise RuntimeError(result.get("error", {}).get("message", "Request failed"))
print(json.dumps(result["data"]["output"], indent=2))
```

```typescript
// Save as fous.mts and run with npx tsx fous.mts.
const apiKey = "YOUR_API_KEY";

const response = await fetch("https://api.fous.com/v1/query", {
  method: "POST",
  headers: {
    "Authorization": `Bearer ${apiKey}`,
    "Content-Type": "application/json",
  },
  signal: AbortSignal.timeout(180_000),
  body: JSON.stringify({
  "api": "@cost-plus-drugs",
  "visibility": "public",
  "operation": "get_drug_price",
  "version": 1,
  "input": {
    "medicine": "Lipitor",
    "quantity": 60,
    "strength": "20 mg"
  },
  "response": {
    "format": "json"
  }
}),
});
type ApiResult = { success: boolean; data?: { output: unknown }; error?: { message: string } };
const result: ApiResult = await response.json();
if (!response.ok || result.success === false) {
  throw new Error(result.error?.message ?? `HTTP ${response.status}`);
}
if (!result.data) throw new Error("Missing API response data");
console.log(result.data.output);
```

## Use from an AI assistant

Connect this tool to Claude Code, Claude Desktop, Cursor, VS Code, Codex and any MCP client as its own MCP server. Each method is a typed tool whose arguments are the method’s input.

- Server URL: `https://api.fous.com/mcp/tools/cost-plus-drugs`
- Authorization: `Authorization: Bearer <Fous API key>`

**Tools**

- `get_drug_price`: Get drug price. 1 credit per completed call. Failed calls without a completed billing receipt are free; completed work can remain charged if delivery is interrupted.
- `fous_get_run`: the result of a run that was still going, by its `request_id`. Free.

Claude Code:

```bash
claude mcp add --scope user --transport http fous-cost-plus-drugs https://api.fous.com/mcp/tools/cost-plus-drugs --header "Authorization: Bearer ${FOUS_API_KEY:?Set FOUS_API_KEY to your Fous API key}"
```

To give the assistant every tool, connect `https://api.fous.com/mcp`: it finds one with `fous_search_tools` and runs it with `fous_run_tool`. Setup for other clients: https://fous.com/llms-full.txt.

## Use cases

- Compare listed prices for generic and brand-name medicines
- Review medicine price breakdowns before checkout
- Find available strengths and forms for a medicine
- Estimate displayed drug costs before shipping and taxes

## FAQ

### Can I run it with my own inputs?

Yes. Change the inputs in Studio and press Run, or send new inputs from your code, or ask a connected AI assistant.

### Can I call this Cost Plus Drugs tool as an API?

Yes. Send a POST request to /v1/query with your Fous API key and the inputs, and get JSON back.

### How much does it cost?

Each completed run costs 1 credit. Failed runs without a completed receipt are free; completed work can remain charged if delivery is interrupted. With pay as you go, a credit costs 1¢. Monthly plans cost less per credit.

### Do I need a Cost Plus Drugs account?

No. You only need a Fous account.

### How current is the data?

Fous gets the data from costplusdrugs.com when you run it. Some results are reused for up to 24 hours, and results that use your account or key are never reused. It was last verified on Sep 29, 2026.

### What is the listed price for a medicine?

Use Get drug price with the medicine name. The displayed drug price excludes shipping and taxes.

### Which strengths and forms are available?

Get drug price returns the available strengths and forms for the medicine.

### How much is a medicine per unit?

Get drug price returns the price per unit for the selected medicine, strength, form, and quantity.

## Related

- [Drugs.com API](https://fous.com/tools/drugs-com.md): Drugs.com provides public medicine guides, interaction and food or lifestyle warnings for 2–10 medicines, pill matches by imprint, color, or shape, and listed US cash prices by strength, form, and quantity.
- [GoodRx API](https://fous.com/tools/goodrx.md): Prescription savings and drug prices at US pharmacies.
- [Costco API](https://fous.com/tools/costco.md): Costco returns US product prices/details and warehouse hours/services/gas prices; delivery affects availability, member prices may be hidden, and posted gas and holiday hours may differ.
- [FDA API](https://fous.com/tools/fda.md): FDA provides drug safety data, latest matching drug labels, common reported side effects, and newest-first drug, food, and device recalls; recent drug and device recalls may be missing, and weekly food statuses may lag.
- [Coinbase API](https://fous.com/tools/coinbase.md): Coinbase provides public cryptocurrency prices and market overviews, including changing spot, buy, and sell quotes and 24-hour statistics; unavailable page facts may be missing.
- [CoinMarketCap API](https://fous.com/tools/coinmarketcap.md): CoinMarketCap returns prices, rankings and current Fear and Greed readings; gainers and losers include up to 30 top-100 coins above $50,000 in 24-hour volume.
- [Macy's API](https://fous.com/tools/macys.md): Shop Macy's products and sales.
- [Ulta Beauty API](https://fous.com/tools/ulta-beauty.md): Ulta Beauty returns searchable beauty products and product details, including current pricing and availability that may change.
- [All Health tools](https://fous.com/tools/category/health)
