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

# USDA Nutrient Databank number (NDB number) (`usda_ndb_number`)

> **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.

Five-digit number of a food in the USDA National Nutrient Database for Standard Reference (SR, now SR Legacy in FoodData Central), such as 09003 for raw apples. Files that store it as a number lose the leading zero, so four-digit values occur. FoodData Central gives each SR Legacy food its own FDC ID (usda_fdc_id) and keeps the NDB number as an attribute.

- 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`):

```
^\d{4,5}$
```

## Examples

- `09003` — Apples, raw, with skin; FDC ID 171688
- `15167` — Oyster; Wikidata example
- `9003` — The same apple record with the leading zero lost, as in the FoodData Central API
- `81100500` (invalid example) — Eight-digit FNDDS food code

## Mappings

- wikidata: `P1978`

## Translations

- ru: Номер продукта в базе питательных веществ USDA (NDB number): Пятизначный номер продукта в Национальной базе данных питательных веществ Минсельхоза США (SR Legacy).

## Sources

- doc: <https://www.ars.usda.gov/ARSUserFiles/80400525/Data/SR-Legacy/SR-Legacy_Doc.pdf>
- doc: <https://fdc.nal.usda.gov/>
- wikidata: <https://www.wikidata.org/wiki/Property:P1978>

## Quality

Score 90/100. Missing: detector coverage.

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