Skip to content
Fourohtwo

Which NDCs match this drug name, and what do pharmacies pay for them

data.spencermcw.com/v1/drug/nadac/search

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.

BaseAnswering
GEThttps://data.spencermcw.com/v1/drug/nadac/search

Uptime100% of 5 checks in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://data.spencermcw.com/v1/drug/nadac/search?name=atorvastatin+40");
console.log(await res.json());

Example input

{
  "name": "atorvastatin 40"
}