# Cost Plus Drugs Medication Price Lookup

> Cost Plus Drugs Medication Price Lookup is a paid API for AI agents from api.shopsocial-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Searches Cost Plus Drugs (Mark Cuban's mail-order pharmacy) for drug pricing by name, NDC, or strength, returning cash prices, pack options, dispensing fees, and shipping totals.

## Facts

- Endpoint: GET https://api.shopsocial-api.workers.dev/api/ecommerce/costplusdrugs?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cost-plus-drugs-medication-price-lookup-d1bbcfe0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M5v5McmSf6K8OlL_5XlO5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability cost-plus-drugs-medication-price-lookup-d1bbcfe0
```

Example prompt: What's the Cost Plus Drugs cash price for atorvastatin 20mg? I want to see the 30, 60, and 90-count pack prices including the dispensing fee and shipping.

## When to prefer this

Use this endpoint when you need verified, real-time cash prices specifically from Cost Plus Drugs (Mark Cuban's low-cost mail-order pharmacy), including dispensing fee breakdowns and shipping totals. Prefer this over generic drug-price aggregators when the user explicitly wants Cost Plus Drugs pricing or wants to compare the CPD transparent-pricing model. Best for uninsured patients, price-conscious consumers, or agents building medication cost comparison tools focused on the mail-order channel.

## Known failure modes

- Drug not found on Cost Plus Drugs mail-order channel — returns empty results array with count 0
- NDC not recognized — returns empty results even if equivalent generics exist under a different NDC
- Neither 'term' nor 'ndc' provided — likely returns an error or empty response
- Drug is listed but out of stock — returned with inStock: false
- Upstream Cost Plus Drugs API unavailable — may return a 5xx or timeout error
- Strength filter too specific — returns 0 results if strength string doesn't exactly match available options

## How this service works

Pay-per-call e-commerce, product, price and social media data tools for AI agents, from public sources. Payment: x402, USDC on Base, Solana, Arc, Polygon, Arbitrum, Monad, World Chain, Optimism, Avalanche, Celo or Stellar, or RLUSD/XRP on the XRP Ledger. No signup, no API key; a failed call is not charged.

## Output

Returns a JSON object with the total match count, a list of matching drugs each containing: medication and brand name, generic/brand type, dosage form, strength, treatment categories, pack size, RxNorm ID, in-stock boolean, price per unit (USD), cash dispensing fee, pack prices (30/60/90-count) with and without fee, total price with shipping for the first pack, and a direct product URL. Also echoes back the query parameters and timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "ndc": {
       "type": "string",
       "description": "National Drug Code, with or without dashes, e.g. 67877-0511-10 (matches generic equivalents)"
      },
      "term": {
       "type": "string",
       "description": "Drug or brand name, partial match, e.g. atorvastatin or Lipitor (term or ndc required)"
      },
      "limit": {
       "type": "string",
       "description": "Max results 1 to 100 (default 25)"
      },
      "strength": {
       "type": "string",
       "description": "Strength filter with term, e.g. 20mg"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 1,
  "drugs": [
   {
    "url": "https://www.costplusdrugs.com/medications/atorvastatin-20mg-tablet/",
    "form": "Tablet",
    "name": "Atorvastatin",
    "type": "Generic",
    "unit": "ea",
    "packs": [
     {
      "size": "30 count",
      "price": 0.41,
      "withFee": 5.41
     },
     {
      "size": "60 count",
      "price": 0.82,
      "withFee": 5.82
     }
    ],
    "inStock": true,
    "packSize": 1000,
    "rxnormId": "617310",
    "strength": "20mg",
    "brandName": "Lipitor",
    "categories": [
     "Heart Health",
     "High Cholesterol"
    ],
    "pricePerUnit": 0.01365,
    "dispensingFee": 5,
    "specialHandling": null,
    "firstPackWithShippingAndFee": 10.66
   }
  ],
  "query": {
   "term": "atorvastatin",
   "strength": "20mg"
  },
  "total": 1,
  "source": "https://api.costplusdrugs.com/pricelist/cpd/search?term=atorvastatin&strength=20mg&exclude_fields=equivalent_ndcs",
  "currency": "USD",
  "checkedAt": "2026-10-23T09:37:42.729Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cost-plus-drugs-medication-price-lookup-d1bbcfe0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.shopsocial-api.workers.dev](https://www.zero.xyz/host/api.shopsocial-api.workers.dev/llms.txt)
