> ## Documentation Index
> Fetch the complete documentation index at: https://lava.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenFDA

> U.S.

U.S. FDA open data API providing drug adverse events, drug labels, medical device recalls, food enforcement actions, and other safety data. Best for health and safety compliance workflows, pharmaceutical research, and monitoring product recalls. The official source for FDA regulatory data — unlike ClinicalTrials.gov (research studies), OpenFDA covers post-market surveillance and enforcement.

3 example endpoints available through Lava's AI Gateway. See the [OpenFDA API docs](https://open.fda.gov/apis/) for full documentation.

<Info>This provider is **managed** — no additional setup required.</Info>

<Info>This is a **catch-all provider** — any valid URL under `https://api.fda.gov` is supported. OpenFDA API. Construct URL as [https://api.fda.gov/\&#123;category\&#125;/\&#123;endpoint\&#125;.json](https://api.fda.gov/\&#123;category\&#125;/\&#123;endpoint\&#125;.json). Categories: drug, device, food, cosmetic, animalandveterinary, other. Supports ?search=, ?count=, ?limit= query params. Auth param (api\_key) is added automatically. The endpoints below are curated examples.</Info>

## Endpoints

### Search drug adverse events

**GET** `https://api.fda.gov/drug/event.json?limit=5` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.fda.gov/drug/event.json?limit=5', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.fda.gov%2Fdrug%2Fevent.json%3Flimit%3D5" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Get device recalls

**GET** `https://api.fda.gov/device/recall.json?limit=5` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.fda.gov/device/recall.json?limit=5', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.fda.gov%2Fdevice%2Frecall.json%3Flimit%3D5" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

### Get food enforcement actions

**GET** `https://api.fda.gov/food/enforcement.json?search=classification:Class+I&limit=3` — Free

<Tabs>
  <Tab title="SDK">
    ```typescript theme={null}
    const data = await lava.gateway('https://api.fda.gov/food/enforcement.json?search=classification:Class+I&limit=3', { method: 'GET' });
    ```
  </Tab>

  <Tab title="cURL">
    ```bash theme={null}
    curl "https://api.lava.so/v1/forward?u=https%3A%2F%2Fapi.fda.gov%2Ffood%2Fenforcement.json%3Fsearch%3Dclassification%3AClass%2BI%26limit%3D3" \
      -H "Authorization: Bearer $LAVA_SECRET_KEY"
    ```
  </Tab>
</Tabs>

## Next Steps

<CardGroup cols={2}>
  <Card title="All Providers" icon="grid" href="/gateway/supported-providers">
    Browse all supported AI providers
  </Card>

  <Card title="Forward Proxy" icon="route" href="/gateway/forward-proxy">
    Learn how to construct proxy URLs and authenticate requests
  </Card>
</CardGroup>
