# Medicaid open data: SDUD and NADAC · Source status

Get health and medical data with Medicaid open data: SDUD and NADAC · Source status from Alexandria through one Spiral API key. Before or between collections, to see whether SDUD {year} or NADAC {year} moved since the last snapshot, and to hand off the bulk file URL, size and hash. It runs in the background and returns structured JSON. Pay as you go, with no subscription.

- Provider: Alexandria
- Category: Health
- Runs: In the background
- Returns: json
- Tool id: `alexandria` / `data-medicaid-gov/drug-utilization/source_status`
- Page: https://spiral.ai/tools/alexandria/data-medicaid-gov/drug-utilization/source_status

## Pricing

$0.00873 per call.

## Limits

- 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 | Allowed | 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. |
| `as_of_date` | text |  | — | NADAC only: weekly as_of_date (YYYY-MM-DD, Wednesdays). Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |

## Example

```bash
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/source_status",
    "input": {
      "year": 1991,
      "dataset": "sdud"
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=data-medicaid-gov%2Fdrug-utilization%2Fsource_status

## Common questions

### Medicaid open data: SDUD and NADAC · Source status

**How much does Medicaid open data: SDUD and NADAC · Source status 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 · Source status through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "data-medicaid-gov/drug-utilization/source_status"` 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 · Source status?**

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 · Source status?**

Yes. Agents find and run it through Spiral's MCP server, CLI or agent skill, with the same API key.

