---
id: "usda_fdc_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["agriculture"]
country: ["US"]
langs: ["common"]
quality: 90
url: "https://registry.apicrafter.io/datatype/usda_fdc_id"
---

# USDA FoodData Central ID (FDC ID) (`usda_fdc_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Numeric identifier of a food record in FoodData Central, the food composition database of the US Department of Agriculture. It covers Foundation Foods, SR Legacy, FNDDS and branded foods, and is used in the API path /v1/food/<fdcId>. Current IDs have six or seven digits.

- Personal data (PII): no
- Categories: Agriculture, livestock and food (agriculture)
- Countries: United States (US)
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^[1-9]\d{5,7}$
```

## Examples

- `171688` — Apples, raw, with skin (SR Legacy, NDB number 09003)
- `747997` — Eggs, Grade A, Large, egg white (Foundation Foods)
- `09003` (invalid example) — NDB number of the same apple record, not an FDC ID

## Mappings

- wikidata: `P12917`

## Translations

- ru: Идентификатор продукта в FoodData Central (FDC ID): Числовой идентификатор записи о продукте в базе данных о составе пищевых продуктов FoodData Central Минсельхоза США.

## Sources

- doc: <https://fdc.nal.usda.gov/api-guide/>
- doc: <https://fdc.nal.usda.gov/>
- wikidata: <https://www.wikidata.org/wiki/Property:P12917>

## Quality

Score 90/100. Missing: detector coverage.

JSON: <https://registry.apicrafter.io/api/v1/datatypes/usda_fdc_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/agriculture/usda_fdc_id.yaml>
