{"uid":"cap_G_8OEEnXJh1JDYAXJgkB4","slug":"nadac-drug-price-search-by-name-592d1600","name":"NADAC Drug Price Search by Name","description":"Which NDCs match this drug name, and what do pharmacies pay for them? NADAC search by name (e.g. “atorvastatin 40”) with NDC counts and current per-unit cost ranges, from CMS’s weekly NADAC file. Updated weekly. $0.01 per call (x402, USDC on Base); 3 free calls a day.","url":"https://data.spencermcw.com/v1/drug/nadac/search?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":["name"],"properties":{"name":{"type":"string","maxLength":80,"minLength":2},"limit":{"type":"integer","maximum":25,"minimum":1}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"data":{"type":"object","required":["query","as_of","matches"],"properties":{"as_of":{"type":"string"},"query":{"type":"string"},"matches":{"type":"array","items":{"type":"object","required":["description","pricing_unit","classification","ndcs","nadac_per_unit","effective_date","sample_ndcs"],"properties":{"ndcs":{"type":"integer","maximum":9007199254740991,"minimum":-9007199254740991},"description":{"type":"string"},"sample_ndcs":{"type":"array","items":{"type":"string"}},"pricing_unit":{"type":"string"},"classification":{"type":"string"},"effective_date":{"type":"string"},"nadac_per_unit":{"type":"object","required":["min","max"],"properties":{"max":{"type":"string"},"min":{"type":"string"}},"additionalProperties":false}},"additionalProperties":false}}},"additionalProperties":false}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_wKC6hO1wCO8w4nV4y-4fj","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search CMS's NADAC database by drug name to find matching NDCs, their counts, and the current per-unit cost range that pharmacies pay","exampleAgentPrompt":"Search the NADAC database for 'atorvastatin 40' and show me all the matching NDCs, how many there are, and the current per-unit cost range pharmacies pay for each.","exampleUseCases":[{"title":"Generic drug cost benchmarking","prompt":"Look up what pharmacies are currently paying for metformin 500 in the NADAC data — I want to see all matching NDCs and the min and max per-unit cost."},{"title":"Pharmacy formulary cost analysis","prompt":"Search the NADAC database for 'lisinopril 10' and give me the top 5 results with their NDC counts and per-unit price ranges so I can compare acquisition costs."},{"title":"Drug pricing transparency check","prompt":"What's the CMS NADAC per-unit cost range for omeprazole 20? I need the drug description, classification, effective date, and sample NDCs."}],"resultDescription":"Returns a JSON object with the query string, an as-of date reflecting the latest weekly CMS NADAC file, and an array of matching drug entries. Each entry includes a drug description, pricing unit (e.g. EACH, ML), drug classification (generic/brand), number of matching NDCs, sample NDC codes, the effective date, and a min/max NADAC per-unit cost range expressed as decimal strings.","failureModes":["No matches found if drug name is too specific or misspelled","Stale data possible if CMS has not yet published the latest weekly file","Query too short (under 2 characters) returns a validation error","Limit parameter exceeding 25 returns a validation error","Payment failure via x402 if USDC balance is insufficient after 3 free daily calls"],"whenToPreferThis":"Use this endpoint when you need to find what pharmacies actually pay (acquisition cost) for a drug by searching its name, and you want NDC-level detail with cost ranges sourced directly from CMS's official NADAC weekly file. Prefer this over general drug lookup APIs when pharmacy cost benchmarking, formulary analysis, or price transparency is the goal. It is the right choice when you need to map a human-readable drug name to multiple NDCs and their associated NADAC pricing in one call.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-23T12:39:25.192Z","isFirstParty":false,"canonicalSlug":"nadac-drug-price-search-by-name-592d1600"}