80trust / 100

Drug Event

by Maxwell x402 in Other

x402 APIPassing, checked 2 h ago

FDA adverse event reports (FAERS) for a drug from openFDA, newest first: report id, date received, seriousness (death, hospitalisation, life-threatening), reactions, drugs taken and indication. ?q=metformin; 5 by default, up to 25 with &limit=. Cached for up to 24 hours. Reports are not proof the drug caused the event.

GET https://api.maxwellinternational.ai/v1/openfda/drug/event

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
82 ms typical, 82 ms slowest 5%
Last check
2 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X GET "https://api.maxwellinternational.ai/v1/openfda/drug/event?q=metformin"
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.maxwellinternational.ai%2Fv1%2Fopenfda%2Fdrug%2Fevent
const res = await pay("https://api.maxwellinternational.ai/v1/openfda/drug/event?q=metformin");
console.log(await res.json());

Example input

{
  "q": "metformin"
}

Example output

{
  "count": 5,
  "fetchedAt": "2026-10-05T09:42:35.769Z",
  "kind": "drug_event",
  "match": true,
  "meta": {
    "disclaimer": "Do not rely on openFDA to make decisions regarding medical care. While we mak...",
    "last_updated": "2026-07-30",
    "license": "https://open.fda.gov/license/",
    "results": {
      "limit": 100,
      "skip": 0,
      "total": 459569
    },
    "terms": "https://open.fda.gov/terms/"
  },
  "note": "Reports where the queried drug is a suspect, newest first (queriedDrugRole pe...",
  "notice": "Do not rely on openFDA to make decisions regarding medical care. Always speak...",
  "query": "metformin",
  "results": [
    {
      "drugCount": 4,
      "drugs": [],
      "queriedDrugRole": "suspect",
      "reactions": [],
      "receivedate": "2026-06-30",
      "safetyreportid": "26940686",
      "serious": false,
      "seriousnessdeath": false,
      "seriousnesshospitalization": false,
      "seriousnesslifethreatening": false
    }
  ],
  "source": "https://api.fda.gov/drug/event.json",
  "topReactions": [
    {
      "reaction": "NAUSEA",
      "reports": 31637
    }
  ],
  "total": 459569
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
2 h agoPassed40282 ms$0.005
7 h agoPassed402123 ms$0.005