Api Endpoint

data.spencermcw.com … /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. 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/search
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
100 ms
Average latency
157 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": {
        "name": {
          "type": "string",
          "minLength": 2,
          "maxLength": 80
        },
        "limit": {
          "type": "integer",
          "minimum": 1,
          "maximum": 25
        }
      },
      "required": [
        "name"
      ]
    }
  },
  "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": {
            "limit": {
              "maximum": 25,
              "minimum": 1,
              "type": "integer"
            },
            "name": {
              "maxLength": 80,
              "minLength": 2,
              "type": "string"
            }
          },
          "required": [
            "name"
          ],
          "type": "object"
        },
        "type": {
          "const": "http",
          "type": "string"
        }
      },
      "required": [
        "type",
        "method"
      ],
      "type": "object"
    },
    "output": {
      "properties": {
        "example": {
          "properties": {
            "data": {
              "additionalProperties": false,
              "properties": {
                "as_of": {
                  "type": "string"
                },
                "matches": {
                  "items": {
                    "additionalProperties": false,
                    "properties": {
                      "classification": {
                        "type": "string"
                      },
                      "description": {
                        "type": "string"
                      },
                      "effective_date": {
                        "type": "string"
                      },
                      "nadac_per_unit": {
                        "additionalProperties": false,
                        "properties": {
                          "max": {
                            "type": "string"
                          },
                          "min": {
                            "type": "string"
                          }
                        },
                        "required": [
                          "min",
                          "max"
                        ],
                        "type": "object"
                      },
                      "ndcs": {
                        "maximum": 9007199254740991,
                        "minimum": -9007199254740991,
                        "type": "integer"
                      },
                      "pricing_unit": {
                        "type": "string"
                      },
                      "sample_ndcs": {
                        "items": {
                          "type": "string"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "description",
                      "pricing_unit",
                      "classification",
                      "ndcs",
                      "nadac_per_unit",
                      "effective_date",
                      "sample_ndcs"
                    ],
                    "type": "object"
                  },
                  "type": "array"
                },
                "query": {
                  "type": "string"
                }
              },
              "required": [
                "query",
                "as_of",
                "matches"
              ],
              "type": "object"
            }
          },
          "type": "object"
        },
        "type": {
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  },
  "required": [
    "input"
  ],
  "type": "object"
}