openFDA
关于药物、器械和食品的 FDA 公共数据
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 健康
- 文档 / URL
- https://open.fda.gov
简介
openFDA 通过公开的 Elasticsearch 风格 API 暴露美国 FDA 数据——药品不良事件、召回、器械报告和食品执法。推荐 API 密钥,但基础查询免密钥可用(实测可用)。
快速开始
药品不良事件(实测可用——免密钥):
curl "https://api.fda.gov/drug/event.json?limit=1"
{
"meta": { "disclaimer": "...", "license": "...", "last_updated": "2026-08-22" },
"results": [
{
"patient": { "reaction": [{ "reactionmeddrapt": "Headache" }] },
"seriousnessdeath": "N"
}
]
}
带密钥(量大时推荐):
curl "https://api.fda.gov/drug/event.json?limit=10&api_key=YOUR_KEY"
搜索:
curl "https://api.fda.gov/drug/event.json?search=patient.drug.openfda.brand_name:%22aspirin%22&limit=3"
认证方式
- 免密钥查询可用但有限流(实测)。
- 免费密钥:在 open.fda.gov 注册 → API 密钥(邮件发送)→ 作为
api_key参数发送。
速率限制与注意事项
- 免密钥:每小时调用有限;带密钥:240 次/分钟(以文档为准)。
- 数据集:
/drug/event.json、/drug/enforcement.json、/device/event.json、/food/enforcement.json、/drug/label.json。 - 搜索语法是 Elasticsearch 风格(
字段:值,短语加引号)。
常见问题
openFDA 免费吗? 是的——免密钥查询可用;免费密钥可提高限额。
需要密钥吗? 基础查询无需密钥(实测)——生产环境请用密钥。
有什么数据? 药品不良事件、标签、召回和器械/食品执法。
健康 分类更多
| API | Auth | HTTPS | CORS | |
|---|---|---|---|---|
| Clinical Trials Directory Every clinical trial registered with ClinicalTrials.gov, indexed by condition and sponsor | No auth | Yes | Yes | ↗ |
| CMS.gov Access to the data from the CMS - medicare.gov | API Key | Yes | Unknown | ↗ |
| Coronavirus HTTP API for Latest Covid-19 Data | No auth | Yes | Unknown | ↗ |
| Coronavirus in the UK UK Government coronavirus data, including deaths and cases by region | No auth | Yes | Unknown | ↗ |
| Covid Tracking Project Covid-19 data for the US | No auth | Yes | No | ↗ |