get
Full entity cards by id (batch up to 100): every published fact with unit, basis, proof rank and source; portions; identifiers; serving; quality hints. A nutrient not in "nutrients" is unknown, never zero. "missing" gives the reason only for the core label nutrients (energy, protein, fat, fat.saturated, carbohydrate.total, fibre, sugars, sodium), so an empty "missing" does not mean nothing else is unknown. Values are per 100 g (or per 100 ml / per serving for some products and all supplements, see "basis"). An id that was merged into another item serves that item's card, and "merged" maps the id asked for to the id to cite.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ids | Yes | ||
| fields | No | Only return these nutrient keys (e.g. ["energy","protein"]). Saves tokens. A group name returns every key under it, each as its own value in its own unit, never added or converted: "vitamin_a" gives vitamin_a.rae (µg) and vitamin_a.iu (IU); "carbohydrate" gives carbohydrate.total (includes fibre), carbohydrate.available (excludes it) and carbohydrate.available_mse. A key that is itself a registry key (e.g. "fat") is just that key. A name that matches nothing comes back missing with the closest keys. | |
| regime | No | Add values derivable for this regime (e.g. EU adds salt and available carbohydrate when exact). |