# OpenFDA Device Adverse Events Search

> OpenFDA Device Adverse Events Search is a paid API for AI agents from x402-v2-mint-openfda-device-event.vercel.app, paid per call via x402, $0.02004/call, status unknown (last checked 2026-11-20).

Searches the FDA medical device adverse event database via a POST query with optional result limit, returning matching event records.

## Facts

- Endpoint: POST https://x402-v2-mint-openfda-device-event.vercel.app/v1/openfda-device-event?utm_source=zero.xyz
- Price: $0.02004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openfda-device-adverse-events-search-435daba8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_u3Ge59oB9TEUIOucmpCja

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability openfda-device-adverse-events-search-435daba8 -d '<json body>'
```

Example prompt: Search the openFDA medical device adverse events database for events involving insulin pumps and return up to 10 results.

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-query access to the FDA medical device adverse event database without managing API keys. It is ideal for agents that need on-demand safety research, device due-diligence lookups, or regulatory compliance checks. It charges only when results are returned, making it cost-efficient for exploratory queries. Prefer it over direct openFDA API calls when you want a simple POST interface with x402 micropayment settlement and no authentication setup.

## Known failure modes

- Empty search with no results returns 404 and is not charged
- Search string exceeds 400 character limit causes rejection
- Limit value outside 1–25 range causes validation error
- Malformed search query syntax may return zero results
- Service unavailability or Vercel cold-start timeout
- openFDA upstream downtime propagates as error response

## How this service works

openFDA device adverse events (keyless). POST {search} and/or {limit?}. Empty → 404 not charged. W32 deferral.

## Output

Returns a JSON object with ok status, the skill name ('openfda-device-event'), a charged flag indicating whether the query returned results and was billed, and a summary string. The payload reflects matching FDA device adverse event records or a 404/not-charged response if no results were found.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "maximum": 25,
   "minimum": 1
  },
  "search": {
   "type": "string",
   "maxLength": 400
  },
  "request_id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "skill": "openfda-device-event",
  "charged": true,
  "summary": "ok"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openfda-device-adverse-events-search-435daba8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-v2-mint-openfda-device-event.vercel.app](https://www.zero.xyz/host/x402-v2-mint-openfda-device-event.vercel.app/llms.txt)
