Api Endpoint

data.spencermcw.com … /drug/nadac

What do US pharmacies pay for this drug? CMS’s National Average Drug Acquisition Cost (NADAC) per unit for an NDC, the generic’s NADAC for a brand and the weekly price history since January 2025, from CMS’s NADAC files on data.medicaid.gov. Refreshed weekly (live freshness: /status). $0.01 per call (x402, USDC on Base); 3 free calls a day.

Open interactive test console

Offering

Provider
data.spencermcw.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://data.spencermcw.com/v1/drug/nadac
MIME type
application/json
First seen
2026-10-23T22:22:02.730Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.01 USDC
Atomic price: 10000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "10000",
    "payTo": "0xE6900aE625875b748f56Fb45C3e06a59Be8870DF"
  }
]

Observed health

Status
Healthy
Latest latency
113 ms
Average latency
138 ms
HTTP status
402
Last checked
Reachability
100% over 16 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "ndc": {
          "type": "string",
          "pattern": "^(\\d{11}|\\d{4,5}-\\d{3,4}-\\d{1,2})$"
        }
      },
      "required": [
        "ndc"
      ]
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "input": {
      "additionalProperties": false,
      "properties": {
        "method": {
          "enum": [
            "GET"
          ],
          "type": "string"
        },
        "queryParams": {
          "properties": {
            "ndc": {
              "pattern": "^(\\d{11}|\\d{4,5}-\\d{3,4}-\\d{1,2})$",
              "type": "string"
            }
          },
          "required": [
            "ndc"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "classification": {
                  "description": "G generic, B brand (as CMS classifies for rate setting).",
                  "type": "string"
                },
                "corresponding_generic": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "effective_date": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "nadac_per_unit": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "nadac_per_unit",
                        "effective_date"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "current": {
                  "anyOf": [
                    {
                      "additionalProperties": false,
                      "properties": {
                        "as_of": {
                          "type": "string"
                        },
                        "effective_date": {
                          "type": "string"
                        },
                        "explanation_codes": {
                          "items": {
                            "type": "string"
                          },
                          "type": "array"
                        },
                        "nadac_per_unit": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "nadac_per_unit",
                        "effective_date",
                        "as_of",
                        "explanation_codes"
                      ],
                      "type": "object"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "type": "string"
                },
                "history": {
                  "description": "Price periods, newest first: runs of weekly files with the same NADAC.",
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "effective_date": {
                        "type": "string"
                      },
                      "first_as_of": {
                        "type": "string"
                      },
                      "last_as_of": {
                        "type": "string"
                      },
                      "nadac_per_unit": {
                        "type": "string"
                      },
                      "weeks": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      }
                    },
                    "required": [
                      "nadac_per_unit",
                      "effective_date",
                      "first_as_of",
                      "last_as_of",
                      "weeks"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "last_listed": {
                  "additionalProperties": false,
                  "properties": {
                    "as_of": {
                      "type": "string"
                    },
                    "effective_date": {
                      "type": "string"
                    },
                    "nadac_per_unit": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "nadac_per_unit",
                    "effective_date",
                    "as_of"
                  ],
                  "type": "object"
                },
                "listed": {
                  "description": "Whether the NDC is in the latest weekly file.",
                  "type": "boolean"
                },
                "ndc": {
                  "type": "string"
                },
                "otc": {
                  "type": "boolean"
                },
                "pharmacy_type": {
                  "type": "string"
                },
                "pricing_unit": {
                  "description": "EA, ML or GM: the unit the NADAC is per.",
                  "type": "string"
                },
                "same_description": {
                  "additionalProperties": false,
                  "properties": {
                    "max": {
                      "type": "string"
                    },
                    "min": {
                      "type": "string"
                    },
                    "ndcs": {
                      "maximum": 9007199254740991,
                      "minimum": -9007199254740991,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "ndcs",
                    "min",
                    "max"
                  ],
                  "type": "object"
                }
              },
              "required": [
                "ndc",
                "description",
                "pricing_unit",
                "otc",
                "classification",
                "pharmacy_type",
                "listed",
                "current",
                "last_listed",
                "corresponding_generic",
                "same_description",
                "history"
              ],
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}