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

# openFDA

> US Food and Drug Administration public data: drug, device and food adverse events, recalls, drug labels, NDC directory, approvals and 510(k) clearances.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/openfda.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=85b971b0d0764866bc9409fe746b2e51)

[Web Catalog · Health](https://docs.webrouter.net/data-apis.md?category=health)

Key optional

Endpoints

10

Auth

Key in query

[Vendor docs](https://open.fda.gov/apis/)

## Setup

| Variable | | What it is |
| - | - | - |
| `OPENFDA_API_KEY` | some calls | Optional free openFDA API key (open.fda.gov/apis/authentication). Sent as the api\_key query parameter; raises the daily limit. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Keyless works: 240 requests per minute and 1,000 per day per IP. With a key: 240 per minute and 120,000 per day per key.
* Every endpoint takes the same search, sort, count, limit and skip parameters; field names differ per dataset (see each endpoint's searchable fields page).
* skip+limit paging stops at about 26,000 hits. Beyond that, sort without skip and follow the Link header's rel="Next" URL (search\_after) until it disappears.
* count returns value/term counts instead of records; use the .exact field variant to count whole phrases rather than single words.

## Endpoints

GET

Search drug adverse event reports

Drug adverse event reports: patient, drugs taken and reactions.

[Open](#openfda-drug-events)

GET

Search drug labels

Drug product labeling: indications, warnings, dosage and more for prescription and OTC drugs.

[Open](#openfda-drug-labels)

GET

Search the NDC directory

National Drug Code directory: products, packages, labelers and active ingredients.

[Open](#openfda-drug-ndc)

GET

Search Drugs\@FDA

FDA-approved drug products with applications, submissions and approval history.

[Open](#openfda-drug-approvals)

GET

Search drug recall enforcement reports

Drug recalls: product, reason, classification, firm and status.

[Open](#openfda-drug-recalls)

GET

Search device adverse event reports

Medical device adverse event reports.

[Open](#openfda-device-events)

GET

Search 510(k) clearances

Premarket notification (510(k)) clearance decisions for medical devices.

[Open](#openfda-device-clearances)

GET

Search device recalls

Medical device recalls.

[Open](#openfda-device-recalls)

GET

Search food recall enforcement reports

Food product recalls: product, reason, classification, firm and status.

[Open](#openfda-food-recalls)

GET

Search CAERS reports

Food, dietary supplement and cosmetic adverse event reports.

[Open](#openfda-food-events)

### Search drug adverse event reports

GET

`/drug/event.json`

`openfda.drug.events`

Drug adverse event reports: patient, drugs taken and reactions.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`search`</td><td>string</td><td>query</td><td>field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields. Example `patient.reaction.reactionmeddrapt:"fatigue"`</td></tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr><td>`count`</td><td>string</td><td>query</td><td>Field whose unique values to count (top 1000); add .exact to count whole phrases. Example `patient.reaction.reactionmeddrapt.exact`</td></tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/drug/event/how-to-use-the-endpoint/)

```python Python theme={null}
router.call_data_api("openfda.drug.events", {'search': 'patient.reaction.reactionmeddrapt:"fatigue"', 'count': 'patient.reaction.reactionmeddrapt.exact'})
```

```text MCP theme={null}
call_data_api(endpoint="openfda.drug.events", params={"search": "patient.reaction.reactionmeddrapt:\"fatigue\"", "count": "patient.reaction.reactionmeddrapt.exact"})
```

### Search drug labels

GET

`/drug/label.json`

`openfda.drug.labels`

Drug product labeling: indications, warnings, dosage and more for prescription and OTC drugs.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/drug/label/how-to-use-the-endpoint/)

```python Python theme={null}
router.call_data_api("openfda.drug.labels")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.drug.labels")
```

### Search the NDC directory

GET

`/drug/ndc.json`

`openfda.drug.ndc`

National Drug Code directory: products, packages, labelers and active ingredients.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/drug/ndc/how-to-use-the-endpoint/)

```python Python theme={null}
router.call_data_api("openfda.drug.ndc")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.drug.ndc")
```

### Search Drugs\@FDA

GET

`/drug/drugsfda.json`

`openfda.drug.approvals`

FDA-approved drug products with applications, submissions and approval history.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/drug/drugsfda/how-to-use-the-endpoint/)

```python Python theme={null}
router.call_data_api("openfda.drug.approvals")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.drug.approvals")
```

### Search drug recall enforcement reports

GET

`/drug/enforcement.json`

`openfda.drug.recalls`

Drug recalls: product, reason, classification, firm and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/drug/enforcement/how-to-use-the-endpoint/) · Same job: [CPSC Recalls (SaferProducts.gov)](https://docs.webrouter.net/data-apis/cpsc-recalls.md#cpsc-recalls-recalls-search)

```python Python theme={null}
router.call_data_api("openfda.drug.recalls")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.drug.recalls")
```

### Search device adverse event reports

GET

`/device/event.json`

`openfda.device.events`

Medical device adverse event reports.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/device/event/how-to-use-the-endpoint/)

```python Python theme={null}
router.call_data_api("openfda.device.events")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.device.events")
```

### Search 510(k) clearances

GET

`/device/510k.json`

`openfda.device.clearances`

Premarket notification (510(k)) clearance decisions for medical devices.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/device/510k/how-to-use-the-endpoint/)

```python Python theme={null}
router.call_data_api("openfda.device.clearances")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.device.clearances")
```

### Search device recalls

GET

`/device/recall.json`

`openfda.device.recalls`

Medical device recalls.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/device/recall/how-to-use-the-endpoint/) · Same job: [CPSC Recalls (SaferProducts.gov)](https://docs.webrouter.net/data-apis/cpsc-recalls.md#cpsc-recalls-recalls-search)

```python Python theme={null}
router.call_data_api("openfda.device.recalls")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.device.recalls")
```

### Search food recall enforcement reports

GET

`/food/enforcement.json`

`openfda.food.recalls`

Food product recalls: product, reason, classification, firm and status.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/food/enforcement/how-to-use-the-endpoint/) · Same job: [CPSC Recalls (SaferProducts.gov)](https://docs.webrouter.net/data-apis/cpsc-recalls.md#cpsc-recalls-recalls-search)

```python Python theme={null}
router.call_data_api("openfda.food.recalls")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.food.recalls")
```

### Search CAERS reports

GET

`/food/event.json`

`openfda.food.events`

Food, dietary supplement and cosmetic adverse event reports.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `search`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:term clauses; +AND+ requires both, a space or + between clauses means either. No field searches all fields.
      </td>
    </tr>

    <tr>
      <td>
        `sort`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        field:asc or field:desc.
      </td>
    </tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Field whose unique values to count (top 1000); add .exact to count whole phrases.
      </td>
    </tr>

    <tr>
      <td>
        `limit`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to return; at most 1000.
      </td>
    </tr>

    <tr>
      <td>
        `skip`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Records to skip, for paging; at most 25000.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://open.fda.gov/apis/food/event/how-to-use-the-endpoint/)

```python Python theme={null}
router.call_data_api("openfda.food.events")
```

```text MCP theme={null}
call_data_api(endpoint="openfda.food.events")
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.