Medicaid open data: SDUD and NADAC · Records list
data-medicaid-gov/drug-utilization/records_listGet health and medical data with Medicaid open data: SDUD and NADAC · Records list from Alexandria through one Spiral API key. Collect the full current SDUD {year} or NADAC {year} table, or one state/quarter or one weekly as_of_date of it, page by page via meta.page.next_cursor. For a price question about one drug or NDC, use search or history (prices) instead. It runs in the background and returns structured JSON. Pay as you go, with no subscription.
Pricing
$0.00873 per call.
Limits
- Runs
- In the background
- Returns
- json
- Longest queue wait
- 1 hour
- Run deadline
- 5 minutes
- Longest run, end to end
- 225 minutes
- Largest inline input
- 1 MB
- Largest input file
- 2 GB
- Largest output
- 5 GB
Input
| Field | Kind | Default | Description |
|---|---|---|---|
year required | number 1991 to 2100 | — | Calendar year of the dataset; resolved to its dataset id through the catalogue title. |
dataset required | one of sdud, nadac | — | sdud = State Drug Utilization Data (one dataset per year, 1991 onwards); nadac = NADAC (National Average Drug Acquisition Cost), one dataset per year, 2013 onwards. |
state | text | — | SDUD only: two-letter state code as published (AK..WY, DC, PR, and XX for the national total). Pattern: ^[A-Z]{2}$. |
quarter | number 1 to 4 | — | SDUD only: calendar quarter. |
page_size | number 1 to 8000 | — | Rows per page (default 8000, the datastore maximum). |
as_of_date | text | — | NADAC only: weekly as_of_date (YYYY-MM-DD, Wednesdays). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
continuation | text | — | Opaque cursor from the previous page's meta.page.next_cursor. |
Same request in code
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/drug-utilization/records_list",
"input": {
"year": 1991,
"dataset": "sdud"
}
}'Frequently asked questions
How much does Medicaid open data: SDUD and NADAC · Records list cost?
$0.00873 per call. You pay as you go from one Spiral balance, with no subscription, and a failed run is not charged.
How do I use Medicaid open data: SDUD and NADAC · Records list through an API?
Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "data-medicaid-gov/drug-utilization/records_list"` and the input fields on this page, using one Spiral API key. It runs in the background: poll the run, or name a webhook to be told when it finishes.
Do I need an account with Alexandria to use Medicaid open data: SDUD and NADAC · Records list?
No. Spiral runs it on its own Alexandria account and charges your Spiral balance.
Can my AI agent use Medicaid open data: SDUD and NADAC · Records list?
Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.