# FDA · Device events

Get health and medical data with FDA · Device events from Alexandria through one Spiral API key. Post-market device safety: reports for a device or manufacturer in a period, deaths or injuries reported with a device, which problems are reported most (count_by), or one report by MDR key or report number. 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` / `fda-gov/adverse-events/device_events`
- Page: https://spiral.ai/tools/alexandria/fda-gov/adverse-events/device_events

## 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 |
| --- | --- | --- | --- | --- |
| `skip` | number | 0 to 25000 | 0 | skip |
| `limit` | number | 1 to 100 | 10 | limit |
| `query` | text |  | — | Words that must all appear in the narratives; wrap a phrase in double quotes, e.g. "sensor error" adhesive. |
| `device` | text |  | — | Brand or generic name words, matched as a phrase, e.g. Dexcom G7 or insulin pump. |
| `count_by` | one of | event_type, product_problem, patient_problem, manufacturer, brand_name, product_code, received_month | — | Return counts of matching reports by this field instead of reports; limit caps the number of terms (not months), and skip must be 0. |
| `report_id` | text |  | — | MDR report key, e.g. 23938785, or report number, e.g. 3004753838-2025-353233. |
| `event_type` | one of | death, injury, malfunction, other, no_answer | — | event_type |
| `received_to` | text |  | — | Latest date FDA received the report, YYYY-MM-DD. Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$. |
| `manufacturer` | text |  | — | Device manufacturer words, e.g. Medtronic. |
| `product_code` | text |  | — | Three-letter FDA product code, e.g. QBJ. Pattern: ^ *[A-Za-z]{3} *$. |
| `received_from` | text |  | — | Earliest date FDA received the report, YYYY-MM-DD. 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": "fda-gov/adverse-events/device_events",
    "input": {
      "skip": 0
    }
  }'
```

Try it in the Playground: https://spiral.ai/start?provider=alexandria&model=fda-gov%2Fadverse-events%2Fdevice_events

## Common questions

### FDA · Device events

**How much does FDA · Device events 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 FDA · Device events through an API?**

Send `POST /v1/runs` with `"provider": "alexandria"`, `"model": "fda-gov/adverse-events/device_events"` 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 FDA · Device events?**

No. Spiral runs it on its own Alexandria account and charges your Spiral balance.

**Can my AI agent use FDA · Device events?**

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

