# OpenFDA Drug Adverse Events Feed

> OpenFDA Drug Adverse Events Feed is a paid API for AI agents from project-api-gamma-sable.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Queries the FDA Adverse Event Reporting System (FAERS) via openFDA to retrieve drug adverse event records matching a search term, paid per call in USDC on Base.

## Facts

- Endpoint: GET https://project-api-gamma-sable.vercel.app/paid/openfda/drug-events?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/openfda-drug-adverse-events-feed-079463df
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EV_lG4ZaLbXC-D5AznaBT

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-drug-adverse-events-feed-079463df
```

Example prompt: Search the FDA adverse event database for reports involving ibuprofen and give me the first 10 results.

## When to prefer this

Choose this endpoint when you need programmatic, per-call access to FDA FAERS adverse event data and are operating in an x402 micropayment environment on Base. It is ideal for AI agents that need to look up drug safety records on demand without a pre-existing openFDA API key or subscription, paying only $0.01 USDC per query.

## Known failure modes

- HTTP 402 if payment is not provided or payment fails
- Empty items array if no FAERS records match the search term
- Invalid or malformed search query may return no results or an error
- Rate limiting or upstream openFDA API unavailability causing failures
- Missing required 'search' query parameter returns a validation error

## How this service works

Paid public-data feeds. Unpaid requests return HTTP 402. Prices are USDC on Base.

## Output

Returns a slim JSON object containing FAERS drug adverse event records matching the search query, along with a link to the openFDA UI for further exploration. Fields include event items and a source path identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "search"
     ],
     "properties": {
      "skip": {
       "type": "string",
       "description": "Result skip"
      },
      "limit": {
       "type": "string",
       "description": "Max results"
      },
      "search": {
       "type": "string",
       "description": "Search term (alias of q)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "what": "openFDA FAERS drug adverse events (slim JSON + uiLink)",
  "items": [],
  "source": "/paid/openfda/drug-events"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/openfda-drug-adverse-events-feed-079463df/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from project-api-gamma-sable.vercel.app](https://www.zero.xyz/host/project-api-gamma-sable.vercel.app/llms.txt)
