{"uid":"cap_M5v5McmSf6K8OlL_5XlO5","slug":"cost-plus-drugs-medication-price-lookup-d1bbcfe0","name":"Cost Plus Drugs Medication Price Lookup","description":"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.","url":"https://api.shopsocial-api.workers.dev/api/ecommerce/costplusdrugs?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":{"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"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_5f1dD7Os5_E64FrqKIOJN","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"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.","exampleAgentPrompt":"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.","exampleUseCases":[{"title":"Uninsured patient finding affordable medication","prompt":"I don't have insurance and my doctor prescribed metformin 500mg — can you check what Cost Plus Drugs charges for a 90-day supply, including shipping and the dispensing fee?"},{"title":"Comparing brand vs generic drug pricing","prompt":"How much is Lipitor versus generic atorvastatin at Cost Plus Drugs? Show me the price per pill and total cost for a 30-count pack."},{"title":"Verifying drug availability before ordering","prompt":"Is omeprazole 20mg currently in stock on Cost Plus Drugs, and if so what does a 90-count pack cost with everything included?"}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-29T00:33:38.523Z","isFirstParty":false,"canonicalSlug":"cost-plus-drugs-medication-price-lookup-d1bbcfe0"}