Skills
在 Duaer 里检索 USDA FoodData Central
在 Duaer 里在 USDA FoodData Central 搜索食品。一次成功查询用 1 额度。
能拿到什么
每条结果有编号、名称与描述。
密钥
调用前先获取 Duaer 密钥.
调用技能
下面这段是给智能体复制的英文技能,和数据市场里的复制内容相同。
---
name: duaer-usda-fdc
description: >-
Duaer USDA FoodData Central. Search foods in USDA FoodData Central.
One successful search uses 1 Duaer credit.
---
# Duaer USDA FoodData Central
Search foods in USDA FoodData Central. Data comes from USDA FoodData Central.
## When to use
- Find foods and nutrients in USDA FoodData Central.
- Look up one FDC id.
## When not to use
- Packaged products. Use https://skills.duaer.com/open-food-facts.md.
## Call
`GET https://api.duaer.com/v1/data/usda-fdc?words=apple&limit=10`
Header: `Authorization: Bearer <Duaer key>`
Use an account key or a model API key.
Get a Duaer key: https://skills.duaer.com/keys.md
## Parameters
Provide `words` or `id`.
- `words` — food name, such as apple.
- `id` — Optional. FDC id such as 1750340.
- `limit` — Optional. From 1 to 20. Default 10.
## Examples
- `GET https://api.duaer.com/v1/data/usda-fdc?words=apple&limit=10` — foods matching apple.
## Result
The response is `{ "items": [...] }`. Each item has `source` (`USDA FoodData Central`), `title`, `url`, and `summary`, plus:
- `fdcId`, `dataType`, `brandOwner` — text.
Fields without a value are empty strings.
## Credits
A successful search uses 1 credit, even when it finds nothing.
Wrong input or a missing search field returns 400 with a message and uses 0.
A failed upstream search returns 503 and uses 0.
No remaining credits returns 402 and does not search.
A missing key returns 401.
## Related
- https://skills.duaer.com/metabolites.md — Duaer metabolites
- https://skills.duaer.com/lipid-maps.md — Duaer Lipid Maps
- https://skills.duaer.com/compounds.md — Duaer compounds