FoodData Central
国家标准参考营养数据库
- 认证方式
- API Key
- HTTPS
- Yes
- CORS
- Unknown
- 分类
- 健康
- 文档 / URL
- https://fdc.nal.usda.gov/
简介
USDA FoodData Central 提供营养数据——基于密钥(无效密钥返回 403,已实测)。
快速开始
搜索(替换 YOUR_KEY):
curl "https://api.nal.usda.gov/fdc/v1/foods/search?api_key=YOUR_KEY&query=apple"
{ "error": { "code": "API_KEY_INVALID", "message": "An invalid api_key was supplied. Get one at https://api.nal.usda.gov" } }
认证方式
- 在 fdc.nal.usda.gov 注册 → API 密钥(免费)。
- 通过
api_key查询参数携带(无效 → 403,已实测)。
速率限制与注意事项
- 免费;请礼貌使用——没有公开的硬性限制。
- 食品、营养和品牌产品。
常见问题
FoodData Central 免费吗? 是的——带密钥免费。
为什么 403? 无效密钥返回 403(已实测)——请注册拿密钥。
认证风格是什么?
api_key 查询参数。
健康 分类更多
| 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 | ↗ |