Spiral gives your agent every tool with one account. Browse the tools →

n8n · Health

How to Use Medicaid NADAC drug cost history in n8n

Returns the NADAC rates recorded for one NDC across annual CMS datasets since 2013. Use it to trace acquisition-cost changes for a specific drug package after identifying its NDC.

Prompts to try with Medicaid NADAC drug cost history in n8n

Copy an example into n8n, or ask in your own words.

Each month, use Medicaid NADAC drug cost history for drug code 00003-0894-21 over the preceding year. Summarize recorded increases, decreases, and the net percentage change.

Medicaid NADAC drug cost historyn8n
Try asking
  • Each quarter, use Medicaid NADAC drug cost history for drug code 00003-0894-21 from January 1, 2020, onward. Update a concise timeline of its recorded benchmark changes.

  • Every Monday at 9am: use Medicaid NADAC drug cost history to look this up and give me the result as a table.

  • Pull the latest numbers from Medicaid NADAC drug cost history and tell me what changed since last week.

  • Check Medicaid NADAC drug cost history and summarize what you find in three bullet points.

How to set up Medicaid NADAC drug cost history in n8n

Pick the way that suits you. Each takes about two minutes.

Use the Spiral skill

  1. Send n8n this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use Spiral's MCP server

  1. Create a key

    Create a key under API keys in the console.

  2. Add an MCP Client node

    In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

    https://api.spiral.ai/mcp
  3. Pick a tool

    The node lists Spiral's tools. In an MCP Client node pick one, such as run, and give it its arguments:

    {
      "provider": "fal",
      "model": "fal-ai/flux/schnell",
      "input": { "prompt": "a lighthouse at dawn" },
      "wait": true
    }
  4. Run Medicaid NADAC drug cost history in a workflow step

    Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Medicaid NADAC drug cost history, prices it and runs it each time the step fires.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Medicaid NADAC drug cost history

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "data-medicaid-gov/prices/history",
        "input": {
          "ndc": "<ndc>"
        }
      }'

Then paste one of the prompts above: n8n finds Medicaid NADAC drug cost history on Spiral, shows the price and runs it.

Medicaid NADAC drug cost history providers and prices

Spiral runs Medicaid NADAC drug cost history through Alexandria. Open a card for today's price, with every fee included.

AlexandriaHealth
Medicaid open data: SDUD and NADAC · History
data-medicaid-gov/prices/history

What can you do with Medicaid NADAC drug cost history in n8n?

Produce a weekly NADAC watchlist that highlights benchmark changes for selected public drug products. A scheduled agent can compare retrieved rates with earlier observations and summarize the historical context for each change.

Build a drug acquisition-cost brief

Find matching Eliquis 5 mg products with Medicaid NADAC drug search, then use Medicaid NADAC drug cost history to explain how a selected NDC's benchmark changed over time.

Review supplier invoice costs

Use Medicaid NADAC drug search to identify the exact product and unit on a business invoice. Use Medicaid NADAC drug cost history to compare the invoice with the benchmark for the relevant period.

Prepare purchasing budget scenarios

Use Medicaid NADAC drug search for current benchmarks on a purchasing list. Use Medicaid NADAC drug cost history to calculate observed changes and build clearly labeled budget scenarios.

Support drug-cost reporting

Check product names, strengths, and dosage forms with Medicaid NADAC drug search. Use Medicaid NADAC drug cost history to document the timing and size of benchmark changes for an article.

Audit historical benchmark assumptions

Resolve products with Medicaid NADAC drug search, then use Medicaid NADAC drug cost history to check whether a business analysis used the appropriate NDC and historical rate.

Monitor a public drug watchlist

Check selected drug benchmarks with Medicaid NADAC drug search each week. Use Medicaid NADAC drug cost history to put detected changes in context and calculate changes from earlier periods.

Questions about Medicaid NADAC drug cost history in n8n

Can n8n use Medicaid NADAC drug cost history?

Yes. Add Spiral to n8n as an MCP server, and n8n can find and run Medicaid NADAC drug cost history like any built-in tool.

How much does Medicaid NADAC drug cost history cost in n8n?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your n8n plan is separate.

Do I need an Alexandria account to use Medicaid NADAC drug cost history in n8n?

You need no Alexandria account. n8n uses one Spiral API key for every tool, and Spiral runs Medicaid NADAC drug cost history on its own Alexandria account.

How long does it take to set up Medicaid NADAC drug cost history in n8n?

About two minutes: create a key, then add an MCP Client node, then pick a tool.

Does n8n wait while Medicaid NADAC drug cost history runs?

Medicaid NADAC drug cost history runs in the background. n8n starts the run, checks on it and gives you the json when it's ready.

What does NADAC measure?

NADAC measures a national acquisition-cost benchmark derived from retail community pharmacy invoices across the United States. Off-invoice discounts, rebates, and price concessions are excluded.

How often does CMS update NADAC?

CMS posts weekly updates reflecting changes since the monthly file. A weekly publication schedule does not mean every drug receives a different rate each week.

Does NADAC cover every outpatient drug?

No. CMS explicitly states that some covered outpatient drug NDCs have no NADAC rate.

Can NADAC show acquisition costs for a particular state?

NADAC is calculated as one national average. Regional price differences are not incorporated into the benchmark.

Why can generic-drug NADAC changes look smoothed?

CMS currently uses a three-month moving average for monthly generic-drug NADAC updates. That calculation combines monthly observations rather than representing a single month's average alone.

Get started

Start using Medicaid NADAC drug cost history in n8n

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into n8n:

Set up n8n

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options